tenantCreate
Create an tenant in Bunny to reference a tenant in your SaaS application. The tenantCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
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
customFieldsData
hasCustomFields
id
lastLogin
lastSuccessfulWebhookAt
lastWebhookStatus
name
platformId
subdomain
tenantUuid
updatedAt
userCount
utilizationMetrics
}
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"name": "",
"code": "",
"subdomain": "",
"tenantUuid": "",
"accountId": "456123",
"platformId": "456123",
"platformCode": "",
"lastLogin": "2022-06-01T00:00:00Z"
},
"subscriptionId": "456123"
}
| Name | Type | Description |
|---|---|---|
| attributes | TenantAttributes | |
| subscriptionId | ID |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| tenant | Tenant |