Update a Project Membership
PUT/api/project-members/{id}
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.
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Membership unique ID |
| is_leader | Number | Mandatory 0 or 1 |
curl -X PUT "https://yoursite.com/api/project-members/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "is_leader": "..." }' Success-Response:
HTTP/1.1 200 OK
{ "status": 200, "messages": { "success": "The record has been saved." } } Error-Response:
HTTP/1.1 404 Not Found
{ "status": false, "messages": { "error": "No data were found" } }