Table of contents
iTwins
Download API definition:
patch https://dev-api.bentley.com/itwins/accountsettings/{accountId}

Updates account settings for the requesting user's account. To get your primary account's Id, call the Get My Primary Account endpoint.

Account settings allows configuration of how the iTwins API works for your organization. The configurable settings and their supported values are listed below:

  • CreationAuthPolicy - Controls who is able to create iTwins
    • RbacPermission - Creation only for users who have the itwin_create access control permission
    • AnyoneInOrg - Creation for any user in the account's organization

Authentication

Requires Authorization header with valid Bearer token for scope itwin-platform.

For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.

Authorization

The calling user must be an org admin for their account.

Request parameters

Name
Required?
Description
accountId
Yes

The user's accountId

Request headers

Name
Required?
Description
Authorization
Yes

OAuth access token with itwin-platform scope

Accept
Yes

Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.

Request body

Account Settings (create)

Name
Type
Required?
Description
creationAuthPolicy
Yes

Example

json
{
    "creationAuthPolicy": "RbacPermission"
}

Response 200 OK

Account settings successfully updated.

json
{
    "accountSettings": {
        "id": "76c1102e-4f33-4dfa-ad93-bcd9ab717977",
        "creationAuthPolicy": "RbacPermission",
        "lastModifiedDateTime": "2026-05-20T14:36:41Z",
        "lastModifiedBy": "c08876e6-ea42-4174-8bd4-303de0ed14d9"
    }
}

Response 401 Unauthorized

This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.

json
{
    "error": {
        "code": "HeaderNotFound",
        "message": "Header Authorization was not found in the request. Access denied."
    }
}

Response 403 Forbidden

User is not authorized to update account settings for this account.

json
{
    "error": {
        "code": "InsufficientPermissions",
        "message": "The user has insufficient permissions for the requested operation."
    }
}

Response 404 Not Found

This response indicates that the specified iTwin was not found.

json
{
    "error": {
        "code": "iTwinNotFound",
        "message": "Requested iTwin is not available."
    }
}

Response 422 Unprocessable Entity

Invalid request to update account settings.

json
{
    "error": {
        "code": "InvalidiTwinsRequest",
        "message": "creationAuthPolicy must be a supported value."
    }
}

Response 429 Too many requests

This response indicates that the client sent more requests than allowed by this API for the current tier of the client.

json
{
    "error": {
        "code": "RateLimitExceeded",
        "message": "The client sent more requests than allowed by this API for the current tier of the client."
    }
}

Response headers

Name
Description
retry-after

Number of seconds to wait until client is allowed to make more requests.

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

target
String, null

The target of the error.

message
String

A human-readable representation of the error.

Error Response

Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.

Name
Type
Description
error

Error information.

Account Settings Policy

Account-level configuration for iTwin API behavior.

Name
Type
Description
id
Uuid

Unique identifier of the account.

lastModifiedBy
String, null

The Id of the user that last modified the settings.

lastModifiedDateTime
Date-time, null

UTC timestamp of the most recent update.

Account Settings (create)

Properties for creating account-level iTwin settings.

Name
Type
Description

Account Settings Create Auth Type

Determines who can create iTwins for the account.

Name
Type
Description
RbacPermission
String
AnyoneInOrg
String

AccountSettingsPolicy-response

Name
Type
Description
accountSettings

Was this page helpful?