Create or update a qualified work order

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://developers.praxedo.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Public REST apis MCP server": {
    "url": "https://developers.praxedo.com/mcp"
  }
}

Close
PUT /eTech/rest/ws/diagnostic/v1/workOrders/code:{workOrderCode}

Creates the work order if workOrderCode does not exist, else updates it.

  • Cancel and replace: omitted fields are cleared.
  • Qualified level only, never new.
  • Instructions can be set, form conditions must be respected.

Rate limit range : High

Path parameters

  • workOrderCode string Required

    Business code of the work order, chosen by the caller. Max 100 characters, without / or ;;;.

    Maximum length is 100.

application/json

Body Required

  • creatorRequirements object Required

    How the work order is created.

    Hide creatorRequirements attributes Show creatorRequirements attributes object
    • referentialMode string Required
      • inPraxedo: customer, site and asset are Praxedo codes.
      • outPraxedo: they are described inline, nothing is created in the Praxedo referentials.

      Cannot be changed once the work order is created.

      Values are inPraxedo or outPraxedo.

    • skipControls array[string]

      Controls to skip.

      • statusExisting: allows updating a prescheduled or scheduled work order.

      Value is statusExisting.

  • workOrderTimezone string Required

    IANA timezone of the work order.

  • creationDate string(date-time)

    Creation date in the calling system. Defaults to now.

  • office string

    Office code. Defaults to the office of the calling application.

  • description string

    Free text describing what is to be done.

    Maximum length is 8191.

  • referentials object Required

    Customer, site and asset of the work order, as set by referentialMode.

    One of:
  • customerPortalUser string

    Ordering party code. Restricts the customer, site, asset and type to those linked to it.

  • contacts array[object]

    Contacts of the work order.

    Hide contacts attributes Show contacts attributes object

    A contact of the work order.

    • type string Required

      Contact type.

      Values are Phone, Mobile, or Email.

    • description string

      Contact label.

    • value string Required

      Phone number or email address. The email format is checked.

  • slas object

    Time window and appointment of the work order.

    Hide slas attributes Show slas attributes object
    • doAfterDate string(date-time)

      Do-after date.

    • doBeforeDate string(date-time)

      Do-before date, after doAfterDate. Required if the work order belongs to a project.

    • appointmentDate string(date-time)

      Appointment agreed with the customer, between the two dates above.

  • flags object

    Flags of the work order.

    Hide flags attribute Show flags attribute object
    • ids array[integer]

      Flag ids, each a power of 2 and activated on the account. An empty or missing list clears all flags.

      Minimum value of each is 1.

  • type object Required

    Qualification of the work order. typeCode is always required. Changing the type qualifies the work order again and unschedules it.

    Hide type attributes Show type attributes object
    • typeCode string Required

      Intervention type code.

    • duration string(duration)

      ISO 8601 duration in days, hours and minutes, as PT1H30M or P3D. From 24 hours, a whole number of days. Defaults to the duration of the type. Ignored once the work order is prescheduled or scheduled.

    • instructions object | null

      Values pre-filling the intervention form. Omitted, the report is left as is, or takes the type defaults. Sent, it replaces all instruction values. Form conditions must be respected: a value sent to a hidden field or table is refused.

      Hide instructions attributes Show instructions attributes object | null
      • reportFields object

        Values by field code of the form (case sensitive).

      • reportTables object

        Rows by table code of the form, then by column code (case sensitive). Max 99 rows per table. A table named is rebuilt. Tables are written up to the qualified status only.

        Hide reportTables attribute Show reportTables attribute object
        • * array[object | null] | null Additional properties

          Not more than 99 elements.

  • required object

    Requirements of the work order. A list sent replaces the one of the type, [] expects nothing. Ignored once the work order is prescheduled or scheduled.

    Hide required attributes Show required attributes object
    • skills array[object]

      Skills expected of the technician.

      Hide skills attributes Show skills attributes object

      A skill or a machine characteristic.

      • code string Required

        Skill or characteristic code.

      • requirement string Required

        How strictly it is expected.

        Values are mandatory or optional.

    • characteristics array[object]

      Characteristics expected of the machine.

      Hide characteristics attributes Show characteristics attributes object

      A skill or a machine characteristic.

      • code string Required

        Skill or characteristic code.

      • requirement string Required

        How strictly it is expected.

        Values are mandatory or optional.

    • documents array[object]

      Document types required to validate the work order. Ignored if the account has no document type.

      Hide documents attribute Show documents attribute object

      A document type required to validate the work order.

      • code string Required

        Document type code.

