Copy file to local storage

POST

POST requests are used to copy original files or their modified versions to a default storage.

Source files MAY either be stored or just uploaded and MUST NOT be deleted.

Copying of large files is not supported at the moment. If the file CDN URL includes transformation operators, its size MUST NOT exceed 100 MB. If not, the size MUST NOT exceed 5 GB.

Headers

AcceptstringOptional
Version header.

Request

This endpoint expects an object.
sourcestringRequired
A CDN URL or just UUID of a file subjected to copy.
store"true" or "false"OptionalDefaults to false
Allowed values: truefalse
The parameter only applies to the Uploadcare storage and MUST be either true or false.
metadatamap from strings to anyOptional
Arbitrary additional metadata.

Response

This endpoint returns an object.
typestringOptionalDefaults to file
resultobjectOptional

Errors