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 zakres | clients:write |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
| Ponawianie | Operacja idempotentna: ponowienie bez nagłówka Idempotency-Key jest bezpieczne. Zapisy i idempotencja |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
idwymagane | ID! | Identifier of the note. |
inputwymagane | UpdateClientNoteInput! | What to change. |
Zwraca
Przykład
mutation UpdateClientNote($id: ID!, $input: UpdateClientNoteInput!) { updateClientNote(id: $id, input: $input) { id content }}{ "id": "0a6c8e5f-1b7d-4c9e-9f2a-4b5c6d7e8f9a", "input": { "content": "Klient pyta o nakład 6000 szt. katalogu na luty." }}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{ "data": { "updateClientNote": { "id": "0a6c8e5f-1b7d-4c9e-9f2a-4b5c6d7e8f9a", "content": "Klient pyta o nakład 6000 szt. katalogu na luty." } }}