POST api/Question/SetAnswer
Внесение отчета по заявке
Request Information
URI Parameters
None.
Body Parameters
Параметры
SetAnswerPost| Name | Description | Type | Additional information |
|---|---|---|---|
| QuestionID |
Id заявки |
integer |
None. |
| ReasonID |
Id статуса |
integer |
None. |
| UserID |
Id Сотрудника |
integer |
None. |
| Comment |
Комментарий |
string |
None. |
| PaymentSum |
Сумма денег |
integer |
None. |
| CableLength |
Длинна кабеля |
integer |
None. |
| Exit |
Выход на местность |
boolean |
None. |
| Hours |
Человеко\часы |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"QuestionID": 1,
"ReasonID": 2,
"UserID": 3,
"Comment": "sample string 4",
"PaymentSum": 5,
"CableLength": 6,
"Exit": true,
"Hours": 8
}
application/xml, text/xml
Sample:
<SetAnswerPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceApi.Models"> <CableLength>6</CableLength> <Comment>sample string 4</Comment> <Exit>true</Exit> <Hours>8</Hours> <PaymentSum>5</PaymentSum> <QuestionID>1</QuestionID> <ReasonID>2</ReasonID> <UserID>3</UserID> </SetAnswerPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SetAnswerResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Data |
Результат внесения отчета |
boolean |
None. |
| Result |
Результат обработки запроса |
boolean |
None. |
| Message |
Сообщение |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": true,
"Result": true,
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<SetAnswerResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceApi.Models"> <Message>sample string 3</Message> <Result>true</Result> <Data>true</Data> </SetAnswerResult>