/v0/notes/:id/reaction (POST)
POST
/v0/notes/:id/reaction
const url = 'http://localhost:3000/v0/notes/:id/reaction';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"emoji":"🎉"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/v0/notes/:id/reaction \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "emoji": "🎉" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
Note ID
string
Example
1Note ID
Request Body
Section titled “Request Body ” Media type application/json
object
emoji
required
Emoji
string
Example
🎉Responses
Section titled “ Responses ”OK
Media type application/json
object
id
required
Note ID
string
content
required
Note content
string
visibility
required
Note visibility
string
contents_warning_comment
required
Contents warning comment
string
author_id
required
Author account ID
string
created_at
required
Note created date
string
attachment_files
required
Note Attachment Media
Array<object>
object
id
required
Attachment Medium id
string
name
required
Attachment filename
string
author_id
required
Attachment author account id
string
hash
required
Attachment medium blurhash
string
mime
required
Attachment medium mime type
string
nsfw
required
If true, attachment is nsfw
boolean
url
required
Attachment medium url
string format: uri
thumbnail
required
Attachment thumbnail url
string
Example
{ "id": "38477395", "content": "hello world!", "visibility": "PUBLIC", "contents_warning_comment": "This note contains sensitive content", "author_id": "38477395", "created_at": "2021-01-01T00:00:00Z", "attachment_files": [ { "id": "39783475", "name": "image.jpg", "author_id": "309823457", "hash": "e9f*5oin{dn", "mime": "image/jpeg", "nsfw": false, "url": "https://images.example.com/image.webp", "thumbnail": "https://images.example.com/image_thumbnail.webp" } ]}Bad Request
Media type application/json
Not Found
Media type application/json
object
error
required
Note not found
string
Example
{ "error": "NOTE_NOT_FOUND"}Internal Server Error
Media type application/json
Internal Error
object
error
required
Internal Error
string
Example
{ "error": "INTERNAL_ERROR"}