DELETE api/Requests/{id}/SubRequests/{subRequestId}?lastModifiedDate={lastModifiedDate}

Удаляет вложенную заявку с номером SubRequestId из заявки с номером Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Основная заявка

integer

Required

subRequestId

Вложенная заявка

integer

Required

lastModifiedDate

Конкурентная метка

date

Required

Body Parameters

None.

Response Information

Success Resource Description

RequestViewModel
NameDescriptionTypeAdditional information
Permissions

Разрешения на заявку

RequestPermissionSet

Элемент не учитывается при сохранении

RequiredStartDate

Дата рассмотрения

date

None.

NormativeTime

Нормативное время исполнения

decimal number

None.

Laboriousness

Трудоёмкость (мин.) (внутренний норматив исполнения заявки)

integer

None.

PlanTimeExecution

Плановое время исполнения (минуты)(внешний норматив исполнения заявки)

integer

None.

PlanTimeApproval

Плановое время согласования (минуты)

integer

None.

PlanTimeApprovalsPeriod

Плановое время согласования cуммарно по согласующим

integer

None.

PlanTimeClarification

Плановое время уточнения (минуты)

integer

None.

PlanTimeTotal

Общее плановое время. Сумма = исполнения + согласования + уточнения

integer

None.

FactTimeExecution

Фактическое время исполнения

integer

None.

IsExpiredFactTimeExecution

Фактическое время исполнения превысило плановое время исполнения

boolean

None.

FactTimeApproval

Фактическое время согласования

integer

None.

IsExpiredFactTimeApproval

Фактическое время согласования превысило плановое время согласования

boolean

None.

FactTimeClarification

Фактическое время уточнения

integer

None.

IsExpiredFactTimeClarification

Фактическое время уточнения превысило плановое время уточнения

boolean

None.

FactTimeTotal

Общее фактическое время. Сумма = исполнения + согласования + уточнения

integer

None.

ActualTime

Фактическое время исполнения

decimal number

None.

NormativeNote

Примечание из норматива

string

None.

AccessRequest

Заявка на доступ к ресурсу.

AccessRequestViewModel

Элемент не учитывается при сохранении

Approvers

Согласующие

Collection of ApproverViewModel

При сохранении, для каждого элемента коллекции учитывается только идентификатор

Observers

Обозреватели

Collection of RequestObserverViewModel

При сохранении, для каждого элемента коллекции учитывается только идентификатор

Clarifications

Уточнения

Collection of ClarificationViewModel

None.

HashTags

Хэштеги

Collection of string

None.

Attachments

Вложения

Collection of AttachmentViewModel

None.

CustomFields

Доп. поля заявки

Collection of RequestCustomFieldViewModel

None.

DependentRequests

Перечень идентификаторов зависимых заявок, в которые вложена заявка

Collection of integer

None.

DependentTasks

Перечень идентификаторов зависимых задач, в которые вложена заявка

Collection of integer

None.

Dependencies

[Поле устарело и будет удалено. Используйте DependentRequests]

Collection of integer

Элемент не учитывается при сохранении

ReadCommentCount

Кол-во прочитанных адресных комментариев

integer

Элемент не учитывается при сохранении

UnreadCommentCount

Кол-во непрочитанных адресных комментариев

integer

Элемент не учитывается при сохранении

CommentCount

Всего комментариев

integer

Элемент не учитывается при сохранении

Comments

None.

Collection of CommentViewModel

None.

IsFavourite

Заявка находится в списке избранных

boolean

Элемент не учитывается при сохранении

LastModifiedDate

Метка, для реализации механизма определения параллелизма. Обязателен при редактировании.

date

Элемент учитывается при редактировании/обновлении

Id

Номер заявки

integer

None.

Status

Статус заявки

RequestStatus

None.

Department

Отдел

DepartmentViewModelFull

При сохранении учитывается только идентификатор

Category

категория

CategoryViewModelFull

При сохранении учитывается только идентификатор

RequestType

Тип

RequestTypeViewModelFull

