# Update Member Role Update an organization member's role. ## Path Parameters **`organization_id`** string required Organization ID with `org_` prefix. **`user_id`** string required User ID with `usr_` prefix. ## Request Body **`role_id`** string optional Role ID to assign to the member. **`status_id`** string optional Status ID to assign to the member. ## Returns Returns the updated member role information including success status, message, member ID, user ID, role ID, and role name. ## Authentication Requires authentication. User must be Admin or Owner. bash ```bash curl -X PUT \ "https://api.aitronos.com/v1/organizations/org_123/users/usr_abc123def456" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "role_id": "role_member_001" }' ``` Python SDK ```python from aitronos import Aitronos client = Aitronos(api_key="your-api-key") result = client.crew_management_members.update_member( organization_id="org_abc123", user_id="usr_abc123", role_id="role_member_001", ) print(result) ``` python ```python import requests response = requests.put( "https://api.aitronos.com/v1/organizations/org_123/users/usr_abc123def456", headers={"X-API-Key": f"{FREDDY_API_KEY}"}, json={"role_id": "role_member_001"} ) ``` javascript ```javascript const response = await fetch('https://api.aitronos.com/v1/organizations/org_123/users/usr_abc123def456', { method: 'PUT', headers: { 'X-API-Key': `${FREDDY_API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ role_id: 'role_member_001' }) }); ``` 200 OK ```json { "success": true, "message": "Member role updated successfully", "id": "orgusr_abc123def456", "user_id": "usr_xyz789", "role_id": "role_member_001", "role_name": "Member" } ``` 403 Forbidden ```json { "success": false, "error": { "code": "INSUFFICIENT_PERMISSIONS", "message": "You don't have permission to access this resource", "system_message": "You don't have permission to access this resource", "type": "authorization_error", "status": 403, "details": {}, "trace_id": "req_abc123xyz", "timestamp": "2025-12-22T15:30:00Z" } } ``` ## Related Resources - [Organization Overview](/docs/documentation/organizations)