Update Classifications Attributes (Patch)

/classifications/{id}

Update Classification Attributes [PATCH]

Update an existing classifications attributes.

Authorization: Admin

Request

Body
  {
    "attributes": [
      {
        "id": 2908,
        "name": "Material",
        "required": true,
        "allCaps": false,
        "questionTypeId": 1
      },
      {
        "id": 2932,
        "name": "Length / Size",
        "required": false,
        "allCaps": true,
        "questionTypeId": 5
      },
      {
        "id": 2933,
        "name": "Color",
        "required": true,
        "allCaps": false,
        "questionTypeId": 3
      }
      {
        "name": "Date of Manufacturing",
        "required": true,
        "allCaps": false,
        "questionTypeId": 6
      },
      {
        "name": "Time",
        "required": false,
        "allCaps": false,
        "questionTypeId": 7
      },
      {
        "name": "Manufacturer",
        "required": false,
        "allCaps": false,
        "questionTypeId": 11
      }
    ]
  }

Response 200

Body
{
  "item": {
    "id": 152,
    "name": "Ladders",
    "rowStatus": 1,
    "ordinal": 3,
    "imageUrlSmall": "https://archive.inspectall.../Small",
    "allowsAssets": true,
    "id1Name": "Serial Number",
    "id1Required": false,
    "id2Name": "Barcode / QR Code",
    "id2Active": true,
    "statusActive": true,
    "urgentNoteActive": true,
    "categoryId": 18972,
    "categoryName": "Equipment",
    "attributes": [
      {
        "id": 2908,
        "name": "Material",
        "ordinal": 5,
        "required": false,
        "allCaps": false,
        "questionType": {
          "id": 1,
          "name": "singleSelect"
        },
        "payload": {//see payloads in Get Classification//}
      }
    ]
  }
}

Still need help? Contact Us Contact Us