GET api/Inspection/inspectionAttributesByTemplateId?templateId={templateId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
templateId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of MobileInspectionAttribute
NameDescriptionTypeAdditional information
Required

boolean

None.

HasChoices

boolean

None.

AttributeChoices

Collection of InspectionAttributeChoice

None.

ID

integer

None.

Description

string

Required

Value

string

None.

EnDescription

string

None.

AccountID

integer

None.

IsEditable

boolean

None.

IsSelectable

boolean

None.

Code

string

None.

Color

string

None.

ShortDescription

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Required": true,
    "HasChoices": true,
    "AttributeChoices": [
      {
        "ID": 1,
        "InspectAttributeID": 2,
        "Description": "sample string 3",
        "EnDescription": "samplestring3",
        "UserName": "sample string 4",
        "LastChanged": "2025-04-03T08:43:52.2903973Z"
      },
      {
        "ID": 1,
        "InspectAttributeID": 2,
        "Description": "sample string 3",
        "EnDescription": "samplestring3",
        "UserName": "sample string 4",
        "LastChanged": "2025-04-03T08:43:52.2903973Z"
      }
    ],
    "ID": 3,
    "Description": "sample string 4",
    "Value": "sample string 5",
    "EnDescription": "samplestring4",
    "AccountID": 6,
    "IsEditable": true,
    "IsSelectable": true,
    "Code": "sample string 9",
    "Color": "sample string 10",
    "ShortDescription": "sample string 11"
  },
  {
    "Required": true,
    "HasChoices": true,
    "AttributeChoices": [
      {
        "ID": 1,
        "InspectAttributeID": 2,
        "Description": "sample string 3",
        "EnDescription": "samplestring3",
        "UserName": "sample string 4",
        "LastChanged": "2025-04-03T08:43:52.2903973Z"
      },
      {
        "ID": 1,
        "InspectAttributeID": 2,
        "Description": "sample string 3",
        "EnDescription": "samplestring3",
        "UserName": "sample string 4",
        "LastChanged": "2025-04-03T08:43:52.2903973Z"
      }
    ],
    "ID": 3,
    "Description": "sample string 4",
    "Value": "sample string 5",
    "EnDescription": "samplestring4",
    "AccountID": 6,
    "IsEditable": true,
    "IsSelectable": true,
    "Code": "sample string 9",
    "Color": "sample string 10",
    "ShortDescription": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMobileInspectionAttribute xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <MobileInspectionAttribute>
    <AccountID>6</AccountID>
    <Code>sample string 9</Code>
    <Color>sample string 10</Color>
    <Description>sample string 4</Description>
    <ID>3</ID>
    <IsEditable>true</IsEditable>
    <IsSelectable>true</IsSelectable>
    <ShortDescription>sample string 11</ShortDescription>
    <Value>sample string 5</Value>
    <AttributeChoices>
      <InspectionAttributeChoice>
        <Description>sample string 3</Description>
        <ID>1</ID>
        <InspectAttributeID>2</InspectAttributeID>
        <LastChanged>2025-04-03T08:43:52.2903973+00:00</LastChanged>
        <UserName>sample string 4</UserName>
      </InspectionAttributeChoice>
      <InspectionAttributeChoice>
        <Description>sample string 3</Description>
        <ID>1</ID>
        <InspectAttributeID>2</InspectAttributeID>
        <LastChanged>2025-04-03T08:43:52.2903973+00:00</LastChanged>
        <UserName>sample string 4</UserName>
      </InspectionAttributeChoice>
    </AttributeChoices>
    <HasChoices>true</HasChoices>
    <Required>true</Required>
  </MobileInspectionAttribute>
  <MobileInspectionAttribute>
    <AccountID>6</AccountID>
    <Code>sample string 9</Code>
    <Color>sample string 10</Color>
    <Description>sample string 4</Description>
    <ID>3</ID>
    <IsEditable>true</IsEditable>
    <IsSelectable>true</IsSelectable>
    <ShortDescription>sample string 11</ShortDescription>
    <Value>sample string 5</Value>
    <AttributeChoices>
      <InspectionAttributeChoice>
        <Description>sample string 3</Description>
        <ID>1</ID>
        <InspectAttributeID>2</InspectAttributeID>
        <LastChanged>2025-04-03T08:43:52.2903973+00:00</LastChanged>
        <UserName>sample string 4</UserName>
      </InspectionAttributeChoice>
      <InspectionAttributeChoice>
        <Description>sample string 3</Description>
        <ID>1</ID>
        <InspectAttributeID>2</InspectAttributeID>
        <LastChanged>2025-04-03T08:43:52.2903973+00:00</LastChanged>
        <UserName>sample string 4</UserName>
      </InspectionAttributeChoice>
    </AttributeChoices>
    <HasChoices>true</HasChoices>
    <Required>true</Required>
  </MobileInspectionAttribute>
</ArrayOfMobileInspectionAttribute>