Create temporary file from a remote URL
Downloads a file from the specified remote URL and stores it as a temporary resource. The temporary file can then be referenced when creating content. The URL must pass validation to prevent SSRF attacks. 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 a file is already accessible by URL. Send {"remoteUrl": "https://example.com/image.jpg"} and 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.
Request body
Response
Temporary file created from URL successfully
Changes
No recorded changes to this endpoint across all 1 revision of this API.