Przejdź do głównej zawartości

updateClientNote

Dla: Programista

MutacjaBetaMutation.updateClientNote

Changes a note. Only its author may: an integration changes the notes it wrote. A field left out keeps its value; the same values sent again change nothing.

Wymagany zakresclients:write
Dostępne odPrynt 0.28.0
StabilnośćBeta (co to znaczy)
PonawianieOperacja idempotentna: ponowienie bez nagłówka Idempotency-Key jest bezpieczne. Zapisy i idempotencja

Argumenty

NazwaTypOpis
idwymaganeID!

Identifier of the note.

inputwymaganeUpdateClientNoteInput!

What to change.

Zwraca

ClientNote!

Przykład

Mutacja
mutation UpdateClientNote($id: ID!, $input: UpdateClientNoteInput!) {
updateClientNote(id: $id, input: $input) {
id
content
}
}
Zmienne
{
"id": "0a6c8e5f-1b7d-4c9e-9f2a-4b5c6d7e8f9a",
"input": {
"content": "Klient pyta o nakład 6000 szt. katalogu na luty."
}
}
Wywołanie (curl)
curl -sS https://twoja-drukarnia.prynt.pl/api/v1/graphql \
-H "Authorization: Bearer $PRYNT_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"query": "mutation UpdateClientNote($id: ID!, $input: UpdateClientNoteInput!) {\n updateClientNote(id: $id, input: $input) {\n id\n content\n }\n}",
"variables": {
"id": "0a6c8e5f-1b7d-4c9e-9f2a-4b5c6d7e8f9a",
"input": {
"content": "Klient pyta o nakład 6000 szt. katalogu na luty."
}
}
}
JSON
Odpowiedź
{
"data": {
"updateClientNote": {
"id": "0a6c8e5f-1b7d-4c9e-9f2a-4b5c6d7e8f9a",
"content": "Klient pyta o nakład 6000 szt. katalogu na luty."
}
}
}