Put a thread on the global feed
Promotes a thread from the newsletter's own space to Commune's global feed, where anyone can read it. Needs content: write. One thread at a time: there is no automatic promotion and no bulk form.
It is not reversible through this API. A thread can be taken back off the feed in Commune itself, but no operation here does it. Treat the promotion as a decision rather than a toggle.
A thread that is already public is a success rather than a conflict, changes nothing, and publishes no event.
Replies are not threads and answer 422. A reply is exactly as readable as the thread it is in, so promote the thread instead.
Takes no body: there is only one visibility this moves a thread to.
Publishes thread.published, carrying the visibility the thread had before, unless it was already public.
Request
- Base URL: https://api.usecommune.com
- URL: https://api.usecommune.com/threads/{thread}/publish
- 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: content:write)
Response
The thread, now public.
Example response
{
"newsletter": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"author": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"article": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.