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

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
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" } }
MethodPUT
Path/api/project-members/{id}
GroupProject Members
Sincev1.0.0
Defined inRestApi/Controllers/ProjectMembersController.php