Create a role
How to create a role via API
To create a new role, send a POST
request to the /api/roles
endpoint, passing the resource arguments in the request body.
Request
POST https://provisioning.commercelayer.io/api/roles
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.name |
| Required |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
relationships.organization |
| Required |
Example
The following request creates a new role:
Last updated