Mutation
mutation UpdateApiKey($input: UpdateApiKeyInput!) {
updateApiKey(input: $input) {
createdAt
description
displayName
environmentId
expireAt
id
}
}Variables
{
"input": {
"id": "value"
}
}Response
{
"data": {
"updateApiKey": {
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
}
}Mutations
updateApiKey
Update an existing API key
MUTATION
updateApiKey(input: UpdateApiKeyInput!): 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 UpdateApiKey($input: UpdateApiKeyInput!) {
updateApiKey(input: $input) {
createdAt
description
displayName
environmentId
expireAt
id
}
}Variables
{
"input": {
"id": "value"
}
}Response
{
"data": {
"updateApiKey": {
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
}
}