TanqoryDocs

tanqoryExtAiAppControlUpdate

  • Mutation
  • Apps and platform

Sets Tanqory AI for one partner app installed on the store (appId: the App's id): its credit limit per credit period (null: the default) and whether AI is on for it. Applies to the app's next AI request: over the limit it is refused with SPEND_LIMIT_REACHED, turned off with ACCESS_DENIED. A staff member with the ai.manage permission, signed in (never an app or a delegate token). Errors: NOT_FOUND (the app is not installed on the store), INVALID (a limit out of range).

Arguments

ArgumentTypeRequiredDefault
appIdID!Required
inputTanqoryExtAiAppControlInput!Required

Returns

TanqoryExtAiAppControlPayload

FieldTypeDescription
appControlTanqoryExtAiAppControl
userErrors[TanqoryExtAiCreditsUserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtAiAppControlUpdate($appId: ID!, $input: TanqoryExtAiAppControlInput!) {\n  tanqoryExtAiAppControlUpdate(appId: $appId, input: $input) {\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"appId":"gid://tanqory/Type/id","input":{}}}'

Built from commit 0cac88ece6de · API version 2026-10