Update API key

updateApiKey(input: UpdateApiKeyInput!): UpdateApiKeyPayload!

Arguments

ArgumentTypeRequired
inputUpdateApiKeyInput!Yes

Input fields

input

UpdateApiKeyInput

FieldTypeRequired
idID!Yes
nameStringNo
expiresAtStringNo

Response

Returns UpdateApiKeyPayload!. Open the type for its fields and nested types.

FieldType
apiKeyApiKey!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation UpdateAPIKey($input: UpdateApiKeyInput!) {  updateApiKey(input: $input) {    apiKey {      id      projectId      name      status      createdAt    }  }}
variables.json
{  "input": {    "id": "00000000-0000-4000-8000-000000000001"  }}