Mutation
mutation RevokeApiKey($input: RevokeApiKeyInput!) {
revokeApiKey(input: $input) {
createdAt
description
displayName
environmentId
expireAt
id
}
}Variables
{
"input": {
"id": "value"
}
}Response
{
"data": {
"revokeApiKey": {
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
}
}Mutations
revokeApiKey
Revoke an API key (soft delete)
MUTATION
revokeApiKey(input: RevokeApiKeyInput!): ApiKey!Arguments
input
required
Returns
createdAt
DateTime!
The creation date of the API key
description
String
The description of the API key
displayName
String!
The display name of the API key
environmentId
UUID!
The unique identifier for the environment
expireAt
DateTime
The expiration date of the API key
id
UUID!
Unique identifier for the entity
keyType
The type of API key
token
String!
The token of the API key
Mutation
mutation RevokeApiKey($input: RevokeApiKeyInput!) {
revokeApiKey(input: $input) {
createdAt
description
displayName
environmentId
expireAt
id
}
}Variables
{
"input": {
"id": "value"
}
}Response
{
"data": {
"revokeApiKey": {
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
}
}