This method is used to upload files and returns a URL for use in CME. The file schema field type for content requires a URL, so you must use this endpoint before saving/updating file content.
NOTE: If you're uploading a file for a field that has been previously uploaded, then please use the Replace a File 2.0 endpoint to delete the old file - otherwise zombie files will exist that can never be deleted.
NOTE: This request must be a multipart/form-data for the file to be uploaded. Please search for how to complete a multipart/form-data request in your framework/programming language.
In order to provide CME with the JWT, you must provide a header named Authorization and the token must be prefixed with the word Bearer.
Required parameters are underlined.
The file being uploaded.
Send the file field.
A successful response will have a 200 status code and a body containing the URL of the new file.
An error response will return a 400 (or 500 for internal server error) and a message: