Unicat API Reference

Up - API Reference - Home


/api/p/<project gid>/members/remove

Requires JWT.

Remove a member.

A removed user can no longer access the project.

A member can remove themselves from the project, and the owner of the project can remove any member.

Request

POST /api/p/<project gid>/members/remove
Authorization: Bearer <JWT>

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

user a member's 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.

Error responses

401 Unauthorized - missing or expired JWT
403 Forbidden - not the owner of this project
422 Unprocessable entity - removal failed