Draft
Draft is an internal action used to create in process drafts of content items.
GET /v3/draft
Return the last draft by content SRN. Returned data will be a RAW draft.
Acl Action: DRAFT list
Arguments:
content
- string: Content SRN
Example Response:
[
{
"content": "<p><br><\/p>",
"content_raw": "{\"entityMap\":[],\"blocks\":[{\"key\":\"1ujar\",\"text\":\"\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":[]}]}",
"version": "2",
"created_at": "2017-03-23 15:30:09",
"user_id": "1"
}
]
POST /v3/draft
Create a new draft.
Acl Action: DRAFT create
Arguments:
content
- string: Content SRN
Example Request:
{
"content": "<p><br><\/p>",
"content_raw": "{\"entityMap\":[],\"blocks\":[{\"key\":\"1ujar\",\"text\":\"\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":[]}]}",
}
Example Response:
See GET /v3/draft