Перейти к содержимому
R-Service R-Service
Руководство разработчика RR Tech Service Management

Note Reactions API

Эта документация пока недоступна на вашем языке, поэтому показана английская версия.

List all note reactions for a note:

GET /notes/:note_id/note_reactions

Status: 200 OK
[
{
"id": 5,
"person": {
"id": 6,
"name": "Howard Tanner"
},
"account": {
"id": 5,
"name": "Widget Data Center"
},
"reaction": "👍"
}
]

The response contains these fields by default. Pagination is available to reduce/limit the collection of note reactions.

POST /note_reactions

When creating a new note reaction you have to provide a note_id and reaction see the fields section .

Status: 201 Created
{
"id": 5,
"person": {
"id": 6,
"name": "Howard Tanner"
},
"account": {
"id": 5,
"name": "Widget Data Center"
},
"reaction": "👍"
}

Remove a note reaction with a specific ID.

DELETE /note_reactions/:id

Status: 204 No Content

account

Readonly reference to Account — The account that the note reaction belongs to

id

Readonly integer — The unique ID of the note reaction.

note_id

Required reference to Note

person

Readonly reference to Person

reaction

Required string — The type of reaction to add to the note. Valid values are: 👍 👎 😀 😕 🎉 ❤️.