Przejdź do głównej zawartości

removeClientTag

Dla: Programista

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 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
clientIdwymaganeID!

Identifier of the client.

tagIdwymaganeID!

Identifier of the tag.

Zwraca

Boolean!

Przykład

Mutacja
mutation RemoveClientTag($clientId: ID!, $tagId: ID!) {
removeClientTag(clientId: $clientId, tagId: $tagId)
}
Zmienne
{
"clientId": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c",
"tagId": "8e4a6c3d-9f5b-4a7c-8d0e-2f3a4b5c6d7e"
}
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 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
Odpowiedź
{
"data": {
"removeClientTag": true
}
}