Cancel a scheduled article
Takes a queued article back off the schedule. Needs sending: write.
The article returns to draft and its send time is cleared, so nothing will dispatch it until it is scheduled or sent again. It was never visible to readers while it was queued, so nothing a reader sees changes.
An article that is not scheduled answers 422 rather than succeeding quietly. draft and sent are both "not scheduled", and a caller cancelling a send needs to know which one it is looking at: an article that has already gone out cannot be recalled.
Publishes no event. A consumer told the article was scheduled gets no second event saying it no longer is, so read status on the article to know where it stands.
Request
- Base URL: https://api.usecommune.com
- URL: https://api.usecommune.com/articles/{article}/unschedule
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://usecommune.com/api/oauth/authorize, token URL https://usecommune.com/api/oauth/token, scopes: sending:write)
Response
The article, back as a draft, with scheduled_for null.
Example response
{
"short_id": "k7Rm2xQp",
"newsletter": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"authors": [
{
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
}
],
"thread": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.