Skip to content

Suggest which planned article goes into which slot of a page

POST
/cms/print/v2/ai/assign
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}).

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": [
{}
]
}

The job id

AI helpers off, or no permission