POST TCPV1/WSHPRA/Hospital/InsertUpdateHospitalDetails?Token={Token}&UserID={UserID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Token | string |
Required |
|
| UserID | integer |
Required |
Body Parameters
HospitalDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| HospitalID | integer |
None. |
|
| HospitalCode | string |
None. |
|
| HospitalName | string |
None. |
|
| GLN | string |
None. |
|
| Description | string |
None. |
|
| CreatedBy | integer |
None. |
|
| RouteID | integer |
None. |
|
| IsActive | boolean |
None. |
|
| ProfileTypeID | integer |
None. |
|
| IsPOAccount | byte |
None. |
|
| IsGiftingClient | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"HospitalID": 1,
"HospitalCode": "sample string 2",
"HospitalName": "sample string 3",
"GLN": "sample string 4",
"Description": "sample string 5",
"CreatedBy": 6,
"RouteID": 1,
"IsActive": true,
"ProfileTypeID": 8,
"IsPOAccount": 64,
"IsGiftingClient": true
}
application/xml, text/xml
Sample:
<HospitalDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.SmartAPI"> <CreatedBy>6</CreatedBy> <Description>sample string 5</Description> <GLN>sample string 4</GLN> <HospitalCode>sample string 2</HospitalCode> <HospitalID>1</HospitalID> <HospitalName>sample string 3</HospitalName> <IsActive>true</IsActive> <IsGiftingClient>true</IsGiftingClient> <IsPOAccount>64</IsPOAccount> <ProfileTypeID>8</ProfileTypeID> <RouteID>1</RouteID> </HospitalDetails>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |