post
Dismiss an announcement

https://CounterSocial.example/api/v1/announcements/:id/dismiss

Allows a user to mark the announcement as read.

Returns: Empty
OAuth: User token + write:accounts
Version history:
3.1.0 - added

Request

Headers
Authorization
required
string
Bearer
Path Parameters
:id
required
string
Local ID of an announcement in the database.

Response

200: Success

{}

put
Add reaction

https://CounterSocial.example/api/v1/announcements/:id/reactions/:name

React to an announcement with an emoji.

Returns: Empty
OAuth: User token + write:favourites
Version history:
3.1.0 - added

Request

Headers
Authorization
required
string
Bearer
Path Parameters
:id
required
string
Local ID of an announcement in the database.
:name
required
string
Unicode emoji, or shortcode of custom emoji

Response

200: Success

{}

422: Unprocessable Entity

{"error":"Validation failed: Name is not a recognized emoji"}

delete
Remove reaction

https://CounterSocial.example/api/v1/announcements/:id/reactions/:name

Undo a react emoji to an announcement.

Returns: Empty
OAuth: User token + write:favourites
Version history:
3.1.0 - added

Request

Headers
Authorization
required
string
Bearer
Path Parameters
:id
required
string
Local ID of an announcement in the database.
:name
required
string
Unicode emoji, or shortcode of custom emoji

Response

200: Success

{}

422: Unprocessable Entity

{"error":"Validation failed: Name is not a recognized emoji"}

Last updated July 3, 2020 ?? Improve this page