tenantCreate

Graphql fields and variables for the tenantCreate mutation

Create an tenant in Bunny to reference a tenant in your SaaS application

Scope required: product:write

For a complete list of input attributes see the TenantAttributes type

mutation tenantCreate ($attributes: TenantAttributes!, $subscriptionId: ID!) {
  tenantCreate (attributes: $attributes, subscriptionId: $subscriptionId) {
      errors
      tenant {
        accountId
        code
        createdAt
        id
        lastLogin
        latestProvisioningChangeId
        name
        platformId
        provisioningRequired
        provisioningState
        subdomain
        updatedAt
        userCount
        utilizationMetrics
      }
  }
}

Arguments

{
  "attributes": {
    "name": "",
    "code": "",
    "subdomain": "",
    "accountId": "456123",
    "platformId": "456123",
    "platformCode": ""
  },
  "subscriptionId": "456123"
}
Name
Type
Description

subscriptionId

ID

Response

Name
Type
Description

errors

List (String)

tenant

Last updated

Was this helpful?