Roles
Roles define the permissions and access levels assigned to users within the system. Each role determines what actions a user can perform and which resources they can interact with.
Create a Role
Body
all ofOptional
Responses
200
A successful operation
application/json
Responseall of
and
post
POST /app/v1/roles HTTP/1.1
Host: api.validere.io
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"name": "text",
"description": "text",
"status": "active"
}
200
A successful operation
{
"name": "text",
"description": "text",
"status": "active",
"created_at": "2025-08-19T00:19:19.541Z",
"updated_at": "2025-08-19T00:19:19.541Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"updated_by": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"company_id": "123e4567-e89b-12d3-a456-426614174000"
}
Delete a Role
Update a Role
Path parameters
role_idstring · uuidRequired
Role ID
Body
namestringOptional
descriptionstringOptional
statusstring · enumOptionalPossible values:
Responses
200
A successful operation
application/json
Responseall of
and
put
PUT /app/v1/roles/{role_id} HTTP/1.1
Host: api.validere.io
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"name": "text",
"description": "text",
"status": "active"
}
200
A successful operation
{
"name": "text",
"description": "text",
"status": "active",
"created_at": "2025-08-19T00:19:19.541Z",
"updated_at": "2025-08-19T00:19:19.541Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"updated_by": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"company_id": "123e4567-e89b-12d3-a456-426614174000"
}
Get a Role
Path parameters
role_idstring · uuidRequired
Role ID
Responses
200
A successful operation
application/json
Responseall of
and
get
GET /app/v1/roles/{role_id} HTTP/1.1
Host: api.validere.io
Accept: */*
200
A successful operation
{
"name": "text",
"description": "text",
"status": "active",
"created_at": "2025-08-19T00:19:19.541Z",
"updated_at": "2025-08-19T00:19:19.541Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"updated_by": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"company_id": "123e4567-e89b-12d3-a456-426614174000"
}
Search Roles
Body
all ofOptional
and
and
Responses
200
successful operation
application/json
Responseall of
post
POST /app/v1/roles/search HTTP/1.1
Host: api.validere.io
Content-Type: application/json
Accept: */*
Content-Length: 386
{
"page": 0,
"page_size": 20,
"sort_by": "name",
"sort_direction": "desc",
"filter": {
"created_at": "2025-08-19T00:19:19.541Z",
"updated_at": "2025-08-19T00:19:19.541Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"updated_by": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"status": "active",
"user.id": "123e4567-e89b-12d3-a456-426614174000"
}
}
200
successful operation
{
"page_number": 0,
"page_size": 10,
"total_entries": 58,
"total_pages": 6,
"data": [
{
"name": "text",
"description": "text",
"status": "active"
},
{
"created_at": "2025-08-19T00:19:19.541Z",
"updated_at": "2025-08-19T00:19:19.541Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"updated_by": "123e4567-e89b-12d3-a456-426614174000"
},
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"company_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
Get Role Members
Path parameters
role_idstring · uuidRequired
Role ID
Responses
200
A successful operation
application/json
get
GET /app/v1/roles/{role_id}/members HTTP/1.1
Host: api.validere.io
Accept: */*
200
A successful operation
[
{
"created_at": "2025-08-19T00:19:19.541Z",
"updated_at": "2025-08-19T00:19:19.541Z",
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"updated_by": "123e4567-e89b-12d3-a456-426614174000",
"company_id": "123e4567-e89b-12d3-a456-426614174000",
"role_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
},
{
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"email": "[email protected]"
}
}
]
Assign Role to User
Remove Role from User
Last updated