POST {clientId}/Config/NestedProgramGroups

Add Nested Program Groups.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

Your required clientId used to access the WebAPI. A 404 is returned if this value is invalid.

string

Required

Body Parameters

Collection of NestedProgramGroups to submit

Collection of ConfigProgramGroupHierarchy
NameDescriptionTypeAdditional information
ParentProgramGroupID

string

Required

Min length: 1

NestedProgramGroupID

string

Required

Min length: 1

RelationshipTypeNbr

integer

Required

Range: inclusive between 1 and 2

Request Formats

application/json, text/json

Sample:
[
  {
    "ParentProgramGroupID": "sample string 1",
    "NestedProgramGroupID": "sample string 2",
    "RelationshipTypeNbr": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfConfigProgramGroupHierarchy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyPreferences.REST.ConfigModels">
  <ConfigProgramGroupHierarchy>
    <NestedProgramGroupID>sample string 2</NestedProgramGroupID>
    <ParentProgramGroupID>sample string 1</ParentProgramGroupID>
    <RelationshipTypeNbr>3</RelationshipTypeNbr>
  </ConfigProgramGroupHierarchy>
</ArrayOfConfigProgramGroupHierarchy>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response Codes

  • NotFound (404)
  • Unauthorized (401)
  • InternalServerError (500)
  • BadRequest (400)

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.