Mutation
mutation RotateApiKey($input: RotateApiKeyInput!) {
rotateApiKey(input: $input) {
apiKeyWithSecret {
id
key
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"keyId": "string"
}
}Response
{
"data": {
"rotateApiKey": {
"apiKeyWithSecret": {
"id": "string",
"key": "string"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
rotateApiKey
Gives an API key a new secret; its scopes and APIs stay. Returns the new secret, the only time you can read it.
MUTATION
rotateApiKey(input: RotateApiKeyInput!): RotateApiKeyPayload!Arguments
input
required
Returns
apiKeyWithSecret
errors
Mutation
mutation RotateApiKey($input: RotateApiKeyInput!) {
rotateApiKey(input: $input) {
apiKeyWithSecret {
id
key
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"keyId": "string"
}
}Response
{
"data": {
"rotateApiKey": {
"apiKeyWithSecret": {
"id": "string",
"key": "string"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?