При сохранении учитывается только идентификатор

JobType

Вид

JobTypeViewModelFull

При сохранении учитывается только идентификатор

Description

Описание заявки

string

None.

Initiator

Инициатор

UserNameViewModel

При сохранении учитывается только идентификатор

Contractor

Исполнитель

UserNameViewModel

При сохранении учитывается только идентификатор

Region

Регион

RegionViewModel

При сохранении учитывается только идентификатор

CreateDate

Дата создания заявки в UTC

date

None.

ExpiredTimeLeft

Оставшееся время выполнения заявки

integer

None.

CustomFields

None.

Collection of RequestCustomFieldViewModel

None.

SubRequests

Перечень идентификаторов вложенных заявок

Collection of integer

Элемент не учитывается при сохранении

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Permissions": 0,
  "RequiredStartDate": "2022-08-17T03:58:24+03:00",
  "NormativeTime": 1.1,
  "Laboriousness": 2,
  "PlanTimeExecution": 3,
  "PlanTimeApproval": 4,
  "PlanTimeApprovalsPeriod": 5,
  "PlanTimeClarification": 6,
  "PlanTimeTotal": 7,
  "FactTimeExecution": 8,
  "IsExpiredFactTimeExecution": true,
  "FactTimeApproval": 10,
  "IsExpiredFactTimeApproval": true,
  "FactTimeClarification": 12,
  "IsExpiredFactTimeClarification": true,
  "FactTimeTotal": 14,
  "ActualTime": 15.1,
  "NormativeNote": "sample string 16",
  "AccessRequest": {
    "AccessSheetId": 1,
    "AccessResource": "sample string 2",
    "User": {
      "Department": "sample string 1",
      "Id": 2,
      "Login": "sample string 3",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "RegionId": 6,
      "Appoint": "sample string 7",
      "Organization": "sample string 8"
    }
  },
  "Approvers": [
    {
      "ApproverId": 1,
      "Permissions": 0,
      "Status": 0,
      "IsUserAdded": true,
      "WaitingForApprovalSince": "2022-08-17T03:58:24+03:00",
      "ResolutionDate": "2022-08-17T03:58:24+03:00",
      "SubstitutedUser": {
        "Id": 1,
        "UserNameWithStatus": "sample string 2",
        "FormattedName": "sample string 3",
        "UserNameWithMiddleName": "sample string 4",
        "UserName": "sample string 5",
        "UserSureName": "sample string 6",
        "JobPosition": "sample string 7",
        "Region": "sample string 8",
        "IsActual": true,
        "RegionId": 10,
        "Address": "sample string 11",
        "Room": "sample string 12",
        "InternalPhone": "sample string 13",
        "CityPhone": "sample string 14",
        "MobilePhone": "sample string 15",
        "Cfo": "sample string 16",
        "Department": "sample string 17",
        "Organisation": "sample string 18",
        "Email": "sample string 19",
        "Alternate": 20,
        "Login": "sample string 21",
        "Password": "sample string 22",
        "Status": "sample string 23",
        "Image": "sample string 24"
      },
      "FactTimeApprovalInt": 3,
      "Id": 4,
      "Login": "sample string 5",
      "FirstName": "sample string 6",
      "LastName": "sample string 7",
      "RegionId": 8,
      "Appoint": "sample string 9",
      "Organization": "sample string 10"
    },
    {
      "ApproverId": 1,
      "Permissions": 0,
      "Status": 0,
      "IsUserAdded": true,
      "WaitingForApprovalSince": "2022-08-17T03:58:24+03:00",
      "ResolutionDate": "2022-08-17T03:58:24+03:00",
      "SubstitutedUser": {
        "Id": 1,
        "UserNameWithStatus": "sample string 2",
        "FormattedName": "sample string 3",
        "UserNameWithMiddleName": "sample string 4",
        "UserName": "sample string 5",
        "UserSureName": "sample string 6",
        "JobPosition": "sample string 7",
        "Region": "sample string 8",
        "IsActual": true,
        "RegionId": 10,
        "Address": "sample string 11",
        "Room": "sample string 12",
        "InternalPhone": "sample string 13",
        "CityPhone": "sample string 14",
        "MobilePhone": "sample string 15",
        "Cfo": "sample string 16",
        "Department": "sample string 17",
        "Organisation": "sample string 18",
        "Email": "sample string 19",
        "Alternate": 20,
        "Login": "sample string 21",
        "Password": "sample string 22",
        "Status": "sample string 23",
        "Image": "sample string 24"
      },
      "FactTimeApprovalInt": 3,
      "Id": 4,
      "Login": "sample string 5",
      "FirstName": "sample string 6",
      "LastName": "sample string 7",
      "RegionId": 8,
      "Appoint": "sample string 9",
      "Organization": "sample string 10"
    }
  ],
  "Observers": [
    {
      "IsUserAdded": true,
      "Permissions": 0,
      "Id": 1,
      "Login": "sample string 2",
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "RegionId": 5,
      "Appoint": "sample string 6",
      "Organization": "sample string 7"
    },
    {
      "IsUserAdded": true,
      "Permissions": 0,
      "Id": 1,
      "Login": "sample string 2",
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "RegionId": 5,
      "Appoint": "sample string 6",
      "Organization": "sample string 7"
    }
  ],
  "Clarifications": null,
  "HashTags": [
    "sample string 1",
    "sample string 2"
  ],
  "Attachments": [
    {
      "Permissions": 0,
      "Id": 1,
      "Name": "sample string 2",
      "Extension": "sample string 3",
      "Uri": "http://webapihelppage4.com",
      "Size": 5,
      "Guid": "ad5173e5-842a-455d-a06a-c70f71ff1763",
      "OwnerName": "sample string 7",
      "OwnerSurname": "sample string 8",
      "AttachmentDate": "2022-08-17T03:58:24+03:00"
    },
    {
      "Permissions": 0,
      "Id": 1,
      "Name": "sample string 2",
      "Extension": "sample string 3",
      "Uri": "http://webapihelppage4.com",
      "Size": 5,
      "Guid": "ad5173e5-842a-455d-a06a-c70f71ff1763",
      "OwnerName": "sample string 7",
      "OwnerSurname": "sample string 8",
      "AttachmentDate": "2022-08-17T03:58:24+03:00"
    }
  ],
  "CustomFields": [
    {
      "CustomFieldId": 1,
      "ValueId": 1,
      "Value": "sample string 2"
    },
    {
      "CustomFieldId": 1,
      "ValueId": 1,
      "Value": "sample string 2"
    }
  ],
  "DependentRequests": [
    1,
    2
  ],
  "DependentTasks": [
    1,
    2
  ],
  "Dependencies": [
    1,
    2
  ],
  "ReadCommentCount": 17,
  "UnreadCommentCount": 18,
  "CommentCount": 19,
  "Comments": [
    {
      "Permissions": 0,
      "Id": 1,
      "Author": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "JointAuthors": [
        {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        }
      ],
      "Addressees": [
        {
          "Id": 1,
          "User": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "ReadDate": "2022-08-17T03:58:24+03:00",
          "IsReaded": true
        },
        {
          "Id": 1,
          "User": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "ReadDate": "2022-08-17T03:58:24+03:00",
          "IsReaded": true
        }
      ],
      "Text": "sample string 2",
      "CreateDate": "2022-08-17T03:58:24+03:00",
      "CommentType": 0,
      "Answers": [],
      "ReadStatus": 0
    },
    {
      "Permissions": 0,
      "Id": 1,
      "Author": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "JointAuthors": [
        {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        }
      ],
      "Addressees": [
        {
          "Id": 1,
          "User": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "ReadDate": "2022-08-17T03:58:24+03:00",
          "IsReaded": true
        },
        {
          "Id": 1,
          "User": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "ReadDate": "2022-08-17T03:58:24+03:00",
          "IsReaded": true
        }
      ],
      "Text": "sample string 2",
      "CreateDate": "2022-08-17T03:58:24+03:00",
      "CommentType": 0,
      "Answers": [],
      "ReadStatus": 0
    }
  ],
  "IsFavourite": true,
  "LastModifiedDate": "2022-08-17T03:58:24+03:00",
  "Id": 21,
  "Status": 0,
  "Department": {
    "Id": 1,
    "Name": "sample string 2",
    "IsActual": true,
    "Editable": true,
    "DateCreated": "2022-08-17T03:58:24+03:00"
  },
  "Category": {
    "Id": 1,
    "DepartmentId": 2,
    "Name": "sample string 3",
    "IsActual": true,
    "Editable": true,
    "DateCreated": "2022-08-17T03:58:24+03:00"
  },
  "RequestType": {
    "Id": 1,
    "CategoryId": 2,
    "Name": "sample string 3",
    "IsActual": true,
    "Editable": true,
    "DateCreated": "2022-08-17T03:58:24+03:00"
  },
  "JobType": {
    "Id": 1,
    "RequestTypeId": 2,
    "Name": "sample string 3",
    "IsActual": true,
    "Editable": true,
    "DateCreated": "2022-08-17T03:58:24+03:00"
  },
  "Description": "sample string 22",
  "Initiator": {
    "Id": 1,
    "Login": "sample string 2",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "RegionId": 5,
    "Appoint": "sample string 6",
    "Organization": "sample string 7"
  },
  "Contractor": {
    "Id": 1,
    "Login": "sample string 2",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "RegionId": 5,
    "Appoint": "sample string 6",
    "Organization": "sample string 7"
  },
  "Region": {
    "Id": 1,
    "Code": "sample string 2",
    "Name": "sample string 3"
  },
  "CreateDate": "2022-08-17T03:58:24+03:00",
  "ExpiredTimeLeft": 24,
  "SubRequests": [
    1,
    2
  ]
}

