Mutation
mutation UpdateApiKey($input: UpdateApiKeyInput!) {
updateApiKey(input: $input) {
apiKey {
id
description
permissions
createdBy {
__typename
... on UserActor {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"apiKeyId": "id",
"permissions": [
"string"
]
}
}Response
{
"data": {
"updateApiKey": {
"apiKey": {
"id": "id",
"description": "string",
"permissions": [
"string"
],
"createdBy": {
"__typename": "UserActor"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateApiKey
Update the description and/or permissions of an existing API key. Permissions are replaced in full — pass the complete desired set. You cannot assign permissions you do not hold. Requires the apiKey:edit permission.
MUTATION
updateApiKey(input: UpdateApiKeyInput!): UpdateApiKeyOutput!Arguments
input
required
Returns
apiKey
error
Mutation
mutation UpdateApiKey($input: UpdateApiKeyInput!) {
updateApiKey(input: $input) {
apiKey {
id
description
permissions
createdBy {
__typename
... on UserActor {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"apiKeyId": "id",
"permissions": [
"string"
]
}
}Response
{
"data": {
"updateApiKey": {
"apiKey": {
"id": "id",
"description": "string",
"permissions": [
"string"
],
"createdBy": {
"__typename": "UserActor"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

