6.0 Add Repair

Used to assign repairs to defects.
This action replaces the deprecated extaddrepair action. This allows defects to be repaired individually, rather than forcing all defects for an inspection to be repaired at once.

6.1.1 Request Data - Add Repair

Required Information
Name Description
action addrepair
mechanic Identifier for the individual performing work. Note: This is the user login name.
repair_date Timestamp of when actual repair was done.
inspid Id of the inspection that initiated this work.
defectid Id of the defect to be repaired.
comment Description or repair note. Free form text, unlimited length.
format xml
Optional Information
sonumber Service / work order number. 20 character max.
norepair Flag to specify if no repair was required. Acceptable values.
  • true If true is the value passed, the comment parameter is not required.
duration The duration of the repair in seconds.
Note: If no duration is supplied, 0 will be assumed.

6.1.2 Request Data - Add Pending

Required Information
Name Description
action addrepair
operation pending
inspid Id of the inspection that initiated this work.
defectid Id of the defect to be repaired.
pending_date Timestamp of when the defect was marked as pending.
expected_date Timestamp of when the repair is expected to be complete.
comment Description or repair note. Free form text, unlimited length.
format xml

6.2 Data Returned

Returned information:
A success or error message.
DTD:
<?xml version="1.0"?>
<success ver="1.0">
  <action>addrepair</action>
</success>

Example Request:

http://development.zonarsystems.net/interface.php?action=addrepair&mechanic=jdoe&repair_date=1042841042&inspid=27&sonumber=SON2121&comment=Replaced&defectid=2021&format=xml


Example Success Reply, Example Error Reply