Suggest which planned article goes into which slot of a page
POST
/cms/print/v2/ai/assign
const url = 'https://api.example.com/cms/print/v2/ai/assign';const options = { method: 'POST', headers: { 'API-Key': '<API-Key>', 'Token-User': '<Token-User>', 'Content-Type': 'application/json' }, body: '{"subpageId":1,"slots":[{}],"articles":[{}]}'};
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/ai/assign \ --header 'API-Key: <API-Key>' \ --header 'Content-Type: application/json' \ --header 'Token-User: <Token-User>' \ --data '{ "subpageId": 1, "slots": [ {} ], "articles": [ {} ] }'Starts a job that matches the planned articles to the page’s free slots by importance (Content order), length against capacity and images. The result (GET /cms/job/{id}) has assignments ({slotId, articleId, reason}) and unplaced ({articleId, reason}).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
subpageId
required
integer
slots
required
{id, name, rank, roles, capacity: role => chars, imageFrames}
Array<object>
object
articles
required
{id, position, category, lengths: role => chars, images}; titles are read from the CMS
Array<object>
object
Example generated
{ "subpageId": 1, "slots": [ {} ], "articles": [ {} ]}Responses
Section titled “Responses”The job id
AI helpers off, or no permission