full_access, limited_access, or consultant_access). The role's name and description are preserved; only permissions are replaced.view roles (route middleware) + Policy updatecurl --location 'https://api-dev.commandroom.ai/api/api/roles/1/apply-template' \
--header 'Authorization: Bearer {{token}}' \
--header 'X-Tenant-UUID: ' \
--header 'Content-Type: application/json' \
--data '{
"template": "full_access"
}'{
"message": "Success.",
"data": {
"id": 1,
"name": "Sample Name",
"description": "Sample description text.",
"guard_name": "Sample Guard Name",
"is_default": true,
"organization_id": 1,
"permissions": [
{
"id": 1,
"name": "Sample Name"
}
],
"created_at": "2026-01-15T10:30:00.000000Z",
"updated_at": "2026-01-15T10:30:00.000000Z"
}
}