order and moves the next items down. The backend links the source articles to the saved items and sets ai.generated. An analytics GRAPH in the proposal gets its /newslettergraphs record only on accept. If the curator deletes the target item of an open ITEM proposal, the backend rejects that proposal. Accepting a NEWSLETTER proposal sets generatedAt on the newsletter and restores a removed AI disclaimer with its default text (FR18).Authorization: Bearer ********************offline_access-Offline accessopenid-OpenIDprofile-Profileemail-Emailcurl --location --request PATCH 'https://api.belga.press/belgapress/api/newsletters//proposals/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "ACCEPTED"
}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"target": "NEWSLETTER",
"itemId": 0,
"itemType": "HEADING",
"order": 0,
"instruction": "string",
"autoApply": true,
"brief": {
"prompt": "string",
"scope": {
"boards": false,
"labels": false,
"feeds": false
}
},
"status": "GENERATING",
"progress": {
"step": "SELECTING_ARTICLES",
"percent": 0
},
"error": {
"code": "AI_GENERATION_NOT_ALLOWED",
"message": "string"
},
"items": [
{
"fields": {
"dateRangeType": "TODAY",
"labelIds": [
0
],
"order": "MANUAL",
"orderArray": [
"string"
]
},
"note": "string",
"order": 0,
"title": "string",
"type": "HEADING",
"ref": "string",
"sourceArticleCount": 0
}
],
"createdAt": "2019-08-24T14:15:22.123Z",
"completedAt": "2019-08-24T14:15:22.123Z",
"expiresAt": "2019-08-24T14:15:22.123Z"
}