MutacjaBetaMutation.createClientNote
Writes a CRM note about a client — a call, a meeting, an e-mail — with the caller as its author. A note from an integration is shared with the staff.
| Wymagany zakres | clients:write |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
| Ponawianie | Wysyłaj nagłówek Idempotency-Key, żeby ponowienie nie wykonało zapisu drugi raz. Zapisy i idempotencja |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
inputwymagane | CreateClientNoteInput! | The new note. |
Zwraca
Przykład
mutation CreateClientNote($input: CreateClientNoteInput!) { createClientNote(input: $input) { id type content contactDate authorName }}{ "input": { "clientId": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c", "type": "CALL", "content": "Klient pyta o nakład 5000 szt. katalogu na luty.", "contactDate": "2026-10-05T09:30:00.000Z" }}IDEMPOTENCY_KEY=$(uuidgen) # ponawiaj z tym samym kluczem
curl -sS https://twoja-drukarnia.prynt.pl/api/v1/graphql \ -H "Authorization: Bearer $PRYNT_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<'JSON'{ "query": "mutation CreateClientNote($input: CreateClientNoteInput!) {\n createClientNote(input: $input) {\n id\n type\n content\n contactDate\n authorName\n }\n}", "variables": { "input": { "clientId": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c", "type": "CALL", "content": "Klient pyta o nakład 5000 szt. katalogu na luty.", "contactDate": "2026-10-05T09:30:00.000Z" } }}JSON{ "data": { "createClientNote": { "id": "0a6c8e5f-1b7d-4c9e-9f2a-4b5c6d7e8f9a", "type": "CALL", "content": "Klient pyta o nakład 5000 szt. katalogu na luty.", "contactDate": "2026-10-05T09:30:00.000Z", "authorName": "CRM" } }}