Add or remove members from a context
patch/memberships/{membershipId}/members
Adds or removes members from a context.
1{2 "value": {3 "version": 1,4 "id": "8646b35d-5ee5-43cb-860d-12f66c0e7e56",5 "typeId": "membership",6 "contextTypeId": "project",7 "createdBy": "sastest1",8 "creationTimeStamp": "2023-09-28T01:15:49.143000Z",9 "createdByDisplayName": "SAS Test User 1 (sastest1)",10 "modifiedBy": "sastest1",11 "modifiedTimeStamp": "2023-09-28T01:15:49.143000Z",12 "modifiedByDisplayName": "SAS Test User 1 (sastest1)"13 }14}
| Name | Type | Required | Description |
|---|---|---|---|
membershipId | string | true | The unique identifier for the context for which to update the members. |
| Name | Type | Required | Description |
|---|---|---|---|
action | string | true | The membership update action to perform on the context. Allowed values: UPDATE_MEMBERSREMOVE_MEMBERS_BY_FILTER |
| Name | Type | Required | Description |
|---|---|---|---|
If-Match | string | true | The ETag that was returned from a GET, POST or PUT of a resource. |
The specification for context member additions or removals.
Specification for updating members.
| Name | Type | Required | Description |
|---|---|---|---|
version | number | false | The version of the representation. This is version 1. |
addMembers | array [Principal Identity] | false | The principal identifiers to be added. |
removeMembers | array [Principal Identity] | false | The principal identifiers to be removed. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | The request succeeded and the specified context members were updated. | Headers | Schema |
| 400 | Bad Request | Bad Request | ||
| 412 | Precondition Failed | Precondition failed | ||
| 428 | Precondition Required | Precondition required |