Mutation
mutation CreateOneEnvironment($input: CreateOneEnvironmentInput!) {
createOneEnvironment(input: $input) {
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
accountRole
nonProductionRole
productionRole
}
displayName
emailDomains {
accountId
domain
id
}
}
apiKeys {
createdAt
description
displayName
environmentId
expireAt
id
}
color
createdAt
description
displayName
}
}Variables
{
"input": {
"environment": {}
}
}Response
{
"data": {
"createOneEnvironment": {
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"displayName": "string",
"emailDomains": [
{
"accountId": "value",
"domain": "string",
"id": "value"
}
]
},
"apiKeys": [
{
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
],
"color": "string",
"createdAt": "value",
"description": "string",
"displayName": "string"
}
}
}Mutations
createOneEnvironment
Create a new environment
MUTATION
createOneEnvironment(input: CreateOneEnvironmentInput!): Environment!Arguments
input
required
Returns
account
apiKeys
[ApiKey!]!
Arguments
filter
default:{}
Specify to filter the records returned.
sorting
[ApiKeySort!]
default:[]
Specify to sort results.
color
String
The color associated with the environment, used for UI representation
createdAt
DateTime
Timestamp of when the record was created
description
String
The description of the environment
displayName
String!
The display name of the environment
hardenClientAccessEnabled
Boolean!
Whether hardened client access is enabled for the environment
id
UUID!
Unique identifier for the entity
isSandbox
Boolean!
Whether the environment is a sandbox environment
permanentDeletionDate
DateTime
The date when the environment will be permanently deleted, if applicable
provisionStatus
The provisioning status of the environment, e.g. "PROVISIONED" or "PROVISIONING"
signingToken
String!
The signing token for the environment, used for secure communication
slug
String!
The slug of the environment, used in URLs
type
The type of the environment, e.g. "DEVELOPMENT", "PRODUCTION", or "SANDBOX"
Mutation
mutation CreateOneEnvironment($input: CreateOneEnvironmentInput!) {
createOneEnvironment(input: $input) {
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
accountRole
nonProductionRole
productionRole
}
displayName
emailDomains {
accountId
domain
id
}
}
apiKeys {
createdAt
description
displayName
environmentId
expireAt
id
}
color
createdAt
description
displayName
}
}Variables
{
"input": {
"environment": {}
}
}Response
{
"data": {
"createOneEnvironment": {
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"displayName": "string",
"emailDomains": [
{
"accountId": "value",
"domain": "string",
"id": "value"
}
]
},
"apiKeys": [
{
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
],
"color": "string",
"createdAt": "value",
"description": "string",
"displayName": "string"
}
}
}