POST roles

POST
/roles

Authorization

Bearer
headerAuthorizationBearer <token>

Paste your JWT token here

Request Body

The data transfer object containing the initial role configuration.

application/json
  1. body

Defines the DTO for posting a role, containing the necessary information for creating a new role, including its name. The PostRoleDTO is used to transfer data from the client to the server when creating a new role, ensuring that all required information is provided and validated appropriately for the creation process.

name*string

The name of the role.

Length0 <= length <= 100

Response Body

Created

application/json
  1. response

A role for a member in a committee. E.g.: "Chair" or "Treasurer".

id?integer

The unique identifier of a role, assigned incrementally.

Formatint32
name*string

The name of the role.

Length0 <= length <= 100
curl -X POST 'https://example.com/roles' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
{  "id": 0,  "name": "string"}