POST api/2.0/project/withSecurity This function requires authentication

Description

Creates a new project with team security using all the necessary (title, description, responsible ID, etc) and some optional parameters specified in the request.

Parameters
Name Description Type Example
title
sent in body
Project title string some text
description
sent in body
Project description string some text
responsibleId
sent in body
Project responsible ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
tags
sent in body
Project tags string some text
private
sent in body
Specifies if this project is private or not Bool value true
participants
sent in body
Project participants with the information about their security rights
optional
Collection of ASC.Projects.Core.Domain.Participants
collection
notify
sent in body
Specifies whether to notify a project manager about the project actions or not
optional
Bool value true
tasks
sent in body
Project tasks Collection of ASC.Projects.Core.Domain.Tasks
collection
milestones
sent in body
Project milestones Collection of ASC.Projects.Core.Domain.Milestones
collection
notifyResponsibles
sent in body
Specifies whether to notify responsibles about the project actions or not
optional
Bool value true
Example
POST api/2.0/project/withsecurity
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",
  "private": true,
  "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
    }
  ],
  "notify": true,
  "tasks": [
    {
      "Priority": 1,
      "Status": 1,
      "CustomTaskStatus": 1,
      "Milestone": 1,
      "SortOrder": 1,
      "Deadline": 1,
      "SubTasks": [
        {
          "Title": "Title",
          "Responsible": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
          "Status": 1,
          "Task": 1,
          "ParentTask": null,
          "CreateBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
          "CreateOn": "2020-12-22T04:11:57.0469085+00:00",
          "LastModifiedOn": "2020-12-22T04:11:57.0469085+00:00",
          "LastModifiedBy": 1,
          "StatusChangedOn": "2020-12-22T04:11:57.0469085+00:00"
        }
      ],
      "Responsibles": [
        "2fdfe577-3c26-4736-9df9-b5a683bb8520"
      ],
      "Links": [
        {
          "ParentTaskId": 1,
          "DependenceTaskId": 1,
          "LinkType": 1
        }
      ],
      "MilestoneDesc": {
        "ParentTaskId": 1,
        "DependenceTaskId": 1,
        "LinkType": 1
      },
      "StatusChangedOn": "2020-12-22T04:11:57.0469085+00:00",
      "StartDate": "2020-12-22T04:11:57.0469085+00:00",
      "Security": {
        "CanEdit": false,
        "CanCreateSubtask": false,
        "CanCreateTimeSpend": false,
        "CanDelete": false,
        "CanReadFiles": false
      },
      "progress": 1,
      "Progress": 1,
      "Title": "Title",
      "Description": "Description",
      "HtmlTitle": "HtmlTitle",
      "Project": {
        "Title": "Title",
        "HtmlTitle": "HtmlTitle",
        "Description": "Description",
        "Status": 1,
        "Responsible": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "Private": 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
        },
        "CreateBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "CreateOn": "2020-12-22T04:11:57.0469085+00:00",
        "LastModifiedBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "LastModifiedOn": "2020-12-22T04:11:57.0469085+00:00",
        "TaskCount": 1,
        "TaskCountTotal": 1,
        "MilestoneCount": 1,
        "ParticipantCount": 1,
        "DiscussionCount": 1,
        "TimeTrackingTotal": "TimeTrackingTotal",
        "DocumentsCount": 1,
        "StatusChangedOn": "2020-12-22T04:11:57.0469085+00:00"
      },
      "CreateBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
      "CreateOn": "2020-12-22T04:11:57.0469085+00:00",
      "LastModifiedOn": "2020-12-22T04:11:57.0469085+00:00",
      "LastModifiedBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
      "NotifyId": "NotifyId"
    }
  ],
  "milestones": [
    {
      "Responsible": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
      "Status": 1,
      "IsNotify": false,
      "IsKey": false,
      "DeadLine": "2020-12-22T04:11:57.0469085+00:00",
      "ActiveTaskCount": 1,
      "ClosedTaskCount": 1,
      "StatusChangedOn": "2020-12-22T04:11:57.0469085+00:00",
      "Title": "Title",
      "Description": "Description",
      "HtmlTitle": "HtmlTitle",
      "Project": {
        "Title": "Title",
        "HtmlTitle": "HtmlTitle",
        "Description": "Description",
        "Status": 1,
        "Responsible": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "Private": 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
        },
        "CreateBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "CreateOn": "2020-12-22T04:11:57.0469085+00:00",
        "LastModifiedBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "LastModifiedOn": "2020-12-22T04:11:57.0469085+00:00",
        "TaskCount": 1,
        "TaskCountTotal": 1,
        "MilestoneCount": 1,
        "ParticipantCount": 1,
        "DiscussionCount": 1,
        "TimeTrackingTotal": "TimeTrackingTotal",
        "DocumentsCount": 1,
        "StatusChangedOn": "2020-12-22T04:11:57.0469085+00:00"
      },
      "CreateBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
      "CreateOn": "2020-12-22T04:11:57.0469085+00:00",
      "LastModifiedOn": "2020-12-22T04:11:57.0469085+00:00",
      "LastModifiedBy": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
      "NotifyId": "NotifyId"
    }
  ],
  "notifyResponsibles": true
}
Returns

Newly created project

Example Response

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>