POST
/v1/mgmt/tenant/update/batchAuthorization
Descope Project ID and Management Key AuthorizationBearer <token>
Project ID:Management Key as bearer token.
In: header
Request Body
application/json
tenants*array<UpdateTenantRequest>
Items
1 <= itemsstrict?boolean
When true, setting custom attributes the project does not declare for tenants returns error E111843 listing them for every item in the batch: an item that sets one fails and the others are saved. When false (default), those keys are ignored. An attribute declared in the last few seconds may still be ignored.
Update multiple tenants in a single batch, using a valid management key. Each tenant is updated independently; per-tenant failures are returned in the response body.
curl -X POST "https://api.descope.com/v1/mgmt/tenant/update/batch" \ -H "Content-Type: application/json" \ -d '{ "tenants": [ { "id": "string", "name": "string" } ] }'{ "updatedTenantIds": [ "string" ], "failedTenants": [ { "failure": "string", "tenant": { "id": "string", "name": "string", "selfProvisioningDomains": [ "string" ], "customAttributes": { "attribute-key": "attribute-value" }, "authType": "none", "disabled": true, "enforceSSO": true, "enforceSSOExclusions": [ "string" ], "federatedAppIds": [ "string" ], "roleInheritance": "none", "approvedDomains": null, "enforceSSOExclusionPermissions": [ "string" ], "strict": true } } ], "additionalErrors": { "property1": "string", "property2": "string" }}export interface Response {updatedTenantIds?: string[]failedTenants?: UpdateTenantBatchFailureResponse[]additionalErrors?: {[k: string]: string}}export interface UpdateTenantBatchFailureResponse {failure?: string/** * Replaces the tenant's settings: a field left unset is cleared, except approvedDomains and an empty authType, which keep their current values. */tenant?: {id: stringname: stringselfProvisioningDomains?: string[]/** * Custom attributes as key-value pairs. Keys must be strings; values can be strings, numbers, booleans, or arrays. */customAttributes?: {[k: string]: string}/** * deprecated - authType should be set via ConfigureTenantSettings */authType?: ("none" | "saml" | "oidc" | "")disabled?: booleanenforceSSO?: booleanenforceSSOExclusions?: string[]federatedAppIds?: string[]roleInheritance?: ("none" | "userOnly" | "")/** * The tenant's vanity hostname (e.g. surveys.example.com), unique across the project's tenants. Requests that reach the project through its trusted proxy on this hostname are bound to this tenant. One item for now * A list of hostnames, absent keeps the current value and an empty list clears it */approvedDomains?: {[k: string]: unknown}/** * Permission names or IDs whose holders in the tenant may sign in without SSO while enforceSSO is on (break-glass accounts) */enforceSSOExclusionPermissions?: string[]/** * When true, setting custom attributes the project does not declare for tenants returns error E111843 listing them: the request fails and nothing is saved. When false (default), those keys are ignored. An attribute declared in the last few seconds may still be ignored. */strict?: boolean}} Was this helpful?