POST api/Templates/GetTemplatesByHierarchy

Request Information

URI Parameters

None.

Body Parameters

TemplateHierarchyDTO
NameDescriptionTypeAdditional information
DivisionId

globally unique identifier

None.

AssetId

globally unique identifier

None.

BuildingId

globally unique identifier

None.

SubBuildingId

globally unique identifier

None.

LocationTypeId

globally unique identifier

None.

LocationId

globally unique identifier

None.

CategoryId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "DivisionId": "65e0b7f4-1440-41d2-8a45-cd26d891d3db",
  "AssetId": "d104999e-e0f4-4f29-aece-64259bc0b668",
  "BuildingId": "a5cbb49e-a598-42f6-b56c-474977a8435a",
  "SubBuildingId": "26e982aa-0b4d-4a14-a292-babcef324aa8",
  "LocationTypeId": "1de20a4f-1c72-4a37-801a-4ddae524563c",
  "LocationId": "04939e23-76fa-43a3-8af2-5657b7338fb5",
  "CategoryId": "971f937e-1de2-42de-bdf3-bec9dbb395b6"
}

text/html, multipart/form-data

Sample:
{"DivisionId":"65e0b7f4-1440-41d2-8a45-cd26d891d3db","AssetId":"d104999e-e0f4-4f29-aece-64259bc0b668","BuildingId":"a5cbb49e-a598-42f6-b56c-474977a8435a","SubBuildingId":"26e982aa-0b4d-4a14-a292-babcef324aa8","LocationTypeId":"1de20a4f-1c72-4a37-801a-4ddae524563c","LocationId":"04939e23-76fa-43a3-8af2-5657b7338fb5","CategoryId":"971f937e-1de2-42de-bdf3-bec9dbb395b6"}

application/xml, text/xml

Sample:
<TemplateHierarchyDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSMChecklistFlow.DTO">
  <AssetId>d104999e-e0f4-4f29-aece-64259bc0b668</AssetId>
  <BuildingId>a5cbb49e-a598-42f6-b56c-474977a8435a</BuildingId>
  <CategoryId>971f937e-1de2-42de-bdf3-bec9dbb395b6</CategoryId>
  <DivisionId>65e0b7f4-1440-41d2-8a45-cd26d891d3db</DivisionId>
  <LocationId>04939e23-76fa-43a3-8af2-5657b7338fb5</LocationId>
  <LocationTypeId>1de20a4f-1c72-4a37-801a-4ddae524563c</LocationTypeId>
  <SubBuildingId>26e982aa-0b4d-4a14-a292-babcef324aa8</SubBuildingId>
</TemplateHierarchyDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TemplateHierarchyDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, multipart/form-data, application/xml, text/xml

Sample:

Sample not available.