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": "ff3b0ef8-6465-4d28-809a-ab7d837b620c",
  "Country": {
    "Id": "6a1ee1e7-c3f6-46a3-9e11-1bd11433f606",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "6a1ee1e7-c3f6-46a3-9e11-1bd11433f606",
    "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>6a1ee1e7-c3f6-46a3-9e11-1bd11433f606</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>ff3b0ef8-6465-4d28-809a-ab7d837b620c</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>6a1ee1e7-c3f6-46a3-9e11-1bd11433f606</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": "2ac87ad4-5b66-458e-b5fe-dd65c2143b13",
  "Country": {
    "Id": "db876123-2298-432e-8fb2-1a765264fb3a",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "db876123-2298-432e-8fb2-1a765264fb3a",
    "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>db876123-2298-432e-8fb2-1a765264fb3a</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>2ac87ad4-5b66-458e-b5fe-dd65c2143b13</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>db876123-2298-432e-8fb2-1a765264fb3a</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </StateProvince>
  <StateProvinceString>sample string 2</StateProvinceString>
</CourseLocation>