Responses

  • 201 application/json

    The work order was created.

    Hide response attributes Show response attributes object
    • workOrderCode string Required

      Work order code, assigned by the platform when the call used a uuid.

    • workOrderUuid string(uuid) Required

      Work order uuid.

    • status string Required

      Work order status. A created work order is qualified.

      Values are new, qualified, preScheduled, scheduled, inProgress, completed, validated, or cancelled.

  • 204

    The work order was updated. No body is returned.

  • 400 application/json

    Bad Request - validation errors

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 401 application/json

    Unauthorized - authentication issue.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 403

    Forbidden - not enough rights. No body is returned.

  • 409 application/json

    Conflict - the status of the work order refuses the update, or its referential mode differs.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 429 application/json

    Too Many Requests.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 500 application/json

    Internal server error.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

PUT /eTech/rest/ws/diagnostic/v1/workOrders/code:{workOrderCode}
curl \
 --request PUT 'https://ws-eu1.praxedo.com/eTech/rest/ws/diagnostic/v1/workOrders/code:WO-123456' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "creatorRequirements": {
    "referentialMode": "inPraxedo",
    "skipControls": []
  },
  "workOrderTimezone": "Europe/Paris",
  "creationDate": "2026-04-10 10:00:00 UTC",
  "office": "AGENCY_PARIS",
  "description": "Repair air conditioning unit — annual service",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007",
    "contractCode": "CTR-001"
  },
  "customerPortalUser": "SUBCO_NORD",
  "contacts": [
    {
      "type": "Phone",
      "description": "Téléphone fixe",
      "value": "0144523697"
    },
    {
      "type": "Mobile",
      "description": "Mobile",
      "value": "0607080910"
    },
    {
      "type": "Email",
      "description": "Email",
      "value": "SAMartin@google.com"
    }
  ],
  "slas": {
    "doAfterDate": "2026-08-10 10:00:00 UTC",
    "doBeforeDate": "2026-08-17 10:00:00 UTC",
    "appointmentDate": "2026-08-14 14:30:00 UTC"
  },
  "flags": {
    "ids": [
      1,
      2
    ]
  },
  "type": {
    "typeCode": "AC_REPAIR",
    "duration": "PT1H30M"
  },
  "required": {
    "skills": [
      {
        "code": "SKILL_HVAC",
        "requirement": "mandatory"
      }
    ],
    "characteristics": [
      {
        "code": "MACHINE_MODEL_X",
        "requirement": "optional"
      }
    ],
    "documents": [
      {
        "code": "INVOICE"
      }
    ]
  }
}'
Request examples
{
  "creatorRequirements": {
    "referentialMode": "inPraxedo",
    "skipControls": []
  },
  "workOrderTimezone": "Europe/Paris",
  "creationDate": "2026-04-10 10:00:00 UTC",
  "office": "AGENCY_PARIS",
  "description": "Repair air conditioning unit — annual service",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007",
    "contractCode": "CTR-001"
  },
  "customerPortalUser": "SUBCO_NORD",
  "contacts": [
    {
      "type": "Phone",
      "description": "Téléphone fixe",
      "value": "0144523697"
    },
    {
      "type": "Mobile",
      "description": "Mobile",
      "value": "0607080910"
    },
    {
      "type": "Email",
      "description": "Email",
      "value": "SAMartin@google.com"
    }
  ],
  "slas": {
    "doAfterDate": "2026-08-10 10:00:00 UTC",
    "doBeforeDate": "2026-08-17 10:00:00 UTC",
    "appointmentDate": "2026-08-14 14:30:00 UTC"
  },
  "flags": {
    "ids": [
      1,
      2
    ]
  },
  "type": {
    "typeCode": "AC_REPAIR",
    "duration": "PT1H30M"
  },
  "required": {
    "skills": [
      {
        "code": "SKILL_HVAC",
        "requirement": "mandatory"
      }
    ],
    "characteristics": [
      {
        "code": "MACHINE_MODEL_X",
        "requirement": "optional"
      }
    ],
    "documents": [
      {
        "code": "INVOICE"
      }
    ]
  }
}
{
  "creatorRequirements": {
    "referentialMode": "inPraxedo"
  },
  "workOrderTimezone": "Europe/Paris",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007"
  },
  "type": {
    "typeCode": "AC_REPAIR"
  }
}
{
  "creatorRequirements": {
    "referentialMode": "outPraxedo"
  },
  "workOrderTimezone": "Europe/Paris",
  "description": "Repair air conditioning unit — annual service",
  "referentials": {
    "customerName": "Galeries Lafayette",
    "site": {
      "name": "Paris Haussmann",
      "description": "Main store",
      "address": "40 boulevard Haussmann",
      "zipCode": "75009",
      "city": "Paris",
      "geolocation": {
        "latitude": 48.8738,
        "longitude": 2.332
      }
    },
    "assetName": "Rooftop unit"
  },
  "type": {
    "typeCode": "AC_REPAIR"
  }
}
{
  "creatorRequirements": {
    "referentialMode": "inPraxedo"
  },
  "workOrderTimezone": "Europe/Paris",
  "customerPortalUser": "SUBCO_NORD",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007"
  },
  "type": {
    "typeCode": "AC_REPAIR"
  }
}
{
  "creatorRequirements": {
    "referentialMode": "inPraxedo",
    "skipControls": [
      "statusExisting"
    ]
  },
  "workOrderTimezone": "Europe/Paris",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007"
  },
  "type": {
    "typeCode": "AC_REPAIR"
  }
}
{
  "creatorRequirements": {
    "referentialMode": "inPraxedo"
  },
  "workOrderTimezone": "Europe/Paris",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007"
  },
  "type": {
    "typeCode": "AC_REPAIR",
    "duration": "PT1H30M"
  }
}
{
  "creatorRequirements": {
    "referentialMode": "inPraxedo"
  },
  "workOrderTimezone": "Europe/Paris",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007"
  },
  "type": {
    "typeCode": "AC_OVERHAUL",
    "duration": "PT72H"
  }
}
{
  "creatorRequirements": {
    "referentialMode": "inPraxedo"
  },
  "workOrderTimezone": "Europe/Paris",
  "referentials": {
    "customerCode": "CUST-042",
    "siteCode": "SITE-099",
    "assetCode": "ASSET-007"
  },
  "type": {
    "typeCode": "AC_REPAIR",
    "instructions": {
      "reportFields": {
        "EQUIPMENT_BRAND": {
          "textValue": "Daikin"
        },
        "FAULT_TYPE": {
          "dropDownValue": "Leak"
        },
        "UNIT_COUNT": {
          "numericValue": 2
        },
        "UNDER_WARRANTY": {
          "booleanValue": true
        },
        "LAST_SERVICE": {
          "dateValue": "2026-03-15"
        },
        "ACCESS_FROM": {
          "timeValue": "08:30"
        },
        "SITE_CONTACT_PHONE": {
          "phoneValue": "0144523697"
        },
        "UNIT_LOCATION": {
          "gpsValue": {
            "latitude": 48.8566,
            "longitude": 2.3522
          }
        }
      },
      "reportTables": {
        "FLOORS": [
          {
            "FLOOR": {
              "numericValue": 1
            },
            "DWELLINGS": {
              "numericValue": 10
            }
          },
          {
            "FLOOR": {
              "numericValue": 2
            },
            "DWELLINGS": {
              "numericValue": 8
            }
          }
        ]
      }
    }
  }
}
Response examples (201)
{
  "workOrderCode": "WO-2026-00456",
  "workOrderUuid": "550e8400-e29b-41d4-a716-446655440000",
  "status": "new"
}
Response examples (400)
{
  "errors": [
    {
      "code": "diagnostic.workorders.code.mandatory",
      "message": "Missing work order code in path."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.uuid.mandatory",
      "message": "Missing work order uuid in path."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.workOrderTimezone.mandatory",
      "message": "Property workOrderTimezone is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.referentialMode.mandatory",
      "message": "Property creatorRequirements.referentialMode is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.customer.mandatory",
      "message": "Property referentials.customerCode is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.site.mandatory",
      "message": "Property referentials.siteCode is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.customer.name.mandatory",
      "message": "Property referentials.customerName is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.site.name.mandatory",
      "message": "Property referentials.site.name is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.site.address.mandatory",
      "message": "Property referentials.site.address is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.site.city.mandatory",
      "message": "Property referentials.site.city is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.contact.value.mandatory",
      "message": "The contact value is required."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.office.unknown",
      "message": "The office [AGENCY_ATLANTIS] is unknown. It doesn't exist or it is outside the office hierarchy."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.customer.unknown",
      "message": "The customer [CUST-042] is unknown. It doesn't exist or it is outside the office hierarchy."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.site.unknown",
      "message": "The site [SITE-099] is unknown. It doesn't exist or it is outside the office hierarchy."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.asset.unknown",
      "message": "The asset [ASSET-007] is unknown. It doesn't exist or it is outside the office hierarchy."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.contractor.unknown",
      "message": "The contract [CTR-001] is unknown. It doesn't exist or it is not visible from the office."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.referentialMode.unknown",
      "message": "Referential mode [inTierceApp] is unknown. Accepted values are inPraxedo and outPraxedo."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.referentials.mode.mismatch",
      "message": "Property referentials.customerCode is not allowed with referentialMode outPraxedo."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.site.geolocation.format",
      "message": "Property referentials.site.geolocation needs a latitude and a longitude, or neither."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.referentials.length",
      "message": "Property referentials.site.zipCode should not exceed 20 characters."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.customerPortalUser.unknown",
      "message": "The ordering customer [SUBCO_NORD] is unknown."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.flags.code.unknown",
      "message": "The flag code 8 is unknown."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.workOrderTimezone.format",
      "message": "Property workOrderTimezone [Europe/Atlantis] is not a known timezone."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.dates.format",
      "message": "Date [10/08/2026] does not respect the ISO 8601 format."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.dates.inconsistent",
      "message": "Property slas.doBeforeDate must be after slas.doAfterDate."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.contact.type.unknown",
      "message": "The contact type [Fax] is unknown."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.contact.email.format",
      "message": "The contact e-mail address [SAMartin@google] is not valid."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.flags.format",
      "message": "Flag 3 is not a power of 2."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.description.length",
      "message": "Property description exceeds 8191 characters."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.uuid.format",
      "message": "Work order uuid [not-a-uuid] is not a valid uuid."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.slas.doBeforeDate.requiredWhenLinkedToProject",
      "message": "A work order that is part of a project requires a do-before date."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.creatorRequirements.skipControls.unknown",
      "message": "Skip control [appointment] is unknown."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.typeCode.mandatory",
      "message": "Property type.typeCode is required."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.unknown",
      "message": "The type [AC_REPAIR] is unknown."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.duration.format",
      "message": "The duration [PT30S] must be a positive ISO 8601 duration of whole minutes, as PT2H30M."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.duration.notMultipleOf24h",
      "message": "The duration [PT25H] reaches 24 hours and must be a whole number of days."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.required.requirement.unknown",
      "message": "Requirement [desirable] is unknown."
    }
  ],
  "errorReference": "3f21c7d4ab0e41f6bb2c1d0e7a5f9c83"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.required.skill.unknown",
      "message": "The skill [SKILL_HVAC] is unknown."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.required.characteristic.unknown",
      "message": "The characteristic [MACHINE_MODEL_X] is unknown."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.required.document.unknown",
      "message": "The document [INVOICE] is unknown."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportFields.code.unknown",
      "message": "The report field EQUIPMENT_BRAND is not an instruction of the work order type's form."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportFields.code.unknown",
      "message": "The report fields EQUIPMENT_BRAND, FAULT_TYPE are not instructions of the work order type's form."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportFields.value.format",
      "message": "The report field FAULT_TYPE value does not respect the expected format."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportFields.value.format",
      "message": "The report field UNIT_LOCATION needs a latitude and a longitude, or neither."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportFields.value.length",
      "message": "The report field EQUIPMENT_BRAND value length exceeds the max allowed."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportFields.hidden",
      "message": "The report field WARRANTY_NUMBER is not expected as it is hidden by a condition on UNDER_WARRANTY."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportFields.values.mandatory",
      "message": "Instructions EQUIPMENT_BRAND, FAULT_TYPE are required."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportTables.code.unknown",
      "message": "The report table entries CHECKLIST, FLOORS[1].ROOM are not instructions of the work order type's form."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportTables.value.format",
      "message": "The report table cell FLOORS[1].DWELLINGS value does not respect the expected format."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportTables.value.length",
      "message": "The report table cell FLOORS[0].NOTE value length exceeds the max allowed."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportTables.rows.max",
      "message": "The report table FLOORS holds more than the 99 rows allowed."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportTables.values.mandatory",
      "message": "Instructions FLOORS[0].DWELLINGS, FLOORS[2].DWELLINGS are required."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportTables.hidden",
      "message": "The report table entries FLOORS (condition on MULTI_STOREY), CHECKS[0].REMARK (condition on DONE) are not expected as they are hidden by a condition."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.currentServiceOrder.office.inconsistent",
      "message": "The office requested is neither the office of the service order the work order is part of, nor one below it."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.currentServiceOrder.customerPortalUser.inconsistent",
      "message": "The work order is part of a service order placed on behalf of another ordering customer."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.rule.violated",
      "message": "The work order breaks a registration rule."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.invalid.json",
      "message": "Invalid Json format."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.invalid.json",
      "message": "Property unknownProperty is unknown."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.invalid.json",
      "message": "Property contacts[1].type does not carry the expected kind of value."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.invalid.json",
      "message": "Report field UNIT_COUNT must carry exactly one kind of value."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.invalid.json",
      "message": "Report field CHECKLIST[0].STEP must carry exactly one kind of value."
    }
  ],
  "errorReference": "d3c79ddca4f9413cad99dc934cc7d0aa"
}
Response examples (401)
{
  "errors": [
    {
      "code": "unauthorized.nocredentials",
      "message": "No credentials."
    }
  ],
  "errorReference": "f939c6b8c15045c9a70f500fdb570555"
}
{
  "errors": [
    {
      "code": "unauthorized.badcredentials",
      "message": "Bad Credentials."
    }
  ],
  "errorReference": "f1028f99811b422eb21f5ff176664069"
}
Response examples (409)
{
  "errors": [
    {
      "code": "diagnostic.workorders.code.statusConflict",
      "message": "The work order is scheduled: add statusExisting to skipControls to update it."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.code.statusConflict",
      "message": "The work order is inProgress and can no longer be updated."
    }
  ],
  "errorReference": "7a1c22e1bf9256bb0c217c159102c482"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.code.alreadyExists",
      "message": "The work order [WO-123456] is already validated."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.type.instructions.reportTables.rows.filled",
      "message": "The report table FLOORS holds values entered on site: leave it out to keep them."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.code.statusConflict",
      "message": "The work order is scheduled: its report tables can only be written up to qualified."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
{
  "errors": [
    {
      "code": "diagnostic.workorders.referentialMode.conflict",
      "message": "The work order [WO-123456] was registered with referentialMode inPraxedo and cannot be updated with outPraxedo."
    }
  ],
  "errorReference": "669b11d0ae8145aa9b106b049091b371"
}
Response examples (429)
{
  "errors": [
    {
      "code": "diagnostic.ratelimiter.toomanyrequest",
      "message": "Rejected because of the rate limit definition."
    }
  ],
  "errorReference": "973326230a3f44daba6cc34a5939b4fb"
}
Response examples (500)
{
  "errors": [
    {
      "code": "diagnostic.internal.server.error",
      "message": "Something went wrong."
    }
  ],
  "errorReference": "6377010431314bf6b0b95ec4d32ddae0"
}