POST api/Referrals
Creates a new referral or updates an existent referral's information.
Request Information
URI Parameters
None.
Body Parameters
ReferralModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of the referral. |
string |
None. |
| IsDefault |
Indicates whether the referral is default or not. |
boolean |
None. |
| SortOrder |
Sort order of the referral. |
integer |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"isDefault": true,
"sortOrder": 3,
"id": "c37728bd-3a4d-409f-9909-7b9356642faf",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<ReferralModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.Referrals"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">c37728bd-3a4d-409f-9909-7b9356642faf</Id> <IsDefault>true</IsDefault> <Name>sample string 1</Name> <SortOrder>3</SortOrder> </ReferralModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ReferralModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of the referral. |
string |
None. |
| IsDefault |
Indicates whether the referral is default or not. |
boolean |
None. |
| SortOrder |
Sort order of the referral. |
integer |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"isDefault": true,
"sortOrder": 3,
"id": "bbec994f-eb88-492e-b389-ab317014741f",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<ReferralModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.Referrals"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">bbec994f-eb88-492e-b389-ab317014741f</Id> <IsDefault>true</IsDefault> <Name>sample string 1</Name> <SortOrder>3</SortOrder> </ReferralModel>