Mutation
mutation CreateScopedApiKey($input: CreateScopedApiKeyInput!) {
createScopedApiKey(input: $input) {
createdAt
description
displayName
environmentId
expireAt
id
}
}Variables
{
"input": {
"displayName": "string",
"environmentId": "value",
"scopes": [
{
"action": "READ",
"resource": "API_KEY"
}
]
}
}Response
{
"data": {
"createScopedApiKey": {
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
}
}Mutations
createScopedApiKey
Create a new scoped API key
MUTATION
createScopedApiKey(input: CreateScopedApiKeyInput!): ApiKey!Arguments
input
required
Returns
createdAt
DateTime!
The creation date of the API key
description
String
The description of the API key
displayName
String!
The display name of the API key
environmentId
UUID!
The unique identifier for the environment
expireAt
DateTime
The expiration date of the API key
id
UUID!
Unique identifier for the entity
keyType
The type of API key
token
String!
The token of the API key
Mutation
mutation CreateScopedApiKey($input: CreateScopedApiKeyInput!) {
createScopedApiKey(input: $input) {
createdAt
description
displayName
environmentId
expireAt
id
}
}Variables
{
"input": {
"displayName": "string",
"environmentId": "value",
"scopes": [
{
"action": "READ",
"resource": "API_KEY"
}
]
}
}Response
{
"data": {
"createScopedApiKey": {
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
}
}