Add participant to project

post/projects/{projectId}/participants
Internal-Use Only

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).

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
projectId
string<object-id>
true

The identifier of a specific project.

Request Body

The representation used to create a new participant.

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
201CreatedA participant was created.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundThe project does not exist.Schema
409ConflictThe request could not be completed. The URI already exists as a participant of this project.Schema