POST api/Services/Add
Request Information
URI Parameters
None.
Body Parameters
ServiceName | Description | Type | Additional information |
---|---|---|---|
ServiceID | integer |
None. |
|
ServiceCode | string |
None. |
|
ServiceDescription | string |
None. |
|
IsConnectedWithBed | boolean |
None. |
|
LocationID | integer |
None. |
|
CompanyID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ServiceID": 1, "ServiceCode": "sample string 2", "ServiceDescription": "sample string 3", "IsConnectedWithBed": true, "LocationID": 5, "CompanyID": 6 }
application/xml, text/xml
Sample:
<Service xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KSolApi.Models"> <CompanyID>6</CompanyID> <IsConnectedWithBed>true</IsConnectedWithBed> <LocationID>5</LocationID> <ServiceCode>sample string 2</ServiceCode> <ServiceDescription>sample string 3</ServiceDescription> <ServiceID>1</ServiceID> </Service>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseName | Description | Type | Additional information |
---|---|---|---|
Status | integer |
None. |
|
ResponseMsg | string |
None. |
|
Data | Object |
None. |
|
Token | string |
None. |
|
IsSuccess | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 1, "ResponseMsg": "sample string 2", "Data": {}, "Token": "sample string 4", "IsSuccess": true }
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KSolApi.GlobalLogics"> <Data /> <IsSuccess>true</IsSuccess> <ResponseMsg>sample string 2</ResponseMsg> <Status>1</Status> <Token>sample string 4</Token> </Response>