POST api/provider/program/courselocation?programId={programId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programId

globally unique identifier

Required

Body Parameters

CourseLocation
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Country

IdNamePair

None.

StateProvince

IdNamePair

None.

StateProvinceString

string

None.

City

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "afcd2503-af23-4819-876b-e92ac7d8ebf2",
  "Country": {
    "Id": "2ca75139-23dd-41f3-ac29-ca9dda655741",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "2ca75139-23dd-41f3-ac29-ca9dda655741",
    "Name": "sample string 2"
  },
  "StateProvinceString": "sample string 2",
  "City": "sample string 3"
}

application/xml, text/xml

Sample:
<CourseLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models">
  <City>sample string 3</City>
  <Country xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>2ca75139-23dd-41f3-ac29-ca9dda655741</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>afcd2503-af23-4819-876b-e92ac7d8ebf2</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>2ca75139-23dd-41f3-ac29-ca9dda655741</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </StateProvince>
  <StateProvinceString>sample string 2</StateProvinceString>
</CourseLocation>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CourseLocation
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Country

IdNamePair

None.

StateProvince

IdNamePair

None.

StateProvinceString

string

None.

City

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "676d5bdd-2bf3-41f2-bf8f-31a77488885f",
  "Country": {
    "Id": "fc9b84e7-ca62-4b52-992e-8fcd9a96e4ca",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "fc9b84e7-ca62-4b52-992e-8fcd9a96e4ca",
    "Name": "sample string 2"
  },
  "StateProvinceString": "sample string 2",
  "City": "sample string 3"
}

application/xml, text/xml

Sample:
<CourseLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models">
  <City>sample string 3</City>
  <Country xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>fc9b84e7-ca62-4b52-992e-8fcd9a96e4ca</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>676d5bdd-2bf3-41f2-bf8f-31a77488885f</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>fc9b84e7-ca62-4b52-992e-8fcd9a96e4ca</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </StateProvince>
  <StateProvinceString>sample string 2</StateProvinceString>
</CourseLocation>