Удаление вида работ
Описание
Удаление вида работ
Задача-основание: https://1c-connect.atlassian.net/browse/AS-2058
Наименование | ServiceRequestTypeDelete |
Назначение | Удаление вида работ |
Дневной лимит (опер/час) | 50 |
Ночной лимит (опер/час) | 50 |
Максимум объектов в пакете | 100 |
Запрос
Параметр, выделенный жирным, является обязательным к заполнению!
Параметр | Тип | Описание | |
|---|---|---|---|
ServiceRequestTypeID | Удаляемый вид работ |
Пример запроса
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:par="http://buhphone.com/PartnerWebAPI2"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:core="http://v8.1c.ru/8.1/data/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header/>
<soap:Body>
<par:ServiceRequestTypeDelete>
<par:Params>
<Property
xmlns="http://v8.1c.ru/8.1/data/core" name="ServiceRequestTypeID">
<Value xsi:type="xs:string">577532c2-92e1-11eb-8093-2e7b6a57c4b7</Value>
</Property>
</par:Params>
</par:ServiceRequestTypeDelete>
</soap:Body>
</soap:Envelope>Ответ (структура ResultData)
Параметр | Тип | Описание |
|---|---|---|
ResultCode | Строка | Код результата работы. Если не “SUCCESS“, то в ResultData выдается строка с причиной. |
ResultData | Структура/Строка | Описание ошибки |
Пример ответа
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<m:ServiceRequestTypeDeleteResponse
xmlns:m="http://buhphone.com/PartnerWebAPI2">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Property
xmlns="http://v8.1c.ru/8.1/data/core"
name="ResultCode">
<Value xsi:type="xs:string">SUCCESS</Value>
</Property>
<Property
xmlns="http://v8.1c.ru/8.1/data/core"
name="ResultData">
<Value xsi:nil="true"/>
</Property>
</m:return>
</m:ServiceRequestTypeDeleteResponse>
</soap:Body>
</soap:Envelope>