Mutation
mutation RevokeCompanyApiKey($input: RevokeCompanyApiKeyInput!) {
revokeCompanyApiKey(input: $input) {
companyApiKey {
id
name
capabilities
workspaces {
edges {
__typename
}
pageInfo {
__typename
}
totalCount
}
createdAt
expiresAt
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"revokeCompanyApiKey": {
"companyApiKey": {
"id": "id",
"name": "string",
"capabilities": [
"string"
],
"workspaces": {
"edges": [
{
"__typename": "WorkspaceEdge"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"createdAt": "value",
"expiresAt": "value"
}
}
}
}revokeCompanyApiKey
Revokes a company API key: it stops working at once. The calling key can revoke only keys with no capability or workspace beyond its own, itself included. Revoking a key that already expired succeeds and writes no audit entry. Needs a company API key with api_keys:write.
MUTATION
revokeCompanyApiKey(input: RevokeCompanyApiKeyInput!): RevokeCompanyApiKeyPayload!Arguments
input
required
The key to revoke.
Returns
companyApiKey
The revoked key.
Mutation
mutation RevokeCompanyApiKey($input: RevokeCompanyApiKeyInput!) {
revokeCompanyApiKey(input: $input) {
companyApiKey {
id
name
capabilities
workspaces {
edges {
__typename
}
pageInfo {
__typename
}
totalCount
}
createdAt
expiresAt
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"revokeCompanyApiKey": {
"companyApiKey": {
"id": "id",
"name": "string",
"capabilities": [
"string"
],
"workspaces": {
"edges": [
{
"__typename": "WorkspaceEdge"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"createdAt": "value",
"expiresAt": "value"
}
}
}
}