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`.
/api/v2/inspections/record/{assignedInspectionId}Authentication
Choose one supported method for this request.
Parameters
assignedInspectionIdpathinteger · int32requiredID of the inspection to update. Must be greater than zero.
Request body
The inspection's new values. Groups and items are identified by their assigned group and item IDs.
companyIdinteger · int32contactIdinteger · int32userIdinteger · int32inspectionNamestringinspectionNostringinspectionDatestring · dateinspectionHoursnumber · doublecommentsstringcompletebooleanstatusstring
Responses
Inspection updated successfully.
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
assignedInspectionIdinteger · int32inspectionIdinteger · int32recordIdinteger · int32serviceIdinteger · int32recordTypestringmakestringmodelstringserialNostringstockNostringvehicleNostringisMachinebooleannullablecompanyIdinteger · int32companyNamestringcontactIdinteger · int32contactstringuserIdinteger · int32repstringinspectionStagestringstatusstringinspectionNamestringinspectionTypestringinspectionNostringinspectionDatestring · dateinspectionHoursnumber · doublecommentsstringcompletebooleansourcestringdeletedbooleanincludeReconditionAmountbooleanidentifierstring · uuidnullableenterByinteger · int32mobileAssignedInspectionIdstringnullablepublicViewUrlstringnullablebrokerViewUrlstringnullableisTradeValuationbooleantradeValuenumber · doublenullablecustomerOffernumber · doublenullabletradeCommentsstringnullabletradeStatusstringnullable