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": "dade9b92-4612-449c-afc5-9f80e8377fc8",
  "Country": {
    "Id": "26bece14-6af8-4198-9ea7-c30cce40a2d1",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "26bece14-6af8-4198-9ea7-c30cce40a2d1",
    "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>26bece14-6af8-4198-9ea7-c30cce40a2d1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>dade9b92-4612-449c-afc5-9f80e8377fc8</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>26bece14-6af8-4198-9ea7-c30cce40a2d1</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": "5f32c9dc-421b-4aa8-9a03-43a07e46e311",
  "Country": {
    "Id": "c1ed38e1-7951-4bcf-b21e-437741efd9b1",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "c1ed38e1-7951-4bcf-b21e-437741efd9b1",
    "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>c1ed38e1-7951-4bcf-b21e-437741efd9b1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>5f32c9dc-421b-4aa8-9a03-43a07e46e311</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>c1ed38e1-7951-4bcf-b21e-437741efd9b1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </StateProvince>
  <StateProvinceString>sample string 2</StateProvinceString>
</CourseLocation>