tenantUpdate

Update an tenant. The tenantUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: platform:write

For a complete list of input attributes see the TenantAttributes type

mutation tenantUpdate ($id: ID, $code: String, $attributes: TenantAttributes!) {
  tenantUpdate (id: $id, code: $code, attributes: $attributes) {
      errors
      tenant {
        accountId
        code
        createdAt
        customFieldsData
        hasCustomFields
        id
        lastLogin
        lastSuccessfulWebhookAt
        lastWebhookStatus
        name
        platformId
        subdomain
        tenantUuid
        updatedAt
        userCount
        utilizationMetrics
      }
  }
}

ArgumentsLink to Arguments section

{
  "id": "456123",
  "code": "",
  "attributes": {
    "name": "",
    "code": "",
    "subdomain": "",
    "tenantUuid": "",
    "accountId": "456123",
    "platformId": "456123",
    "platformCode": "",
    "lastLogin": "2022-06-01T00:00:00Z"
  }
}
Name Type Description
id ID  
code String  
attributes TenantAttributes  

ResponseLink to Response section

Name Type Description
errors List (String)  
tenant Tenant