Update project participant
put/projects/{projectId}/participants/{participantId}
Replaces an existing project participant.
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}
Name | Type | Required | Description |
---|---|---|---|
participantId | string | true | The identifier of a specific participant. |
projectId | string<object-id> | true | The identifier of a specific project. |
Name | Type | Required | Description |
---|---|---|---|
If-Match | string | true | The ETag that was returned from a GET, POST, or PUT of this object. |
The representation used to update a participant.
Name | Type | Required | Description |
---|---|---|---|
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. The participant was updated. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | The project or participant does not exist. | Schema | |
409 | Conflict | The request could not be completed. The URI already exists as a participant of this project. | Schema | |
412 | Precondition Failed | The ETag provided does not match the current version of the object. | Schema | |
428 | Precondition Required | The ETag was not provided when updating an existing type. | Schema |