API reference
All operations
INSPECTION

Updates an inspection's details and the comments and responses of its groups and items.

The inspection's name, number, contact, company, date, hours, comments, `Complete` flag and status are replaced with the values sent; when `UserId` is 0 the calling user becomes the inspector. For each group sent, its comments are replaced; for each item sent, its data type, response and comments are replaced. Groups and items not sent are left unchanged. An image or video listed on an item with a new mobile ID is registered as pending until it is uploaded. To finish the inspection, call `PUT /api/v2/inspections/record/{assignedInspectionId}/complete`.

PUT/api/v2/inspections/record/{assignedInspectionId}

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

assignedInspectionIdpathinteger · int32required

ID of the inspection to update. Must be greater than zero.

Request body

application/jsonrequired

The inspection's new values. Groups and items are identified by their assigned group and item IDs.

UpdateInspectionRequest
  • The inspection's groups.

  • companyIdinteger · int32

    Company ID associated with this inspection.

  • contactIdinteger · int32

    Contact ID related to this inspection.

  • userIdinteger · int32

    User id related to this inspection.

  • inspectionNamestring

    The name of the inspection.

  • inspectionNostring

    The inspection number.

  • inspectionDatestring · date

    The date when inspection is created.

  • inspectionHoursnumber · double

    Inspection hours

  • commentsstring

    Inspection comments

  • completeboolean

    Complete status of the inspection

  • statusstring

    Status of the inspection at the time of the update request

Responses

Inspection updated successfully.

Standard response envelopeisSuccessmessageerrorsdata

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

dataRecordAssignedInspectionDto
  • assignedInspectionIdinteger · int32
  • inspectionIdinteger · int32
  • recordIdinteger · int32
  • serviceIdinteger · int32
  • recordTypestring
  • makestring
  • modelstring
  • serialNostring
  • stockNostring
  • vehicleNostring
  • isMachinebooleannullable
  • companyIdinteger · int32
  • companyNamestring
  • contactIdinteger · int32
  • contactstring
  • userIdinteger · int32
  • repstring
  • inspectionStagestring
  • statusstring
  • inspectionNamestring
  • inspectionTypestring
  • inspectionNostring
  • inspectionDatestring · date
  • inspectionHoursnumber · double
  • commentsstring
  • completeboolean
  • sourcestring
  • deletedboolean
  • includeReconditionAmountboolean
  • identifierstring · uuidnullable
  • enterByinteger · int32
  • mobileAssignedInspectionIdstringnullable
  • publicViewUrlstringnullable
  • brokerViewUrlstringnullable
  • isTradeValuationboolean
  • tradeValuenumber · doublenullable
  • customerOffernumber · doublenullable
  • tradeCommentsstringnullable
  • tradeStatusstringnullable