On this page
unreactToNote
mutation · in the family Your own session
What it does
Remove your own reaction from a note.
Remove YOUR reaction: strict — removing a mark you never made refuses NOT_FOUND (never a silent no-op). Answers the note's FRESH reaction groups. Requires authentication.
What happens
Only your own mark can be removed; removing one you never made is refused rather than silently ignored.
Who may call it
Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- Cashier
- An API key whose scope allows
api:unreactToNote
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
targetConstructId | ID ID! | yes | No further notes. |
noteId | ID ID! | yes | No further notes. |
emoji | String String! | yes | No further notes. |
Returns
NoteReactionGroup [NoteReactionGroup!]! — One reaction group.
Example request
mutation ExampleUnreactToNote($targetConstructId: ID!, $noteId: ID!, $emoji: String!) {
unreactToNote(targetConstructId: $targetConstructId, noteId: $noteId, emoji: $emoji) {
emoji
count
userIds
}
}
Variables:
{
"targetConstructId": "01900000-0000-7000-8000-79e077380000",
"noteId": "01900000-0000-7000-8000-cf06f4680000",
"emoji": "<emoji>"
}
Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"unreactToNote": [
{
"emoji": "<emoji>",
"count": 1,
"userIds": [
"01900000-0000-7000-8000-f79e33c40000"
]
}
]
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": {
"name": "genesis",
"number": 0
},
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}
Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. (NOT_FOUND)CONFLICT/*— The record’s state, or a change made in the meantime, does not allow this; the codes are on the CONFLICT page. (CONFLICT)VALIDATION/VERSION_REQUIRED— The request did not say which app version it came from. (VALIDATION)