MutacjaBetaMutation.removeClientTag
Takes a tag from a client (the tag itself stays). Always true; taking a tag the client does not have changes 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 |
|---|---|---|
clientIdwymagane | ID! | Identifier of the client. |
tagIdwymagane | ID! | Identifier of the tag. |
Zwraca
Boolean!
Przykład
mutation RemoveClientTag($clientId: ID!, $tagId: ID!) { removeClientTag(clientId: $clientId, tagId: $tagId)}{ "clientId": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c", "tagId": "8e4a6c3d-9f5b-4a7c-8d0e-2f3a4b5c6d7e"}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 RemoveClientTag($clientId: ID!, $tagId: ID!) {\n removeClientTag(clientId: $clientId, tagId: $tagId)\n}", "variables": { "clientId": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c", "tagId": "8e4a6c3d-9f5b-4a7c-8d0e-2f3a4b5c6d7e" }}JSON{ "data": { "removeClientTag": true }}