# PUT /api/project-members/{id} > Project Members - Update a Project Membership Only the leader flag can change. Moving a membership to another project or another user is not offered on purpose - that is a different access decision, so remove the membership and add the new one instead. A project_id or user_id sent in the body is ignored. - **Endpoint:** `PUT /api/project-members/{id}` - **Group:** Project Members - **Since:** v1.0.0 - **Defined in:** `RestApi/Controllers/ProjectMembersController.php` ## Headers | Field | Type | Description | | --- | --- | --- | | `authtoken` | String | Authentication token, generated from admin area | ## Parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | Number | yes | Membership unique ID | | `is_leader` | Number | yes | Mandatory 0 or 1 | ## Request example ```bash curl -X PUT "https://yoursite.com/index.php/api/project-members/123" \ -H "authtoken: YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "is_leader": "..." }' ``` ## Responses ### Success - Success-Response: ```json HTTP/1.1 200 OK { "status": 200, "messages": { "success": "The record has been saved." } } ``` ### Error - Error-Response: ```json HTTP/1.1 404 Not Found { "status": false, "messages": { "error": "No data were found" } } ``` --- Part of the [REST API for RISE CRM](https://risecrm.themesic.com/apiguide/) documentation. Full page: https://risecrm.themesic.com/apiguide/project-members/update-project-member/