ProjectMembershipsClient
Methods
Section titled “Methods”add( projectId, input, options?): Promise<AddProjectMembershipResult>;Signature
Add a person of the workspace, named by exactly one of userId and
email; someone who isn't one is 404 identity-user-not-found. The
outcome has their userId.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
input |
AddProjectMembershipBody |
options? |
{ idempotencyKey?: string; } |
options.idempotencyKey? |
string |
Returns
Section titled “Returns”Promise<AddProjectMembershipResult>
POST /v1/projects/:projectId/memberships
list()
Section titled “list()”list(projectId, filter?): Promise<ProjectMembershipCollectionPage>;Signature
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
filter? |
ListProjectMembershipsFilter |
Returns
Section titled “Returns”Promise<ProjectMembershipCollectionPage>
GET /v1/projects/:projectId/memberships
remove()
Section titled “remove()”remove( projectId, userId, options?): Promise<void>;Signature
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
userId |
string |
options? |
{ idempotencyKey?: string; } |
options.idempotencyKey? |
string |
Returns
Section titled “Returns”Promise<void>
DELETE /v1/projects/:projectId/memberships/:userId
updateRole()
Section titled “updateRole()”updateRole( projectId, userId, role, options?): Promise<void>;Signature
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
userId |
string |
role |
AssignableProjectRole |
options? |
{ idempotencyKey?: string; } |
options.idempotencyKey? |
string |
Returns
Section titled “Returns”Promise<void>
PATCH /v1/projects/:projectId/memberships/:userId