Temporary Files

Upload temporary files via multipart form

Uploads one or more files as temporary resources via multipart form data. Files are stored temporarily and can be referenced when creating content. The response streams back a JSON object with the created temporary file references. Anonymous access can be allowed via the TEMP_RESOURCE_ALLOW_ANONYMOUS configuration property.

Use this endpoint to supply files for binary and image fields (ImmutableBinaryField, ImmutableImageField) when creating or updating contentlets. After uploading, pass tempFiles[0].id (e.g. "temp_5311313004") as the field value in the workflow fire endpoint. See PUT /api/v1/workflow/actions/default/fire/{systemAction} for the full pattern.

post/api/v1/temp

Query parameters

maxFileLengthstring

Maximum file length in bytes (-1 for default)

Response

Temporary files created successfully

Changes