Create a new role
1 min
POST
https://api.upstartcommerce.com/profile-permissions/roles
acceptstringGenerated from available response content types
bodyobjectThe role to create.
201Role created successfully
400Invalid request parameters
401Missing or invalid authentication token
409Role with this name already exists
500Internal server error
curl --request POST \
--url https://api.upstartcommerce.com/profile-permissions/roles \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"name": "warehouse-manager",
"scope": "",
"roleType": ""
}'