PUT api/2.0/project/time/times/status

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

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

Параметры

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

sent in body
Идентификаторы затраченного времени System.Int32[]
status

sent in body
Новый статус платежа NotChargeable, NotBilled, Billed
Пример
PUT api/2.0/project/time/times/status
Host: yourportal.Р7.com
Content-Type: application/json
Accept: application/json

{
  "timeids": [
    1234
  ],
  "status": "notchargeable"
}

Возвращает
Обновленное время

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

application/json

{
  "status": 0,
  "response": [
    {
      "canEdit": true,
      "id": 10,
      "date": "2022-11-03T15:35:57.8417886Z",
      "hours": 3.5,
      "note": "Sample note",
      "relatedProject": 123,
      "task": null,
      "relatedTask": 13456,
      "relatedTaskTitle": "Sample task",
      "createdBy": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "person": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "paymentStatus": 2,
      "statusChanged": "2022-11-03T15:35:57.8417886Z",
      "canEditPaymentStatus": true,
      "createOn": null
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <canEdit>true</canEdit>
    <id>10</id>
    <date>2022-11-03T15:35:57.8417886Z</date>
    <hours>3.5</hours>
    <note>Sample note</note>
    <relatedProject>123</relatedProject>
    <task />
    <relatedTask>13456</relatedTask>
    <relatedTaskTitle>Sample task</relatedTaskTitle>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <person>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </person>
    <paymentStatus>2</paymentStatus>
    <statusChanged>2022-11-03T15:35:57.8417886Z</statusChanged>
    <canEditPaymentStatus>true</canEditPaymentStatus>
    <createOn />
  </response>
</result>