Add or remove members from a context

patch/memberships/{membershipId}/members
Internal-Use Only

Adds or removes members from a context.

Request Samples

1

Response Samples

1{
2 "version": 1,
3 "id": "8646b35d-5ee5-43cb-860d-12f66c0e7e56",
4 "typeId": "membership",
5 "contextTypeId": "project",
6 "createdBy": "sastest1",
7 "creationTimeStamp": "2023-09-28T01:15:49.143000Z",
8 "createdByDisplayName": "SAS Test User 1 (sastest1)",
9 "modifiedBy": "sastest1",
10 "modifiedTimeStamp": "2023-09-28T01:15:49.143000Z",
11 "modifiedByDisplayName": "SAS Test User 1 (sastest1)"
12}

Path Parameters

NameTypeRequiredDescription
membershipId
string
true

The unique identifier for the context for which to update the members.

Query Parameters

NameTypeRequiredDescription
action
string
true

The membership update action to perform on the context.

Allowed values:
UPDATE_MEMBERSREMOVE_MEMBERS_BY_FILTER

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

The ETag that was returned from a GET, POST or PUT of a resource.

Examples:
"\"lgdxya1m\""

Request Body

The specification for context member additions or removals.

The specification for updating members.

NameTypeRequiredDescription
version
number
false

The version of the representation. This is version 1.

Example:
1
addMembers
$ref(#/components/schemas/permissionsEntryPropagation/properties/principal)[]
false

The principal identifiers to be added.

removeMembers
$ref(#/components/schemas/permissionsEntryPropagation/properties/principal)[]
false

The principal identifiers to be removed.

Responses

StatusMeaningDescription
200OKThe request succeeded and the specified context members were updated.Schema
400Bad RequestBad Request
412Precondition FailedThe ETag provided does not match the current resource.Schema
428Precondition RequiredThe request headers did not include a `If-Match` precondition.Schema