curl --request POST \
--url https://base_url/api/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'corporation_id=<string>'
{
"data": {
"id": "<string>",
"name": "example.pdf",
"size": 102400,
"corporation_id": "<string>"
},
"message": "Successfully created file."
}
Upload a new file to Commenda’s server
curl --request POST \
--url https://base_url/api/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'corporation_id=<string>'
{
"data": {
"id": "<string>",
"name": "example.pdf",
"size": 102400,
"corporation_id": "<string>"
},
"message": "Successfully created file."
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Information about the created file
The response is of type object
.