Skip to content

Add an image placed from a computer to the CMS

POST
/cms/print/v2/subpages/{id}/images
curl --request POST \
--url https://api.example.com/cms/print/v2/subpages/1/images \
--header 'API-Key: <API-Key>' \
--header 'Content-Type: application/json' \
--header 'Token-User: <Token-User>' \
--data '{ "upload": "example" }'

Creates a CMS image (attachment) from a finished upload (POST /cms/print/v2/subpages/{id}/uploads), so the page links to a CMS image every computer can download. Its title is the caption embedded in the file (IPTC, EXIF or XMP), else the file name, and it gets the keyword “print”. Returns its id and URL.

id
required
integer
Media typeapplication/json
object
upload
required

Upload id

string

Example generated

{
"upload": "example"
}

The image: id, url, filename