POST api/Question/AddNewQuestion
Метод по внесению заявки на обслуживание
Request Information
URI Parameters
None.
Body Parameters
Структура входящих данных
QuestionAddModel| Name | Description | Type | Additional information |
|---|---|---|---|
| EmployeeId |
Id сотрудника который внес заявку |
integer |
None. |
| AgreementId |
Id ЛС абонента |
integer |
None. |
| Code |
ЛС не обязательно |
integer |
None. |
| ReasonId |
Id Причины |
integer |
None. |
| Phone |
Номер телефона |
string |
None. |
| Comment |
Комментарий |
string |
None. |
| Date |
Дата на когда |
string |
None. |
| Time |
Время на когда |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"EmployeeId": 1,
"AgreementId": 2,
"Code": 1,
"ReasonId": 3,
"Phone": "sample string 4",
"Comment": "sample string 5",
"Date": "sample string 6",
"Time": "sample string 7"
}
application/xml, text/xml
Sample:
<QuestionAddModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Models.dto"> <AgreementId>2</AgreementId> <Code>1</Code> <Comment>sample string 5</Comment> <Date>sample string 6</Date> <EmployeeId>1</EmployeeId> <Phone>sample string 4</Phone> <ReasonId>3</ReasonId> <Time>sample string 7</Time> </QuestionAddModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Возвращает Id внесенной заявки
AddNewQuestionResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Data |
Id внесенний заявки |
integer |
None. |
| Result |
Результат обработки запроса |
boolean |
None. |
| Message |
Сообщение |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": 1,
"Result": true,
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<AddNewQuestionResult 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>1</Data> </AddNewQuestionResult>