Update the type of an existing inspection

Updates the type of an existing inspection. The inspection type can only be changed to an inspection type that is assigned to the inspection's team. Changing the type of an inspection will delete any already-uploaded Truepics and will automatically re-send the request email/text to the customer. This endpoint will also set the inspection status to Created. Closed or Canceled inspections cannot have their inspection type changed. Any unpromoted AI Analysis test data on the inspection is hard-deleted, because it was produced from the old type's configuration; the change is refused while a test is queued or running. That refusal is a 409 carrying test_run_in_progress, or test_data_not_removable when some of the data can no longer be removed; branch on the code, not the status.

Path Params
integer
required

The ID of the existing inspection request.

Body Params

The request body for PUT /inspections/{inspectionId}/inspection-type

integer
required
1 to 2147483647

ID of a different inspection type assigned to this inspection's team.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json