Update project participant

put/projects/{projectId}/participants/{participantId}
Internal-Use Only

Replaces an existing project participant.

Request Samples

1

Response Samples

1{
2 "id": "string",
3 "identityUri": "http://example.com",
4 "role": "contributor",
5 "version": 0,
6 "name": "string",
7 "type": "user",
8 "avatarUri": "http://example.com",
9 "createdBy": "string",
10 "creationTimeStamp": "2019-08-24T14:15:22Z",
11 "modifiedBy": "string",
12 "modifiedTimeStamp": "2019-08-24T14:15:22Z",
13 "links": [
14 {
15 "method": "string",
16 "rel": "string",
17 "uri": "string",
18 "href": "string",
19 "title": "string",
20 "type": "string",
21 "itemType": "string",
22 "responseType": "string",
23 "responseItemType": "string"
24 }
25 ]
26}

Path Parameters

NameTypeRequiredDescription
participantId
string
true

The identifier of a specific participant.

projectId
string<object-id>
true

The identifier of a specific project.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

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

Request Body

The representation used to update a participant.

NameTypeRequiredDescription
id
string<object-id>
false

The identifier of a specific participant.

role
string
false

The role of the participant in the project.

Allowed values:
ownercontributor
Default:
contributor
version
integer
false

The version of the object.

Responses

StatusMeaningDescription
200OKThe request succeeded. The participant was updated.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundThe project or participant does not exist.Schema
409ConflictThe request could not be completed. The URI already exists as a participant of this project.Schema
412Precondition FailedThe ETag provided does not match the current version of the object.Schema
428Precondition RequiredThe ETag was not provided when updating an existing type.Schema