Add participant to project
post/projects/{projectId}/participants
Adds a new participant to the project. If the participant referenced is already a participant of this project, this operation fails with a 409 status (conflict).
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 |
---|---|---|---|
projectId | string<object-id> | true | The identifier of a specific project. |
The representation used to create a new participant.
Name | Type | Required | Description |
---|---|---|---|
identityUri | string<uri> | true | The URI of the participant. This must be a valid URI pointing to a user or group from the Identities service. |
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 | ||
---|---|---|---|---|
201 | Created | A participant was created. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | The project does not exist. | Schema | |
409 | Conflict | The request could not be completed. The URI already exists as a participant of this project. | Schema |