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

Create Course Location for a program

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": "e811b9ac-f64a-480a-a319-5be0a1f1dc0d",
  "Country": {
    "Id": "565c9dc8-d9c0-4b7e-831e-16e538bfdeff",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "565c9dc8-d9c0-4b7e-831e-16e538bfdeff",
    "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>565c9dc8-d9c0-4b7e-831e-16e538bfdeff</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>e811b9ac-f64a-480a-a319-5be0a1f1dc0d</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>565c9dc8-d9c0-4b7e-831e-16e538bfdeff</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": "dae16314-9729-47cd-a455-779443635bf1",
  "Country": {
    "Id": "8fa4604e-bdde-43e5-9edc-96942b23c2a4",
    "Name": "sample string 2"
  },
  "StateProvince": {
    "Id": "8fa4604e-bdde-43e5-9edc-96942b23c2a4",
    "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>8fa4604e-bdde-43e5-9edc-96942b23c2a4</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Country>
  <Id>dae16314-9729-47cd-a455-779443635bf1</Id>
  <StateProvince xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Id>8fa4604e-bdde-43e5-9edc-96942b23c2a4</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </StateProvince>
  <StateProvinceString>sample string 2</StateProvinceString>
</CourseLocation>