Create a new role
POST
/api/organizations/{organization_id}/roles
roles
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/organizations//roles' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Manager",
"hourlyWage": 25
}'
Response Response Example
201 - Success
{
"id": "role_001",
"name": "Manager",
"organizationId": "org_12345",
"hourlyWage": 25,
"active": true,
"createdAt": "2023-10-27T09:00:00Z",
"updatedAt": "2023-10-27T09:00:00Z",
"deletedAt": null
}
Request
Path Params
organization_id
string
required
Example:
org_12345
Body Params application/json