PUT api/2.0/project/{id}/withSecurityInfo
Updates the existing project with team security using all the parameters (project ID, title, description, responsible ID, etc) specified in the request.
Name |
Description |
Type |
Example |
id
sent in url
|
Project ID
|
number
|
1234
|
title
sent in body
|
New project title
|
string
|
some text
|
description
sent in body
|
New project description
|
string
|
some text
|
responsibleId
sent in body
|
New project responsible ID
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
tags
sent in body
|
New project tags
|
string
|
some text
|
participants
sent in body
|
New project participants with the information about their security rights
|
Collection of ASC.Projects.Core.Domain.Participants
collection
|
|
status
sent in body
|
New project status ("Open", "Paused", or "Closed")
optional
|
Open, Closed, Paused
|
Open
|
private
sent in body
|
Specifies if this project is private or not
optional
|
Bool value
|
true
|
notify
sent in body
|
Specifies whether to notify a project manager about the project actions or not
|
Bool value
|
true
|
PUT api/2.0/project/1234/withsecurityinfo
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"title": "some text",
"description": "some text",
"responsibleId": "9924256A-739C-462b-AF15-E652A3B1B6EB",
"tags": "some text",
"participants": [
{
"ID": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
"ProjectID": 1,
"CanReadFiles": true,
"CanReadMilestones": true,
"CanReadMessages": true,
"CanReadTasks": true,
"CanReadContacts": true,
"IsVisitor": true,
"IsFullAdmin": true,
"UserInfo": {
"ID": "38c0f464-f1e7-493e-8d95-dc4ee8ee834a",
"FirstName": "FirstName",
"LastName": "LastName",
"UserName": "UserName",
"BirthDate": "2019-07-26T00:00:00",
"Sex": true,
"Status": 1,
"ActivationStatus": 1,
"TerminatedDate": "2019-07-26T00:00:00",
"Title": "Title",
"WorkFromDate": "2019-07-26T00:00:00",
"Email": "Email",
"Contacts": [
"Contacts"
],
"Location": "Location",
"Notes": "Notes",
"Removed": false,
"LastModified": "2019-07-26T00:00:00",
"Tenant": 1,
"Lead": "072A8452-ADF3-40AA-B359-22DA7B8923E2",
"IsActive": false,
"CultureName": "CultureName",
"MobilePhone": "MobilePhone",
"MobilePhoneActivationStatus": 1,
"Sid": "Sid",
"LdapQouta": "LdapQouta",
"SsoNameId": "SsoNameId",
"SsoSessionId": "SsoSessionId",
"CreateDate": "2019-07-26T00:00:00",
"UsedSpace": "UsedSpace"
},
"IsAdmin": true,
"IsManager": true,
"IsRemovedFromTeam": true
}
],
"status": "Open",
"private": true,
"notify": true
}
application/json
{
"status": 0,
"response": {
"Id": 10,
"Title": "Sample Title",
"Description": "Sample description",
"Status": 0,
"Responsible": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
},
"ResponsibleId": "00000000-0000-0000-0000-000000000000",
"IsPrivate": false,
"TaskCount": 0,
"TaskCountTotal": 0,
"MilestoneCount": 0,
"DiscussionCount": 0,
"ParticipantCount": 0,
"TimeTrackingTotal": "TimeTrackingTotal",
"DocumentsCount": 0,
"IsFollow": 0,
"Tags": [
"Tags1",
"Tags2"
],
"UpdatedBy": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
},
"UpdatedById": "00000000-0000-0000-0000-000000000000",
"Created": "2020-12-22T04:11:56.5658524Z",
"CreatedBy": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
},
"CreatedById": "00000000-0000-0000-0000-000000000000",
"Updated": "2020-12-22T04:11:56.5658524Z",
"CanEdit": false,
"CanDelete": false,
"Security": {
"CanCreateMilestone": false,
"CanCreateMessage": false,
"CanCreateTask": false,
"CanCreateTimeSpend": false,
"CanEditTeam": false,
"CanReadFiles": false,
"CanReadMilestones": false,
"CanReadMessages": false,
"CanReadTasks": false,
"CanLinkContact": false,
"CanReadContacts": false,
"CanEdit": false,
"CanDelete": false,
"IsInTeam": false
},
"ProjectFolder": 13234
}
}
text/xml
<result>
<status>0</status>
<response>
<Id>10</Id>
<Title>Sample Title</Title>
<Description>Sample description</Description>
<Status>0</Status>
<Responsible>
<Id>00000000-0000-0000-0000-000000000000</Id>
<DisplayName>Mike Zanyatski</DisplayName>
<Title>Manager</Title>
<AvatarSmall>url to small avatar</AvatarSmall>
<ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
</Responsible>
<ResponsibleId>00000000-0000-0000-0000-000000000000</ResponsibleId>
<IsPrivate>False</IsPrivate>
<TaskCount>0</TaskCount>
<TaskCountTotal>0</TaskCountTotal>
<MilestoneCount>0</MilestoneCount>
<DiscussionCount>0</DiscussionCount>
<ParticipantCount>0</ParticipantCount>
<TimeTrackingTotal>TimeTrackingTotal</TimeTrackingTotal>
<DocumentsCount>0</DocumentsCount>
<IsFollow>0</IsFollow>
<Tags>Tags1</Tags>
<Tags>Tags2</Tags>
<UpdatedBy>
<Id>00000000-0000-0000-0000-000000000000</Id>
<DisplayName>Mike Zanyatski</DisplayName>
<Title>Manager</Title>
<AvatarSmall>url to small avatar</AvatarSmall>
<ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
</UpdatedBy>
<UpdatedById>00000000-0000-0000-0000-000000000000</UpdatedById>
<Created>2020-12-22T04:11:56.5658524Z</Created>
<CreatedBy>
<Id>00000000-0000-0000-0000-000000000000</Id>
<DisplayName>Mike Zanyatski</DisplayName>
<Title>Manager</Title>
<AvatarSmall>url to small avatar</AvatarSmall>
<ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
</CreatedBy>
<CreatedById>00000000-0000-0000-0000-000000000000</CreatedById>
<Updated>2020-12-22T04:11:56.5658524Z</Updated>
<CanEdit>False</CanEdit>
<CanDelete>False</CanDelete>
<Security>
<CanCreateMilestone>False</CanCreateMilestone>
<CanCreateMessage>False</CanCreateMessage>
<CanCreateTask>False</CanCreateTask>
<CanCreateTimeSpend>False</CanCreateTimeSpend>
<CanEditTeam>False</CanEditTeam>
<CanReadFiles>False</CanReadFiles>
<CanReadMilestones>False</CanReadMilestones>
<CanReadMessages>False</CanReadMessages>
<CanReadTasks>False</CanReadTasks>
<CanLinkContact>False</CanLinkContact>
<CanReadContacts>False</CanReadContacts>
<CanEdit>False</CanEdit>
<CanDelete>False</CanDelete>
<IsInTeam>False</IsInTeam>
</Security>
<ProjectFolder>13234</ProjectFolder>
</response>
</result>