Mutations
updateApiKey
Updates an existing API key. This can be used to change the key’s name or other properties.
MUTATION
updateApiKey(input: APIKeyInput!): UpdateAPIKeyArguments
input
required
Returns
apikey
Mutation
mutation UpdateApiKey($input: APIKeyInput!) {
updateApiKey(input: $input) {
apikey {
_created
_etag
_updated
clientId
clientSecret
createdByApiClient {
id
name
}
}
}
}Variables
{
"input": {
"_etag": "string",
"clientId": "string"
}
}Response
{
"data": {
"updateApiKey": {
"apikey": {
"_created": "value",
"_etag": "string",
"_updated": "value",
"clientId": "string",
"clientSecret": "string",
"createdByApiClient": {
"id": 1,
"name": "string"
}
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation UpdateApiKey($input: APIKeyInput!) {
updateApiKey(input: $input) {
apikey {
_created
_etag
_updated
clientId
clientSecret
createdByApiClient {
id
name
}
}
}
}Variables
{
"input": {
"_etag": "string",
"clientId": "string"
}
}Response
{
"data": {
"updateApiKey": {
"apikey": {
"_created": "value",
"_etag": "string",
"_updated": "value",
"clientId": "string",
"clientSecret": "string",
"createdByApiClient": {
"id": 1,
"name": "string"
}
}
}
}
}