POST roles
POST
Bearerheader
AuthorizationBearer <token>Paste your JWT token here
The data transfer object containing the initial role configuration.
application/json- 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*stringThe name of the role.
Length
0 <= length <= 100Created
application/json- response
A role for a member in a committee. E.g.: "Chair" or "Treasurer".
id?integerThe unique identifier of a role, assigned incrementally.
Format
int32name*stringThe name of the role.
Length
0 <= length <= 100curl -X POST 'https://example.com/roles' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "id": 0, "name": "string"}