POST
/
files
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."
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200
application/json

Information about the created file

The response is of type object.