Mutation
mutation CreateAccount($accountName: String!) {
createAccount(accountName: $accountName) {
accessRoles {
accountRole
nonProductionRole
productionRole
}
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
accountRole
nonProductionRole
productionRole
}
displayName
emailDomains {
accountId
domain
id
}
}
createdAt
cubejsToken
customerToken
email
}
}Variables
{
"accountName": "string"
}Response
{
"data": {
"createAccount": {
"accessRoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"displayName": "string",
"emailDomains": [
{
"accountId": "value",
"domain": "string",
"id": "value"
}
]
},
"createdAt": "value",
"cubejsToken": "string",
"customerToken": "string",
"email": "string"
}
}
}Mutations
createAccount
Create a new account
MUTATION
createAccount(accountName: String!): Member!Arguments
accountName
String!
required
Returns
accessRoles
Get the access roles assigned to the member
account
createdAt
DateTime
The date and time when the member was created
cubejsToken
String
The Cube.js token associated with the member
customerToken
String
The customer token associated with the member
email
String!
The email address of the member
hideGettingStartedPage
Boolean
Indicates if the member has hidden the getting started page
id
UUID!
The unique identifier of the member
memberStatus
The status of the member, e.g. "active" or "inactive"
serviceApiKey
String
The service API key associated with the member
user
userId
String!
The id of the user associated with this member
Mutation
mutation CreateAccount($accountName: String!) {
createAccount(accountName: $accountName) {
accessRoles {
accountRole
nonProductionRole
productionRole
}
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
accountRole
nonProductionRole
productionRole
}
displayName
emailDomains {
accountId
domain
id
}
}
createdAt
cubejsToken
customerToken
email
}
}Variables
{
"accountName": "string"
}Response
{
"data": {
"createAccount": {
"accessRoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"displayName": "string",
"emailDomains": [
{
"accountId": "value",
"domain": "string",
"id": "value"
}
]
},
"createdAt": "value",
"cubejsToken": "string",
"customerToken": "string",
"email": "string"
}
}
}