Add an image placed from a computer to the CMS
POST
/cms/print/v2/subpages/{id}/images
const url = 'https://api.example.com/cms/print/v2/subpages/1/images';const options = { method: 'POST', headers: { 'API-Key': '<API-Key>', 'Token-User': '<Token-User>', 'Content-Type': 'application/json' }, body: '{"upload":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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. Returns its id and URL.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
upload
required
Upload id
string
Example generated
{ "upload": "example"}Responses
Section titled “Responses”The image: id, url, filename