PUT api/2.0/project/{projectid}/team This function requires authentication

Description

Updates a project team with the user IDs specified in the request.

Parameters
Name Description Type Example
projectId
sent in url
Project ID number 1234
participants
sent in body
List of user IDs Collection of guids
collection
9924256A-739C-462b-AF15-E652A3B1B6EB
notify
sent in body
Specifies whether to notify a project team members that they are added to the project or not Bool value true
Example
PUT api/2.0/project/1234/team
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "participants": [
    "9924256A-739C-462b-AF15-E652A3B1B6EB"
  ],
  "notify": true
}
Returns

Number of project participants

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "Id": "00000000-0000-0000-0000-000000000000",
      "UserName": "Mike.Zanyatski",
      "IsVisitor": false,
      "DisplayName": "Mike Zanyatski",
      "FirstName": "Mike",
      "LastName": "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",
      "Location": "Palo Alto",
      "Notes": "Notes to worker",
      "Title": "Manager",
      "MobilePhone": "MobilePhone",
      "MobilePhoneActivationStatus": "1",
      "Contacts": {
        "Type": "GTalk",
        "Value": "my@gmail.com"
      },
      "AvatarSmall": "url to small avatar",
      "Groups": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Group Name",
        "Manager": "Jake.Zazhitski"
      },
      "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,
      "CultureName": "en-EN",
      "IsSSO": false,
      "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator",
      "CanReadFiles": true,
      "CanReadMilestones": true,
      "CanReadMessages": true,
      "CanReadTasks": true,
      "CanReadContacts": true,
      "IsAdministrator": true,
      "IsRemovedFromTeam": true
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <Id>00000000-0000-0000-0000-000000000000</Id>
    <UserName>Mike.Zanyatski</UserName>
    <IsVisitor>False</IsVisitor>
    <DisplayName>Mike Zanyatski</DisplayName>
    <FirstName>Mike</FirstName>
    <LastName>Zanyatski</LastName>
    <Email>my@domain.com</Email>
    <Birthday>2008-04-10T06-30-00.000Z</Birthday>
    <Sex>male</Sex>
    <Status>1</Status>
    <ActivationStatus>0</ActivationStatus>
    <Terminated>2008-04-10T06-30-00.000Z</Terminated>
    <Department>Marketing</Department>
    <WorkFrom>2008-04-10T06-30-00.000Z</WorkFrom>
    <Location>Palo Alto</Location>
    <Notes>Notes to worker</Notes>
    <Title>Manager</Title>
    <MobilePhone>MobilePhone</MobilePhone>
    <MobilePhoneActivationStatus>1</MobilePhoneActivationStatus>
    <Contacts>
      <Type>GTalk</Type>
      <Value>my@gmail.com</Value>
    </Contacts>
    <AvatarSmall>url to small avatar</AvatarSmall>
    <Groups>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <Name>Group Name</Name>
      <Manager>Jake.Zazhitski</Manager>
    </Groups>
    <Lead>055312F1-1D71-4786-BB5B-D5910316E53C</Lead>
    <AvatarMedium>url to medium avatar</AvatarMedium>
    <Avatar>url to big avatar</Avatar>
    <IsAdmin>False</IsAdmin>
    <IsLDAP>False</IsLDAP>
    <ListAdminModules>projects</ListAdminModules>
    <ListAdminModules>crm</ListAdminModules>
    <IsOwner>False</IsOwner>
    <CultureName>en-EN</CultureName>
    <IsSSO>False</IsSSO>
    <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    <CanReadFiles>True</CanReadFiles>
    <CanReadMilestones>True</CanReadMilestones>
    <CanReadMessages>True</CanReadMessages>
    <CanReadTasks>True</CanReadTasks>
    <CanReadContacts>True</CanReadContacts>
    <IsAdministrator>True</IsAdministrator>
    <IsRemovedFromTeam>True</IsRemovedFromTeam>
  </response>
</result>