API reference
All operations
INSPECTION

Uploads an image for an inspection item.

Send the form fields `AssignedInspectionId`, `AssignedItemId`, `MobileImageId` and `ImageFile`. Only JPEG (`.jpg`, `.jpeg`) and PNG (`.png`) files are accepted, and the file's content type must match its extension. The request can be up to 200 MB. Uploading again with the same inspection, item and mobile image ID replaces that image, and an image registered earlier with those IDs stops being pending.

POST/api/v2/inspections/record/images/upload

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Request body

multipart/form-datarequired

The inspection ID, assigned item ID, your mobile image ID, and the image file.

object
  • AssignedInspectionIdinteger · int32
  • AssignedItemIdinteger · int32
  • ImageFilefile
  • MobileImageIdstring

Responses

Image uploaded successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

dataInspectionImageUploadResult
  • assignedInspectionIdinteger · int32
  • assignedItemIdinteger · int32
  • imageIdinteger · int32
  • mobileImageIdstring
  • fullUrlstring
  • cloudinaryUrlstringnullable
  • previewUrlstringnullable