MaintainX Procedure Template Rows API
Operations on Procedure Template Rows
Operations on Procedure Template Rows
openapi: 3.0.0
info:
description: Welcome to the MaintainX API documentation!<br/><br/>You can use the MaintainX API to programmatically interact with all the entities in MaintainX. Use it to retrieve and manage data of Work Orders, Work Requests, Assets, and more!<br/><br/>To get started, in your MaintainX account go to <a href="https://app.getmaintainx.com/settings/integrations/apiKeys">"Settings > Integrations"</a> and click "+ New Key" button to generate a new Rest API key.<br/><br/><b>Missing something?</b><br/>Don't hesitate to reach out <a href="mailto:support@getmaintainx.com">support@getmaintainx.com</a><br/><br/>
version: '1'
title: MaintainX Asset Criticalities Procedure Template Rows API
contact:
url: https://www.getmaintainx.com/
name: Support
email: support@getmaintainx.com
x-logo:
url: https://maintainx-static.s3-us-west-2.amazonaws.com/img/default-org-logo.png
backgroundColor: '#FFFFFF'
altText: MaintainX logo
servers:
- url: https://api.getmaintainx.com/v1
description: Endpoint
security:
- Bearer: []
tags:
- name: Procedure Template Rows
description: Operations on Procedure Template Rows
x-traitTag: false
paths:
/proceduretemplaterows/{id}:
patch:
summary: Update Procedure Template Row
parameters:
- schema:
type: integer
name: id
in: path
required: true
description: ID of the procedure template row
example: 1
- schema:
type: boolean
description: Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)
name: skipWebhook
in: query
required: false
requestBody:
description: Procedure Template Row to update
required: true
content:
application/json:
schema:
type: object
properties:
label:
type: string
example: 'Metal Parts: broken, loose, dented, rusty, missing'
type:
type: string
example: INSPECTION_CHECK
enum:
- NUMBER
- AMOUNT
- TEXT
- UNSUPPORTED
- HEADING
- FILE
- SIGNATURE
- MULTIPLE_CHOICE
- INSPECTION_CHECK
- YES_NO_NA
- CHECKBOX
- CHECKLIST
- METER
- DATE
- CYCLE_COUNT
description:
type: string
nullable: true
choices:
type: array
items:
example: Partially
type: string
urls:
type: array
items:
type: object
required:
- link
properties:
label:
type: string
description: Label of the url
example: MaintainX Website
link:
type: string
description: Link
example: www.getmaintainx.com
meterId:
type: number
example: 1
nullable: true
description: Id of the meter
isDateAndTime:
type: boolean
default: false
description: Indicate if a DATE field also contains the time
example: false
index:
type: number
example: 1
description: Order which the row is displayed
responses:
'200':
description: Successfully edited the procedure template row
content:
application/json:
schema:
type: object
required:
- row
properties:
row:
type: object
required:
- id
- label
- type
properties:
id:
type: number
example: 1
label:
type: string
example: 'Metal Parts: broken, loose, dented, rusty, missing'
type:
type: string
example: INSPECTION_CHECK
enum:
- NUMBER
- AMOUNT
- TEXT
- UNSUPPORTED
- HEADING
- FILE
- SIGNATURE
- MULTIPLE_CHOICE
- INSPECTION_CHECK
- YES_NO_NA
- CHECKBOX
- CHECKLIST
- METER
- DATE
- CYCLE_COUNT
description:
type: string
nullable: true
choices:
type: array
nullable: true
items:
example: Partially
type: string
meterId:
type: number
nullable: true
items:
example: 1
type: number
isDateAndTime:
type: boolean
nullable: true
description: Indicate if a DATE field also contains the time
example: false
attachmentId:
type: number
nullable: true
example: 1
attachments:
type: array
title: attachment
description: List of attachments linked to the procedure row
items:
type: object
title: attachment
required:
- id
- mimeType
- fileName
- url
- createdAt
properties:
id:
type: number
description: Global ID of the attachment
example: 12345
mimeType:
type: string
description: MIME type of the file
example: image/png
fileName:
type: string
description: Attachment's file name
example: image.png
url:
type: string
description: Url of the file. Valid for 60 minutes.
example: http://example.com/image.png
createdAt:
type: string
format: date-time
description: Date & time at which the attachment was uploaded
example: '2022-01-01T00:00:00.000Z'
width:
type: number
description: Width if the file is an image
nullable: true
example: 220
height:
type: number
description: Height if the file is an image
nullable: true
example: 100
urls:
type: array
items:
type: object
required:
- link
properties:
label:
type: string
description: Label of the url
example: MaintainX Website
link:
type: string
description: Link
example: www.getmaintainx.com
'400':
description: Bad request
content:
application/json:
schema:
type: object
required:
- errors
example:
errors:
- error: Bad request
properties:
errors:
type: array
items:
type: object
required:
- error
properties:
error:
type: string
fieldPath:
nullable: true
type: string
fieldValue:
nullable: true
oneOf:
- type: string
- type: number
- type: boolean
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
description: Could not find the specified procedure template row.
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example: procedure template row Not Found
tags:
- Procedure Template Rows
delete:
summary: Delete procedure Template Row
parameters:
- schema:
type: integer
name: id
in: path
required: true
description: ID of the procedure Template Row
example: '1'
- schema:
type: boolean
description: Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)
name: skipWebhook
in: query
required: false
responses:
'204':
description: Successfully deleted the procedureTemplateRow
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
description: Could not find the specified procedureTemplateRow.
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example: procedureTemplateRow Not Found
'500':
description: Internal server error.
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example: Internal server error.
tags:
- Procedure Template Rows
/proceduretemplaterows/{id}/attachments:
delete:
summary: Remove procedure template row attachment
parameters:
- schema:
type: integer
name: id
in: path
required: true
description: ID of the procedure template row.
example: '1'
- schema:
type: boolean
description: Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)
name: skipWebhook
in: query
required: false
responses:
'204':
description: Successfully removed procedure template row's attachment.
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
description: Could not find the specified procedure template row.
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example: procedure template row Not Found
tags:
- Procedure Template Rows
/proceduretemplaterows/{id}/attachments/{filename}:
put:
summary: Update procedure template row attachment
parameters:
- schema:
type: integer
name: id
in: path
required: true
description: ID of the procedure template row.
example: '1'
- schema:
type: string
name: filename
in: path
required: true
description: Name of the attachment, including the extension.
example: datasheet.pdf
- schema:
type: boolean
description: Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)
name: skipWebhook
in: query
required: false
- schema:
type: integer
description: Required if using a multi organizations token
name: x-organization-id
in: header
required: false
example: '1'
requestBody:
description: Content type should be `application/octet-stream` and payload should use binary format for the attachment.
required: true
content:
application/octet-stream:
schema:
type: object
format: binary
image/jpeg:
schema:
type: object
format: binary
image/png:
schema:
type: object
format: binary
image/gif:
schema:
type: object
format: binary
image/webp:
schema:
type: object
format: binary
image/flif:
schema:
type: object
format: binary
image/x-xcf:
schema:
type: object
format: binary
image/x-canon-cr2:
schema:
type: object
format: binary
image/x-canon-cr3:
schema:
type: object
format: binary
image/tiff:
schema:
type: object
format: binary
image/bmp:
schema:
type: object
format: binary
image/vnd.ms-photo:
schema:
type: object
format: binary
image/vnd.adobe.photoshop:
schema:
type: object
format: binary
application/x-indesign:
schema:
type: object
format: binary
application/epub+zip:
schema:
type: object
format: binary
application/x-xpinstall:
schema:
type: object
format: binary
application/vnd.ms-powerpoint.slideshow.macroenabled.12:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.text:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.spreadsheet:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.presentation:
schema:
type: object
format: binary
application/vnd.openxmlformats-officedocument.wordprocessingml.document:
schema:
type: object
format: binary
application/vnd.openxmlformats-officedocument.presentationml.presentation:
schema:
type: object
format: binary
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
schema:
type: object
format: binary
application/vnd.openxmlformats-officedocument.presentationml.slideshow:
schema:
type: object
format: binary
application/zip:
schema:
type: object
format: binary
application/x-tar:
schema:
type: object
format: binary
application/x-rar-compressed:
schema:
type: object
format: binary
application/gzip:
schema:
type: object
format: binary
application/x-bzip2:
schema:
type: object
format: binary
application/x-7z-compressed:
schema:
type: object
format: binary
application/x-apple-diskimage:
schema:
type: object
format: binary
application/vnd.apache.arrow.file:
schema:
type: object
format: binary
video/mp4:
schema:
type: object
format: binary
audio/midi:
schema:
type: object
format: binary
video/matroska:
schema:
type: object
format: binary
video/webm:
schema:
type: object
format: binary
video/quicktime:
schema:
type: object
format: binary
video/vnd.avi:
schema:
type: object
format: binary
audio/wav:
schema:
type: object
format: binary
audio/qcelp:
schema:
type: object
format: binary
audio/x-ms-asf:
schema:
type: object
format: binary
video/x-ms-asf:
schema:
type: object
format: binary
application/vnd.ms-asf:
schema:
type: object
format: binary
video/mpeg:
schema:
type: object
format: binary
video/3gpp:
schema:
type: object
format: binary
audio/mpeg:
schema:
type: object
format: binary
audio/mp4:
schema:
type: object
format: binary
video/ogg:
schema:
type: object
format: binary
audio/ogg:
schema:
type: object
format: binary
audio/ogg; codecs=opus:
schema:
type: object
format: binary
application/ogg:
schema:
type: object
format: binary
audio/flac:
schema:
type: object
format: binary
audio/ape:
schema:
type: object
format: binary
audio/wavpack:
schema:
type: object
format: binary
audio/amr:
schema:
type: object
format: binary
application/pdf:
schema:
type: object
format: binary
application/x-elf:
schema:
type: object
format: binary
application/x-mach-binary:
schema:
type: object
format: binary
application/x-msdownload:
schema:
type: object
format: binary
application/x-shockwave-flash:
schema:
type: object
format: binary
application/rtf:
schema:
type: object
format: binary
application/wasm:
schema:
type: object
format: binary
font/woff:
schema:
type: object
format: binary
font/woff2:
schema:
type: object
format: binary
application/vnd.ms-fontobject:
schema:
type: object
format: binary
font/ttf:
schema:
type: object
format: binary
font/otf:
schema:
type: object
format: binary
font/collection:
schema:
type: object
format: binary
image/x-icon:
schema:
type: object
format: binary
video/x-flv:
schema:
type: object
format: binary
application/postscript:
schema:
type: object
format: binary
application/eps:
schema:
type: object
format: binary
application/x-xz:
schema:
type: object
format: binary
application/x-sqlite3:
schema:
type: object
format: binary
application/x-nintendo-nes-rom:
schema:
type: object
format: binary
application/x-google-chrome-extension:
schema:
type: object
format: binary
application/vnd.ms-cab-compressed:
schema:
type: object
format: binary
application/x-deb:
schema:
type: object
format: binary
application/x-unix-archive:
schema:
type: object
format: binary
application/x-rpm:
schema:
type: object
format: binary
application/x-compress:
schema:
type: object
format: binary
application/lzip:
schema:
type: object
format: binary
application/x-cfb:
schema:
type: object
format: binary
application/x-mie:
schema:
type: object
format: binary
application/mxf:
schema:
type: object
format: binary
video/mp2t:
schema:
type: object
format: binary
application/x-blender:
schema:
type: object
format: binary
image/bpg:
schema:
type: object
format: binary
image/j2c:
schema:
type: object
format: binary
image/jp2:
schema:
type: object
format: binary
image/jpx:
schema:
type: object
format: binary
image/jpm:
schema:
type: object
format: binary
image/mj2:
schema:
type: object
format: binary
audio/aiff:
schema:
type: object
format: binary
application/xml:
schema:
type: object
format: binary
application/x-mobipocket-ebook:
schema:
type: object
format: binary
image/heif:
schema:
type: object
format: binary
image/heif-sequence:
schema:
type: object
format: binary
image/heic:
schema:
type: object
format: binary
image/heic-sequence:
schema:
type: object
format: binary
image/icns:
schema:
type: object
format: binary
image/ktx:
schema:
type: object
format: binary
application/dicom:
schema:
type: object
format: binary
audio/x-musepack:
schema:
type: object
format: binary
text/calendar:
schema:
type: object
format: binary
text/vcard:
schema:
type: object
format: binary
text/vtt:
schema:
type: object
format: binary
model/gltf-binary:
schema:
type: object
format: binary
application/vnd.tcpdump.pcap:
schema:
type: object
format: binary
audio/x-dsf:
schema:
type: object
format: binary
application/x-ms-shortcut:
schema:
type: object
format: binary
application/x-ft-apple.alias:
schema:
type: object
format: binary
audio/x-voc:
schema:
type: object
format: binary
audio/vnd.dolby.dd-raw:
schema:
type: object
format: binary
audio/x-m4a:
schema:
type: object
format: binary
image/apng:
schema:
type: object
format: binary
image/x-olympus-orf:
schema:
type: object
format: binary
image/x-sony-arw:
schema:
type: object
format: binary
image/x-adobe-dng:
schema:
type: object
format: binary
image/x-nikon-nef:
schema:
type: object
format: binary
image/x-panasonic-rw2:
schema:
type: object
format: binary
image/x-fujifilm-raf:
schema:
type: object
format: binary
video/x-m4v:
schema:
type: object
format: binary
video/3gpp2:
schema:
type: object
format: binary
application/x-esri-shape:
schema:
type: object
format: binary
audio/aac:
schema:
type: object
format: binary
audio/x-it:
schema:
type: object
format: binary
audio/x-s3m:
schema:
type: object
format: binary
audio/x-xm:
schema:
type: object
format: binary
video/mp1s:
schema:
type: object
format: binary
video/mp2p:
schema:
type: object
format: binary
application/vnd.sketchup.skp:
schema:
type: object
format: binary
image/avif:
schema:
type: object
format: binary
application/x-lzh-compressed:
schema:
type: object
format: binary
application/pgp-encrypted:
schema:
type: object
format: binary
application/x-asar:
schema:
type: object
format: binary
model/stl:
schema:
type: object
format: binary
application/vnd.ms-htmlhelp:
schema:
type: object
format: binary
model/3mf:
schema:
type: object
format: binary
image/jxl:
schema:
type: object
format: binary
application/zstd:
schema:
type: object
format: binary
image/jls:
schema:
type: object
format: binary
application/vnd.ms-outlook:
schema:
type: object
format: binary
image/vnd.dwg:
schema:
type: object
format: binary
application/vnd.apache.parquet:
schema:
type: object
format: binary
application/java-vm:
schema:
type: object
format: binary
application/x-arj:
schema:
type: object
format: binary
application/x-cpio:
schema:
type: object
format: binary
application/x-ace-compressed:
schema:
type: object
format: binary
application/avro:
schema:
type: object
format: binary
application/vnd.iccprofile:
schema:
type: object
format: binary
application/x-ft-fbx:
schema:
type: object
format: binary
application/vnd.visio:
schema:
type: object
format: binary
application/vnd.android.package-archive:
schema:
type: object
format: binary
application/x-ft-draco:
schema:
type: object
format: binary
application/x-lz4:
schema:
type: object
format: binary
application/vnd.openxmlformats-officedocument.presentationml.template:
schema:
type: object
format: binary
application/vnd.openxmlformats-officedocument.spreadsheetml.template:
schema:
type: object
format: binary
application/vnd.openxmlformats-officedocument.wordprocessingml.template:
schema:
type: object
format: binary
application/vnd.ms-excel.template.macroenabled.12:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.text-template:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.spreadsheet-template:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.presentation-template:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.graphics:
schema:
type: object
format: binary
application/vnd.oasis.opendocument.graphics-template:
schema:
type: object
format: binary
application/vnd.ms-excel.sheet.macroenabled.12:
schema:
type: object
format: binary
application/vnd.ms-word.document.macroenabled.12:
schema:
type: object
format: binary
application/vnd.ms-word.template.macroenabled.12:
# --- truncated at 32 KB (217 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/maintainx/refs/heads/main/openapi/maintainx-procedure-template-rows-api-openapi.yml