latestOpenAPI 3.0.02026-08-2217901.1 MB

ef9153fcac7c

Procedure Template Rows

Update Procedure Template Row

patch/proceduretemplaterows/{id}

Path parameters

idinteger required

ID of the procedure template row

Query parameters

skipWebhookboolean

Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks

Request body

labelstring
type'NUMBER' | 'AMOUNT' | 'TEXT' | 'UNSUPPORTED' | 'HEADING' | 'FILE' | 'SIGNATURE' | 'MULTIPLE_CHOICE' | 'INSPECTION_CHECK' | 'YES_NO_NA' | 'CHECKBOX' | 'CHECKLIST' | 'METER' | 'DATE' | 'CYCLE_COUNT'
descriptionstring nullable
choicesstring[]
meterIdnumber nullable

Id of the meter

isDateAndTimeboolean

Indicate if a DATE field also contains the time

indexnumber

Order which the row is displayed

Example request

{
  "label": "Metal Parts: broken, loose, dented, rusty, missing",
  "type": "INSPECTION_CHECK",
  "choices": [
    "Partially"
  ],
  "urls": [
    {
      "label": "MaintainX Website",
      "link": "www.getmaintainx.com"
    }
  ],
  "meterId": 1,
  "index": 1
}

Response

Successfully edited the procedure template row

Example response

{
  "row": {
    "id": 1,
    "label": "Metal Parts: broken, loose, dented, rusty, missing",
    "type": "INSPECTION_CHECK",
    "choices": [
      "Partially"
    ],
    "attachmentId": 1,
    "attachments": [
      {
        "id": 12345,
        "mimeType": "image/png",
        "fileName": "image.png",
        "url": "http://example.com/image.png",
        "createdAt": "2022-01-01T00:00:00.000Z",
        "width": 220,
        "height": 100
      }
    ],
    "urls": [
      {
        "label": "MaintainX Website",
        "link": "www.getmaintainx.com"
      }
    ]
  }
}