Skip to content
gist.link ↗

deleteVariant

Mutation Shop API — POST https://shop.api.gist.link/graphql

Delete a variant. ADMIN.

shop:mutation:deleteVariant

The calling IAM key must hold this permission (or a wildcard that covers it: shop:mutation:* or shop:*) and the access token must have been minted with audience=shop. See Permissions.

type Mutation {
deleteVariant(variantId: String!): Product!
}
Argument Type Required Description
variantId String! Yes —

Product! — see the Shop types reference.

Terminal window
curl https://shop.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation DeleteVariant($variantId: String!) { deleteVariant(variantId: $variantId) { id uuid title status created_at updated_at } }",
"variables": {
"variantId": "example"
}
}
JSON