v1

latestOpenAPI 3.0.12026-07-26381328555.2 KB
B2BAccount

Update existing role and its account associations.

Required fields:

  • Name: Role name (must be unique within tenant)
  • Behaviors: List of behavior IDs (at least one required)
  • AccountIds: List of account IDs to associate with role (at least one required)

Note: This performs a complete replacement of account associations.

put/commerce/customer/b2baccounts/roles/{roleId}

Path parameters

roleIdinteger required

Role ID

Query parameters

responseFieldsstring

limits which fields are returned in the response body

Request body

accountIdsinteger[] nullable

List of Account IDs associated with this role. Required for CreateRole and UpdateRole operations.

behaviorsinteger[] nullable

List of Role Behaviors

idinteger

Unique Identifier for the Role

isSystemRoleboolean

Indicate if the Role is a System Role or Custom Role

namestring nullable

Name for the Role

Response

OK

accountIdsinteger[] nullable

List of Account IDs associated with this role. Required for CreateRole and UpdateRole operations.

behaviorsinteger[] nullable

List of Role Behaviors

idinteger

Unique Identifier for the Role

isSystemRoleboolean

Indicate if the Role is a System Role or Custom Role

namestring nullable

Name for the Role