curl --request POST \
--url https://apix.us.amity.co/api/v3/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form files=@example-file \
--form fullImage=true \
--form 'preferredFilename=<string>' \
--form accessType=public
{
"status": "<string>",
"data": [
{
"fileId": "<string>",
"type": "image",
"accessType": "public",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "<string>",
"extension": "<string>",
"size": 123,
"mimeType": "<string>",
"metadata": {
"exif": {},
"gps": {},
"height": 123,
"width": 123,
"isFull": true
}
}
}
]
}
Upload file to cloud storage
curl --request POST \
--url https://apix.us.amity.co/api/v3/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form files=@example-file \
--form fullImage=true \
--form 'preferredFilename=<string>' \
--form accessType=public
{
"status": "<string>",
"data": [
{
"fileId": "<string>",
"type": "image",
"accessType": "public",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "<string>",
"extension": "<string>",
"size": 123,
"mimeType": "<string>",
"metadata": {
"exif": {},
"gps": {},
"height": 123,
"width": 123,
"isFull": true
}
}
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Information of file to be created. It will be applied to every attachment
The body is of type object
.
File Upload Result
The response is of type object
.