Temporary Files

Upload temporary files via multipart form

Changed on

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

Request

Query parameters

maxFileLengthstring

Maximum file length in bytes (-1 for default)

Request body multipart/form-data

object required

One or more file parts to upload

Response

Temporary files created successfully

Changes

    • breaking

      request body became required

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      api operation id uploadTempResourceMulti removed and replaced with uploadTempFileMultipart

    • info

      api tag Temporary Files added

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status