Skip to main content
POST
cURL

التفويضات

Authorization
string
header
مطلوب

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

الجسم

application/json
contentType
string
مطلوب

Mime type

مثال:

"image/png"

contentLength
number
مطلوب

File size

مثال:

123

type
enum<integer>
مطلوب

Type

الخيارات المتاحة:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
مثال:

1

expiresIn
number

Token expire time, seconds

مثال:

3600

hash
string

File hash

مثال:

"xxxxxxxx"

baseId
string

الاستجابة

201 - application/json

return the upload URL and the key.

url
string
مطلوب

Upload url

مثال:

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

uploadMethod
string
مطلوب

Upload method

مثال:

"POST"

token
string
مطلوب

Secret key

مثال:

"xxxxxxxx"

requestHeaders
object
مطلوب
مثال:
آخر تعديل في ٤ سبتمبر ٢٠٢٦