Create a role
Body·
required
application/json
Fields accepted when creating a role. Unknown or read-only fields are rejected.
- Type: string | nulllabelrequired
- Type: string | nullcategory
- Type: number | nullorder
- Type: "inactive" or "active" or nullenumstatus
Active roles are assignable; inactive are retired.
- Type: string | nullFormat: uuidteam
Id The role grouping used for ordering and display (replaces the legacy Section). References teams.id.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/roles
curl https://api.weddingoperatingsystems.com/api/v1/roles \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"label": null,
"status": "inactive",
"teamId": null,
"order": null,
"category": null
}'
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"label": null,
"status": "inactive",
"teamId": null,
"order": null,
"category": null,
"createdTime": "2026-09-30T11:22:55.092Z",
"lastEditedTime": "2026-09-30T11:22:55.092Z"
}
}