Remove a Member from a Project

DELETE/api/project-members/{id}

Soft delete of the membership only. The user account and the project are not touched, and adding the same user back later restores this very row.

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number Membership unique ID, not the user ID
curl -X DELETE "https://yoursite.com/api/project-members/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
{ "status": 200, "messages": { "success": "The record has been deleted." } }

Error-Response:

HTTP/1.1 400 Bad Request
{ "status": false, "messages": { "error": "This record can't be deleted" } }
MethodDELETE
Path/api/project-members/{id}
GroupProject Members
Sincev1.0.0
Defined inRestApi/Controllers/ProjectMembersController.php