POST api/Question/QuestionsAddConnection

Внесение заявки на подключение

Request Information

URI Parameters

None.

Body Parameters

Параметры

QuestionAddPost
NameDescriptionTypeAdditional information
EmployeeID

Ид сотрудника

integer

None.

HouseID

ИД дома

integer

None.

Date

Дата на когда

string

None.

Entrance

Подьезд

integer

None.

Floor

Этаж

integer

None.

Apartment

Квартира

string

None.

Description

Описание

string

None.

PersonName

Имя абонента

string

None.

Phone

Телефон абонента

string

None.

Hours

Часы на когда

string

None.

Performer

ИД исполнителя

integer

None.

Reason

Причина

integer

None.

Provider

Провайдер

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeID": 1,
  "HouseID": 2,
  "Date": "sample string 3",
  "Entrance": 4,
  "Floor": 5,
  "Apartment": "sample string 6",
  "Description": "sample string 7",
  "PersonName": "sample string 8",
  "Phone": "sample string 9",
  "Hours": "sample string 10",
  "Performer": 11,
  "Reason": 12,
  "Provider": 13
}

application/xml, text/xml

Sample:
<QuestionAddPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceApi.Models">
  <Apartment>sample string 6</Apartment>
  <Date>sample string 3</Date>
  <Description>sample string 7</Description>
  <EmployeeID>1</EmployeeID>
  <Entrance>4</Entrance>
  <Floor>5</Floor>
  <Hours>sample string 10</Hours>
  <HouseID>2</HouseID>
  <Performer>11</Performer>
  <PersonName>sample string 8</PersonName>
  <Phone>sample string 9</Phone>
  <Provider>13</Provider>
  <Reason>12</Reason>
</QuestionAddPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

QuestionAddNewConResult
NameDescriptionTypeAdditional information
Data

ИД заявки

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:
<QuestionAddNewConResult 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>
</QuestionAddNewConResult>