v1
latestOpenAPI 3.0.32026-08-0613775357.6 KBSet user project memberships
Sets the user's membership for all projects, replacing all existing memberships.
Warning: This operation replaces the user's membership list.
To add the user to a project, alternatively user the Update user project memberships operation.
If you leave off a project to which the user currently belongs, the user is REMOVED from that project.
If the user is already a member of a specified project, the user's membership is changed to the specified level.
If the user is not already a member of a specified project, the user is added with the specified level.
The JSON body should include a relationships field with [project_id, membership_level] tuples.
For example, {"relationships": [[1122, "editor"], [3344, "editor"]]}
Request body
Response
The project memberships for the matching user.
Example response
{
"paging": {
"per_page": 100,
"page": 1,
"previous": "/api/v1/users?per_page=1000&page=1",
"self": "/api/v1/users?per_page=1000&page=2",
"next": "/api/v1/users?per_page=1000&page=3"
},
"data": [
{
"id": 1122334,
"uid": "project-1122334",
"name": "PR001: Example Project"
}
]
}