Create new customer role.

To save customer role details in the system.

SecurityoAuth2
Request
path Parameters
customerId
required
integer <int64>

Customer unique identifier and which is associated with the token legal entity

Example: 12345
Request Body schema: application/json
required

Customer role fileds

name
required
string^[a-zA-Z0-9 ]+$

A valid role name can consist of alphanumeric characters and spaces.

description
required
string

Description for the role.

required
Array of objects (RoleApplication) non-empty

Customer applications which are present in the Bank's customer app store. Minimum one application should be provided.

Responses
201

Created

400

Bad request

401

You are not authorized to access the resource

403

Accessing the resource you were trying to reach is forbidden

404

The resource you were trying to reach is not found

500

Internal server error

503

Service unavailable

default

Save user details

post/api/user-management/v1/customers/{customerId}/roles
Request samples
application/json
{
  • "name": "Admin",
  • "description": "Role for admin users",
  • "applications": [
    ]
}
Response samples
application/json
{
  • "roleId": "7c40d833-6dfe-454a-bdea-0d6098c12c61"
}