Posts
Post React Add
Add a reaction to a post.
Add a reaction to a post.
PUT
/posts/{post_id}/reactsstoryden-session<token>
In: cookie
Path Parameters
post_id*string
Unique post ID.
Format
xidRequest Body
application/json
Add a reaction to a post.
emoji*string
A single emoji character representing a reaction. In future, this will be augmented with a more fully fledged custom emoji system.
Response Body
application/json
application/json
curl -X PUT "https://loading/api/posts/cc5lnd2s1s4652adtu50/reacts" \ -H "Content-Type: application/json" \ -d '{ "emoji": "string" }'{
"id": "cc5lnd2s1s4652adtu50",
"emoji": "string",
"author": {
"id": "cc5lnd2s1s4652adtu50",
"joined": "2019-08-24T14:15:22Z",
"suspended": "2019-08-24T14:15:22Z",
"handle": "Southclaws",
"name": "Barnaby Keene"
}
}Empty
Empty
{
"error": "string",
"message": "string",
"suggested": "string",
"metadata": {}
}Post Location Get GET
Locate a post just from its ID. This will tell you what kind of post it is and where to find it. Where "a post is" is simple for threads, just the slug. For replies, it will give you the thread slug and the position within the thread: the index, the page and the position on the page.
Post React Remove DELETE
Remove a reaction from a post.