Mutation
mutation RevokeApiKey($input: RevokeApiKeyInput!) {
revokeApiKey(input: $input) {
apiKey {
id
name
capabilities
workspace {
name
uid
createdAt
dbtVersion
supportedDbtVersions
dbtPartialParsing
}
createdAt
expiresAt
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"revokeApiKey": {
"apiKey": {
"id": "id",
"name": "string",
"capabilities": [
"string"
],
"workspace": {
"name": "string",
"uid": "string",
"createdAt": "value",
"dbtVersion": "string",
"supportedDbtVersions": [
"string"
],
"dbtPartialParsing": true
},
"createdAt": "value",
"expiresAt": "value"
}
}
}
}revokeApiKey
Revokes a workspace API key: it stops working at once. The calling key can revoke only keys with no capability beyond its own, itself included. Revoking a key that already expired succeeds and writes no audit entry. Needs api_keys:write.
MUTATION
revokeApiKey(input: RevokeApiKeyInput!): RevokeApiKeyPayload!Arguments
input
required
The key to revoke.
Returns
apiKey
The revoked key.
Mutation
mutation RevokeApiKey($input: RevokeApiKeyInput!) {
revokeApiKey(input: $input) {
apiKey {
id
name
capabilities
workspace {
name
uid
createdAt
dbtVersion
supportedDbtVersions
dbtPartialParsing
}
createdAt
expiresAt
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"revokeApiKey": {
"apiKey": {
"id": "id",
"name": "string",
"capabilities": [
"string"
],
"workspace": {
"name": "string",
"uid": "string",
"createdAt": "value",
"dbtVersion": "string",
"supportedDbtVersions": [
"string"
],
"dbtPartialParsing": true
},
"createdAt": "value",
"expiresAt": "value"
}
}
}
}