cURL
curl --request POST \ --url https://base_url/api/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The file to upload
The unique identifier for a corporation associated with this file.
Information about the created file
Show child attributes
"Successfully created file."