Upload a binary file

POST https://manage.kontent.ai/v2/projects/:environment_id/files/:file_name

Add a new file. The file won't be visible in the UI until you add an asset referencing the uploaded file.

Adding assets is a 2-step process

  1. Upload a binary file to get a file reference to the file.
  2. Use the file reference to create a new asset referencing the uploaded file.

Maximum size limit for binary files is 100 MB.

HEADERS

KeyDatatypeRequiredDescription
Content-lengthstring(Required) Specifies the size of the binary file in bytes.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"806ec84e-7c71-4856-9519-ee3dd3558583","type":"internal"}