Update Role
Update role permissions and details.
Endpoint
PUT /api/v1/roles/{role_id}
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Content-Type | Yes | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
role_id | integer | Yes | Role ID |
Request Body
{
"name": "Updated Role Name",
"permissions": ["workspace.read", "workspace.write", "workspace.delete"]
}
Response
Success (200)
{
"success": true,
"data": {
"role": {
"id": 1,
"name": "Updated Role Name",
"permissions": ["workspace.read", "workspace.write", "workspace.delete"]
},
"message": "Role updated successfully"
},
"message": "Role updated successfully"
}
Features
- Permission updates
- Role modification
- Impact analysis
Status
[WARNING] TODO: Not Implemented
This endpoint is defined in the router but the implementation logic is not yet complete.