curl -X GET https://api.companyflow.com/roles/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN"
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"company_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Senior Developer",
"description": "Senior-level software development position",
"is_system_role": false,
"permissions_cache": ["employees:read", "employees:write"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
Retrieve a specific role by ID
curl -X GET https://api.companyflow.com/roles/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN"
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"company_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Senior Developer",
"description": "Senior-level software development position",
"is_system_role": false,
"permissions_cache": ["employees:read", "employees:write"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
"550e8400-e29b-41d4-a716-446655440000"Show Role Object
curl -X GET https://api.companyflow.com/roles/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN"
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"company_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Senior Developer",
"description": "Senior-level software development position",
"is_system_role": false,
"permissions_cache": ["employees:read", "employees:write"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}