POST api/2.0/project/task/{parentTaskId}/link

Данная функция требует аутентификации

Описание
Добавляет связь между зависимой и родительской задачами, указанными в запросе.

Параметры

Название Описание Тип Пример
parentTaskId

sent in url
Идентификатор родительской задачи численный 1234
dependenceTaskId

sent in body
Идентификатор зависимой задачи численный 1234
linkType

sent in body
Тип ссылки Start, End, EndStart
Пример
POST api/2.0/project/task/1234/link
Host: yourportal.Р7.com
Content-Type: application/json
Accept: application/json

{
  "dependenceTaskId": 1234,
  "linkType": "start"
}

Возвращает
Зависимую задачу

Пример ответа

application/json

{
  "status": 0,
  "response": {
    "canEdit": false,
    "canCreateSubtask": false,
    "canCreateTimeSpend": false,
    "canDelete": false,
    "canReadFiles": false,
    "startDate": "2022-11-03T15:35:58.0618644Z",
    "id": 10,
    "title": "Sample Title",
    "description": "Sample description",
    "deadline": "2022-11-03T15:35:58.0618644Z",
    "priority": 1,
    "milestoneId": 123,
    "projectOwner": {
      "id": 123,
      "title": "Sample project",
      "status": 0,
      "isPrivate": false
    },
    "status": 0,
    "responsible": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updatedBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "created": "2022-11-03T15:35:58.0618644Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2022-11-03T15:35:58.0618644Z",
    "responsibles": null
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <canEdit>false</canEdit>
    <canCreateSubtask>false</canCreateSubtask>
    <canCreateTimeSpend>false</canCreateTimeSpend>
    <canDelete>false</canDelete>
    <canReadFiles>false</canReadFiles>
    <startDate>2022-11-03T15:35:58.0618644Z</startDate>
    <id>10</id>
    <title>Sample Title</title>
    <description>Sample description</description>
    <deadline>2022-11-03T15:35:58.0618644Z</deadline>
    <priority>1</priority>
    <milestoneId>123</milestoneId>
    <projectOwner>
      <id>123</id>
      <title>Sample project</title>
      <status>0</status>
      <isPrivate>false</isPrivate>
    </projectOwner>
    <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></profileUrl>
    </responsible>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <created>2022-11-03T15:35:58.0618644Z</created>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <updated>2022-11-03T15:35:58.0618644Z</updated>
    <responsibles />
  </response>
</result>