POST api/Works/SetPerformer
Метод для назначения исполнителя
Request Information
URI Parameters
None.
Body Parameters
SetPerfName | Description | Type | Additional information |
---|---|---|---|
EmpId |
Id сотрудника |
integer |
None. |
PerfId |
Id исполнителя |
integer |
None. |
WorkId |
Id работы |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "EmpId": 1, "PerfId": 2, "WorkId": 3 }
application/xml, text/xml
Sample:
<SetPerf xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Models.dto"> <EmpId>1</EmpId> <PerfId>2</PerfId> <WorkId>3</WorkId> </SetPerf>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SetPerformerResultName | 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:
<SetPerformerResult 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> </SetPerformerResult>