POST api/2.0/project/task/{taskid}/{subtaskid}/copy

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

Описание
Копирует подзадачу с идентификатором, указанным в запросе.

Параметры

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

sent in url
ID задачичисленный1234
subtaskid

sent in url
ID подзадачичисленный1234
Пример
POST api/2.0/project/task/1234/1234/copy
Host: yourportal.Р7.com
Content-Type: application/json
Accept: application/json

Возвращает
Новую подзадачу

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

application/json

{
  "status": 0,
  "response": {
    "canEdit": false,
    "taskId": 0,
    "id": 1233,
    "title": "Sample subtask",
    "description": "Sample description",
    "status": 1,
    "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"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <canEdit>false</canEdit>
    <taskId>0</taskId>
    <id>1233</id>
    <title>Sample subtask</title>
    <description>Sample description</description>
    <status>1</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>
  </response>
</result>