provisionDevTenant
Requires permission settings:apps:manage.
Provision a dev tenant: a new, separate organization for building and testing apps. It holds synthetic data only, is always in test mode (mail and messages go to a sink, webhooks carry X-ARC-Environment: test), and its first user is you.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation ProvisionDevTenant($input: ProvisionDevTenantInput!) {
provisionDevTenant(input: $input) {
onboardingId
organizationId
subdomain
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ProvisionDevTenant($input: ProvisionDevTenantInput!) {\n provisionDevTenant(input: $input) {\n onboardingId\n organizationId\n subdomain\n }\n}",
"variables": {
"input": {
"name": "string",
"subdomain": "string"
}
}
}
EOF
Variables:
{
"input": {
"name": "string",
"subdomain": "string"
}
}
Response:
{
"data": {
"provisionDevTenant": {
"onboardingId": "string",
"organizationId": "id",
"subdomain": "string"
}
}
}
provisionDevTenant(
input: ProvisionDevTenantInput!
): ProvisionedDevTenant!
Arguments
provisionDevTenant.input ● ProvisionDevTenantInput! non-null input
The dev tenant to provision.
Type
ProvisionedDevTenant object
A dev tenant that is being set up.