Unicat API Reference

Up - API Reference - Home


/api/account/leave_project

Requires JWT.

Leaving the project cancels the membership.

Afterwards, you no longer have access to the project.

Request

POST /api/account/leave_project
Authorization: Bearer <JWT>

{
    "project": "<project gid>",
}

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {},
    "data": {}
    }
}

There is no result info or data in the response because the user is no longer a member.

If you cache cc.projects_members data, you'll need to remove the entry yourself.

Error response

401 Unauthorized - missing or expired JWT
422 Unprocessable entity - membership cancellation failed