Update a project team
PUT /api/2.0/project/{projectid:[0-9]+}/team
Updates a project team with the user IDs specified in the request.
Request body
projectId
type: integer
Project ID
Example: 0
participants
type: string[]
List of user IDs
notify
type: boolean
Specifies whether to notify a project team members that they are added to the project or not
Example: true
Request example
{
"projectId": 0,
"participants": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"notify": true
}
Returns
Number of project participants. A request that is not authenticated returns 401.
Response example
[
{
"CanReadFiles": true,
"CanReadMilestones": true,
"CanReadMessages": true,
"CanReadTasks": true,
"CanReadContacts": true,
"IsAdministrator": true,
"IsRemovedFromTeam": true,
"FirstName": "Mike",
"LastName": "Zanyatski",
"UserName": "Mike.Zanyatski",
"Email": "my@domain.com",
"Birthday": "2008-04-10T06-30-00.000Z",
"Sex": "male",
"Status": 1,
"ActivationStatus": 0,
"Terminated": "2008-04-10T06-30-00.000Z",
"Department": "Marketing",
"WorkFrom": "2008-04-10T06-30-00.000Z",
"Groups": [
{
"Name": "Group Name",
"Id": "00000000-0000-0000-0000-000000000000",
"Manager": "Jake.Zazhitski"
}
],
"Location": "Palo Alto",
"Notes": "Notes to worker",
"Lead": "055312F1-1D71-4786-BB5B-D5910316E53C",
"AvatarMedium": "url to medium avatar",
"Avatar": "url to big avatar",
"IsAdmin": false,
"IsLDAP": false,
"ListAdminModules": [
"projects,crm"
],
"IsOwner": false,
"IsVisitor": false,
"CultureName": "en-EN",
"IsSSO": false,
"QuotaLimit": 0,
"UsedSpace": 0,
"DocsSpace": 0,
"MailSpace": 0,
"TalkSpace": 0,
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "/Products/People/Profile.aspx?user=administrator"
}
]