text/html, multipart/form-data

Sample:
{"Permissions":0,"RequiredStartDate":"2022-08-17T03:58:24+03:00","NormativeTime":1.1,"Laboriousness":2,"PlanTimeExecution":3,"PlanTimeApproval":4,"PlanTimeApprovalsPeriod":5,"PlanTimeClarification":6,"PlanTimeTotal":7,"FactTimeExecution":8,"IsExpiredFactTimeExecution":true,"FactTimeApproval":10,"IsExpiredFactTimeApproval":true,"FactTimeClarification":12,"IsExpiredFactTimeClarification":true,"FactTimeTotal":14,"ActualTime":15.1,"NormativeNote":"sample string 16","AccessRequest":{"AccessSheetId":1,"AccessResource":"sample string 2","User":{"Department":"sample string 1","Id":2,"Login":"sample string 3","FirstName":"sample string 4","LastName":"sample string 5","RegionId":6,"Appoint":"sample string 7","Organization":"sample string 8"}},"Approvers":[{"ApproverId":1,"Permissions":0,"Status":0,"IsUserAdded":true,"WaitingForApprovalSince":"2022-08-17T03:58:24+03:00","ResolutionDate":"2022-08-17T03:58:24+03:00","SubstitutedUser":{"Id":1,"UserNameWithStatus":"sample string 2","FormattedName":"sample string 3","UserNameWithMiddleName":"sample string 4","UserName":"sample string 5","UserSureName":"sample string 6","JobPosition":"sample string 7","Region":"sample string 8","IsActual":true,"RegionId":10,"Address":"sample string 11","Room":"sample string 12","InternalPhone":"sample string 13","CityPhone":"sample string 14","MobilePhone":"sample string 15","Cfo":"sample string 16","Department":"sample string 17","Organisation":"sample string 18","Email":"sample string 19","Alternate":20,"Login":"sample string 21","Password":"sample string 22","Status":"sample string 23","Image":"sample string 24"},"FactTimeApprovalInt":3,"Id":4,"Login":"sample string 5","FirstName":"sample string 6","LastName":"sample string 7","RegionId":8,"Appoint":"sample string 9","Organization":"sample string 10"},{"ApproverId":1,"Permissions":0,"Status":0,"IsUserAdded":true,"WaitingForApprovalSince":"2022-08-17T03:58:24+03:00","ResolutionDate":"2022-08-17T03:58:24+03:00","SubstitutedUser":{"Id":1,"UserNameWithStatus":"sample string 2","FormattedName":"sample string 3","UserNameWithMiddleName":"sample string 4","UserName":"sample string 5","UserSureName":"sample string 6","JobPosition":"sample string 7","Region":"sample string 8","IsActual":true,"RegionId":10,"Address":"sample string 11","Room":"sample string 12","InternalPhone":"sample string 13","CityPhone":"sample string 14","MobilePhone":"sample string 15","Cfo":"sample string 16","Department":"sample string 17","Organisation":"sample string 18","Email":"sample string 19","Alternate":20,"Login":"sample string 21","Password":"sample string 22","Status":"sample string 23","Image":"sample string 24"},"FactTimeApprovalInt":3,"Id":4,"Login":"sample string 5","FirstName":"sample string 6","LastName":"sample string 7","RegionId":8,"Appoint":"sample string 9","Organization":"sample string 10"}],"Observers":[{"IsUserAdded":true,"Permissions":0,"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},{"IsUserAdded":true,"Permissions":0,"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Clarifications":null,"HashTags":["sample string 1","sample string 2"],"Attachments":[{"Permissions":0,"Id":1,"Name":"sample string 2","Extension":"sample string 3","Uri":"http://webapihelppage4.com","Size":5,"Guid":"ad5173e5-842a-455d-a06a-c70f71ff1763","OwnerName":"sample string 7","OwnerSurname":"sample string 8","AttachmentDate":"2022-08-17T03:58:24+03:00"},{"Permissions":0,"Id":1,"Name":"sample string 2","Extension":"sample string 3","Uri":"http://webapihelppage4.com","Size":5,"Guid":"ad5173e5-842a-455d-a06a-c70f71ff1763","OwnerName":"sample string 7","OwnerSurname":"sample string 8","AttachmentDate":"2022-08-17T03:58:24+03:00"}],"CustomFields":[{"CustomFieldId":1,"ValueId":1,"Value":"sample string 2"},{"CustomFieldId":1,"ValueId":1,"Value":"sample string 2"}],"DependentRequests":[1,2],"DependentTasks":[1,2],"Dependencies":[1,2],"ReadCommentCount":17,"UnreadCommentCount":18,"CommentCount":19,"Comments":[{"Permissions":0,"Id":1,"Author":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"JointAuthors":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Addressees":[{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T03:58:24+03:00","IsReaded":true},{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T03:58:24+03:00","IsReaded":true}],"Text":"sample string 2","CreateDate":"2022-08-17T03:58:24+03:00","CommentType":0,"Answers":[],"ReadStatus":0},{"Permissions":0,"Id":1,"Author":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"JointAuthors":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Addressees":[{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T03:58:24+03:00","IsReaded":true},{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T03:58:24+03:00","IsReaded":true}],"Text":"sample string 2","CreateDate":"2022-08-17T03:58:24+03:00","CommentType":0,"Answers":[],"ReadStatus":0}],"IsFavourite":true,"LastModifiedDate":"2022-08-17T03:58:24+03:00","Id":21,"Status":0,"Department":{"Id":1,"Name":"sample string 2","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T03:58:24+03:00"},"Category":{"Id":1,"DepartmentId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T03:58:24+03:00"},"RequestType":{"Id":1,"CategoryId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T03:58:24+03:00"},"JobType":{"Id":1,"RequestTypeId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T03:58:24+03:00"},"Description":"sample string 22","Initiator":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Contractor":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Region":{"Id":1,"Code":"sample string 2","Name":"sample string 3"},"CreateDate":"2022-08-17T03:58:24+03:00","ExpiredTimeLeft":24,"SubRequests":[1,2]}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.