Vai al contenuto principale
POST
cURL

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json
contentType
string
obbligatorio

Mime type

Esempio:

"image/png"

contentLength
number
obbligatorio

File size

Esempio:

123

type
enum<integer>
obbligatorio

Type

Opzioni disponibili:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
Esempio:

1

expiresIn
number

Token expire time, seconds

Esempio:

3600

baseId
string

Risposta

201 - application/json

return the upload URL and the key.

url
string
obbligatorio

Upload url

Esempio:

"https://example.com/attachment/upload"

uploadMethod
string
obbligatorio

Upload method

Esempio:

"POST"

token
string
obbligatorio

Secret key

Esempio:

"xxxxxxxx"

requestHeaders
object
obbligatorio
Esempio: