Shorten an article's text on a page to fit its frames
POST
/cms/print/v2/ai/copyfit
const url = 'https://api.example.com/cms/print/v2/ai/copyfit';const options = { method: 'POST', headers: { 'API-Key': '<API-Key>', 'Token-User': '<Token-User>', 'Content-Type': 'application/json' }, body: '{"subpageId":1,"articleId":1,"title":"example","fields":{}}'};
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/copyfit \ --header 'API-Key: <API-Key>' \ --header 'Content-Type: application/json' \ --header 'Token-User: <Token-User>' \ --data '{ "subpageId": 1, "articleId": 1, "title": "example", "fields": {} }'Starts a job that shortens each field to its target length (plain-text characters), in the same language, without adding facts. The result (GET /cms/job/{id}) has fields (role => paragraphs) and lengths.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
subpageId
required
integer
articleId
required
integer
title
string
fields
required
Role => {paragraphs, target}
object
Example generated
{ "subpageId": 1, "articleId": 1, "title": "example", "fields": {}}Responses
Section titled “Responses”The job id
AI helpers off, or no permission