POST /roles

Add a new role with the given details.

application/json

Body Required

  • roleId integer
  • name string
  • companyID integer

Responses

  • 201

    Role created successfully

  • 500

    Error occurred while creating role

POST /roles
curl \
 -X POST http://api.example.com/roles \
 -H "Content-Type: application/json" \
 -d '{"roleId":42,"name":"string","companyID":42}'
Request example
{
  "roleId": 42,
  "name": "string",
  "companyID": 42
}