updateApiKey

Change an API key's name or expiry.

Arguments

  • inputUpdateApiKeyInput!required

  • input.idID!required

  • input.nameString

  • input.expiresAtString

Responses

mutation UpdateApiKey($input: UpdateApiKeyInput!) {  updateApiKey(input: $input) {    apiKey {      id      projectId      userId      accountId      name      keyPrefix      lastUsedAt      expiresAt      createdAt      updatedAt      status      revokedAt      scopes      scope    }  }}
{  "data": {    "updateApiKey": {      "apiKey": {        "id": "string",        "projectId": "string",        "userId": "string",        "accountId": "string",        "name": "string",        "keyPrefix": "string",        "lastUsedAt": "string",        "expiresAt": "string",        "createdAt": "string",        "updatedAt": "string",        "status": "string",        "revokedAt": "string",        "scopes": [          "string"        ],        "scope": "string"      }    }  }}

The UpdateApiKeyPayload! in data.updateApiKey.