Secret keys
Revoke a secret key
DELETE/v1/applications/{app_id}/secret_keys/{key_id}
The key stops working at once; calls with it get
401 invalid_api_key. It stays in the list with revoked_at set.
Revoking a key that is already revoked answers 204 again. A key
id of another application, or an organization API key id, answers
404 not_found.
Needs keys:write, like creating a key. A secret key gets
403 secret_key_not_allowed.
Yol parametreleri
app_idstringzorunluÖrnek:
app_sellerkey_idstringzorunluÖrnek:
key_3b7e10c2
Başlıklar
X-Fox-TenantstringRequired when authenticating with a dashboard session token instead of a tenant API key.
Örnek:
ten_8f2c91a7
Yanıtlar
204No Content
Revoked
401UnauthorizedError
Missing or invalid key or token. The Management API answers
missing_api_key(no Bearer token) orinvalid_api_key(unknown or revoked secret key or organization API key).errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
403ForbiddenError
missing_scope(the role or scopes of the key, or the dashboard role, lack the scope),secret_key_not_allowed(a secret key called an endpoint for the whole organization) ornot_a_member(X-Fox-Tenant names a tenant the caller does not belong to).errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
404Not FoundError
Not found
errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject