What creating an article from stories offers
GET
/cms/print/v2/subpages/{id}/article-draft
const url = 'https://api.example.com/cms/print/v2/subpages/1/article-draft?stories=example';const options = {method: 'GET', headers: {'API-Key': '<API-Key>', 'Token-User': '<Token-User>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.example.com/cms/print/v2/subpages/1/article-draft?stories=example' \ --header 'API-Key: <API-Key>' \ --header 'Token-User: <Token-User>'The content types with their text fields (value is what POST /subpages/{id}/articles takes: the field type, or option:<key> for a custom field; role is the wb- tag the story gets, null when the field is not written back from the page), the issue sections the article can be filed in (the publication’s pinned category first), and each story’s latest text (plain, excerpt cut at 400 characters) with a suggested field: from its wb- tag, else by length (shortest the title, longest the contents, second-longest the summary).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Query Parameters
Section titled “Query Parameters”stories
required
string
Comma-separated story ids of the page
Responses
Section titled “Responses”Types, sections and stories