﻿{
    "openapi":  "3.0.3",
    "info":  {
                 "title":  "OPEn API",
                 "description":  "Selected OPEn MVC API operations. Additional endpoints remain undocumented. A JSON response may indicate failure in Success even with HTTP 200.",
                 "version":  "1.0.0"
             },
    "servers":  [
                    {
                        "url":  "/",
                        "description":  "Root of your OPEn deployment"
                    }
                ],
    "x-api-groups":  [
                         {
                             "name":  "Integration context",
                             "description":  "Use an integration provider key in Authorization: X-Wash-Integration-Key \u003ckey\u003e. Context discovery requires the integration.contexts.read scope but no selected context. For context-scoped incident calls, use X-Wash-Integration-Context or contextKey; a sole enabled context is selected automatically. Required scopes and grants apply."
                         },
                         {
                             "name":  "Standard API key",
                             "description":  "Use a user API key in Authorization: ApiKey \u003ckey\u003e. A user token in Authorization: Bearer \u003ctoken\u003e or an authenticated application cookie may also be used, subject to user and location permissions. Location-scoped integration-enabled operations additionally accept an integration provider key with the required scopes and grants; they do not require a selected integration context."
                         }
                     ],
    "paths":  {
                  "/api/integration/contexts":  {
                                                    "get":  {
                                                                "operationId":  "listIntegrationContexts",
                                                                "summary":  "List integration contexts",
                                                                "description":  "Integration-key scope: `integration.contexts.read`. Requires an integration provider key.",
                                                                "parameters":  [

                                                                               ],
                                                                "responses":  {
                                                                                  "200":  {
                                                                                              "content":  {
                                                                                                              "application/json":  {
                                                                                                                                       "schema":  {
                                                                                                                                                      "properties":  {
                                                                                                                                                                         "Message":  {
                                                                                                                                                                                         "type":  "string"
                                                                                                                                                                                     },
                                                                                                                                                                         "TotalCount":  {
                                                                                                                                                                                            "type":  "integer"
                                                                                                                                                                                        },
                                                                                                                                                                         "RefreshPage":  {
                                                                                                                                                                                             "type":  "boolean"
                                                                                                                                                                                         },
                                                                                                                                                                         "Success":  {
                                                                                                                                                                                         "type":  "boolean"
                                                                                                                                                                                     },
                                                                                                                                                                         "Payload":  {
                                                                                                                                                                                         "oneOf":  [
                                                                                                                                                                                                       {
                                                                                                                                                                                                           "items":  {
                                                                                                                                                                                                                         "$ref":  "#/components/schemas/Context"
                                                                                                                                                                                                                     },
                                                                                                                                                                                                           "type":  "array"
                                                                                                                                                                                                       },
                                                                                                                                                                                                       {
                                                                                                                                                                                                           "type":  "string"
                                                                                                                                                                                                       }
                                                                                                                                                                                                   ],
                                                                                                                                                                                         "nullable":  true
                                                                                                                                                                                     }
                                                                                                                                                                     },
                                                                                                                                                      "type":  "object"
                                                                                                                                                  }
                                                                                                                                   }
                                                                                                          },
                                                                                              "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                          },
                                                                                  "401":  {
                                                                                              "description":  "Authentication or location access failed."
                                                                                          },
                                                                                  "403":  {
                                                                                              "description":  "Integration scope, location grant, or context was denied."
                                                                                          }
                                                                              },
                                                                "x-api-group":  "Integration context",
                                                                "x-resource-group":  "Contexts",
                                                                "tags":  [
                                                                             "Integration context / Contexts"
                                                                         ],
                                                                "security":  [
                                                                                 {
                                                                                     "integrationKey":  [

                                                                                                        ]
                                                                                 }
                                                                             ]
                                                            }
                                                },
                  "/api/incidents":  {
                                         "get":  {
                                                     "operationId":  "listContextIncidents",
                                                     "summary":  "List incidents in a context",
                                                     "description":  "Integration-key scope: `incidents.read`. Requires an integration provider key. TotalCount is the number of matches before paging.",
                                                     "parameters":  [
                                                                        {
                                                                            "description":  "Context key. Required when the provider has more than one enabled context; contextKey query parameter is an alternative.",
                                                                            "name":  "X-Wash-Integration-Context",
                                                                            "in":  "header",
                                                                            "schema":  {
                                                                                           "type":  "string"
                                                                                       },
                                                                            "required":  false
                                                                        },
                                                                        {
                                                                            "description":  "Alternative to X-Wash-Integration-Context.",
                                                                            "name":  "contextKey",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "type":  "string"
                                                                                       },
                                                                            "required":  false
                                                                        },
                                                                        {
                                                                            "description":  "Page size; values at or below zero default to 50 and values above 250 are capped at 250.",
                                                                            "name":  "take",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "default":  50,
                                                                                           "type":  "integer"
                                                                                       },
                                                                            "required":  false
                                                                        },
                                                                        {
                                                                            "description":  "Offset; negative values are treated as zero.",
                                                                            "name":  "skip",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "default":  0,
                                                                                           "type":  "integer"
                                                                                       },
                                                                            "required":  false
                                                                        },
                                                                        {
                                                                            "description":  "Incident state name or numeric value. Unrecognized values do not filter the result.",
                                                                            "name":  "state",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "type":  "string"
                                                                                       },
                                                                            "required":  false
                                                                        }
                                                                    ],
                                                     "responses":  {
                                                                       "200":  {
                                                                                   "content":  {
                                                                                                   "application/json":  {
                                                                                                                            "schema":  {
                                                                                                                                           "properties":  {
                                                                                                                                                              "Message":  {
                                                                                                                                                                              "type":  "string"
                                                                                                                                                                          },
                                                                                                                                                              "TotalCount":  {
                                                                                                                                                                                 "type":  "integer"
                                                                                                                                                                             },
                                                                                                                                                              "RefreshPage":  {
                                                                                                                                                                                  "type":  "boolean"
                                                                                                                                                                              },
                                                                                                                                                              "Success":  {
                                                                                                                                                                              "type":  "boolean"
                                                                                                                                                                          },
                                                                                                                                                              "Payload":  {
                                                                                                                                                                              "oneOf":  [
                                                                                                                                                                                            {
                                                                                                                                                                                                "items":  {
                                                                                                                                                                                                              "$ref":  "#/components/schemas/IncidentSummary"
                                                                                                                                                                                                          },
                                                                                                                                                                                                "type":  "array"
                                                                                                                                                                                            },
                                                                                                                                                                                            {
                                                                                                                                                                                                "type":  "string"
                                                                                                                                                                                            }
                                                                                                                                                                                        ],
                                                                                                                                                                              "nullable":  true
                                                                                                                                                                          }
                                                                                                                                                          },
                                                                                                                                           "type":  "object"
                                                                                                                                       }
                                                                                                                        }
                                                                                               },
                                                                                   "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                               },
                                                                       "401":  {
                                                                                   "description":  "Authentication or location access failed."
                                                                               },
                                                                       "403":  {
                                                                                   "description":  "Integration scope, location grant, or context was denied."
                                                                               }
                                                                   },
                                                     "x-api-group":  "Integration context",
                                                     "x-resource-group":  "Incidents",
                                                     "tags":  [
                                                                  "Integration context / Incidents"
                                                              ],
                                                     "security":  [
                                                                      {
                                                                          "integrationKey":  [

                                                                                             ]
                                                                      }
                                                                  ]
                                                 }
                                     },
                  "/api/incidents/lookup":  {
                                                "get":  {
                                                            "operationId":  "lookupContextIncidents",
                                                            "summary":  "Find incidents in a context",
                                                            "description":  "Integration-key scope: `incidents.read`. Requires an integration provider key and at least one lookup field.",
                                                            "parameters":  [
                                                                               {
                                                                                   "description":  "Context key. Required when the provider has more than one enabled context; contextKey query parameter is an alternative.",
                                                                                   "name":  "X-Wash-Integration-Context",
                                                                                   "in":  "header",
                                                                                   "schema":  {
                                                                                                  "type":  "string"
                                                                                              },
                                                                                   "required":  false
                                                                               },
                                                                               {
                                                                                   "description":  "Alternative to X-Wash-Integration-Context.",
                                                                                   "name":  "contextKey",
                                                                                   "in":  "query",
                                                                                   "schema":  {
                                                                                                  "type":  "string"
                                                                                              },
                                                                                   "required":  false
                                                                               },
                                                                               {
                                                                                   "description":  "Customer name substring. Supply this or phone.",
                                                                                   "name":  "customerName",
                                                                                   "in":  "query",
                                                                                   "schema":  {
                                                                                                  "type":  "string"
                                                                                              },
                                                                                   "required":  false
                                                                               },
                                                                               {
                                                                                   "description":  "Phone substring. Supply this or customerName.",
                                                                                   "name":  "phone",
                                                                                   "in":  "query",
                                                                                   "schema":  {
                                                                                                  "type":  "string"
                                                                                              },
                                                                                   "required":  false
                                                                               },
                                                                               {
                                                                                   "description":  "Page size; values at or below zero default to 50 and values above 250 are capped at 250.",
                                                                                   "name":  "take",
                                                                                   "in":  "query",
                                                                                   "schema":  {
                                                                                                  "default":  50,
                                                                                                  "type":  "integer"
                                                                                              },
                                                                                   "required":  false
                                                                               },
                                                                               {
                                                                                   "description":  "Offset; negative values are treated as zero.",
                                                                                   "name":  "skip",
                                                                                   "in":  "query",
                                                                                   "schema":  {
                                                                                                  "default":  0,
                                                                                                  "type":  "integer"
                                                                                              },
                                                                                   "required":  false
                                                                               }
                                                                           ],
                                                            "responses":  {
                                                                              "200":  {
                                                                                          "content":  {
                                                                                                          "application/json":  {
                                                                                                                                   "schema":  {
                                                                                                                                                  "properties":  {
                                                                                                                                                                     "Message":  {
                                                                                                                                                                                     "type":  "string"
                                                                                                                                                                                 },
                                                                                                                                                                     "TotalCount":  {
                                                                                                                                                                                        "type":  "integer"
                                                                                                                                                                                    },
                                                                                                                                                                     "RefreshPage":  {
                                                                                                                                                                                         "type":  "boolean"
                                                                                                                                                                                     },
                                                                                                                                                                     "Success":  {
                                                                                                                                                                                     "type":  "boolean"
                                                                                                                                                                                 },
                                                                                                                                                                     "Payload":  {
                                                                                                                                                                                     "oneOf":  [
                                                                                                                                                                                                   {
                                                                                                                                                                                                       "items":  {
                                                                                                                                                                                                                     "$ref":  "#/components/schemas/IncidentSummary"
                                                                                                                                                                                                                 },
                                                                                                                                                                                                       "type":  "array"
                                                                                                                                                                                                   },
                                                                                                                                                                                                   {
                                                                                                                                                                                                       "type":  "string"
                                                                                                                                                                                                   }
                                                                                                                                                                                               ],
                                                                                                                                                                                     "nullable":  true
                                                                                                                                                                                 }
                                                                                                                                                                 },
                                                                                                                                                  "type":  "object"
                                                                                                                                              }
                                                                                                                               }
                                                                                                      },
                                                                                          "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                      },
                                                                              "401":  {
                                                                                          "description":  "Authentication or location access failed."
                                                                                      },
                                                                              "403":  {
                                                                                          "description":  "Integration scope, location grant, or context was denied."
                                                                                      }
                                                                          },
                                                            "x-api-group":  "Integration context",
                                                            "x-resource-group":  "Incidents",
                                                            "tags":  [
                                                                         "Integration context / Incidents"
                                                                     ],
                                                            "security":  [
                                                                             {
                                                                                 "integrationKey":  [

                                                                                                    ]
                                                                             }
                                                                         ]
                                                        }
                                            },
                  "/api/incidents/{incidentId}":  {
                                                      "get":  {
                                                                  "operationId":  "getContextIncident",
                                                                  "summary":  "Get an incident in a context",
                                                                  "description":  "Integration-key scope: `incidents.read`. Requires an integration provider key; returns HTTP 404 when absent.",
                                                                  "parameters":  [
                                                                                     {
                                                                                         "description":  "Incident UUID.",
                                                                                         "name":  "incidentId",
                                                                                         "in":  "path",
                                                                                         "schema":  {
                                                                                                        "type":  "string",
                                                                                                        "format":  "uuid"
                                                                                                    },
                                                                                         "required":  true
                                                                                     },
                                                                                     {
                                                                                         "description":  "Context key. Required when the provider has more than one enabled context; contextKey query parameter is an alternative.",
                                                                                         "name":  "X-Wash-Integration-Context",
                                                                                         "in":  "header",
                                                                                         "schema":  {
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                         "required":  false
                                                                                     },
                                                                                     {
                                                                                         "description":  "Alternative to X-Wash-Integration-Context.",
                                                                                         "name":  "contextKey",
                                                                                         "in":  "query",
                                                                                         "schema":  {
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                         "required":  false
                                                                                     }
                                                                                 ],
                                                                  "responses":  {
                                                                                    "200":  {
                                                                                                "content":  {
                                                                                                                "application/json":  {
                                                                                                                                         "schema":  {
                                                                                                                                                        "properties":  {
                                                                                                                                                                           "Message":  {
                                                                                                                                                                                           "type":  "string"
                                                                                                                                                                                       },
                                                                                                                                                                           "TotalCount":  {
                                                                                                                                                                                              "type":  "integer"
                                                                                                                                                                                          },
                                                                                                                                                                           "RefreshPage":  {
                                                                                                                                                                                               "type":  "boolean"
                                                                                                                                                                                           },
                                                                                                                                                                           "Success":  {
                                                                                                                                                                                           "type":  "boolean"
                                                                                                                                                                                       },
                                                                                                                                                                           "Payload":  {
                                                                                                                                                                                           "oneOf":  [
                                                                                                                                                                                                         {
                                                                                                                                                                                                             "$ref":  "#/components/schemas/IncidentDetails"
                                                                                                                                                                                                         },
                                                                                                                                                                                                         {
                                                                                                                                                                                                             "type":  "string"
                                                                                                                                                                                                         }
                                                                                                                                                                                                     ],
                                                                                                                                                                                           "nullable":  true
                                                                                                                                                                                       }
                                                                                                                                                                       },
                                                                                                                                                        "type":  "object"
                                                                                                                                                    }
                                                                                                                                     }
                                                                                                            },
                                                                                                "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                            },
                                                                                    "401":  {
                                                                                                "description":  "Authentication or location access failed."
                                                                                            },
                                                                                    "403":  {
                                                                                                "description":  "Integration scope, location grant, or context was denied."
                                                                                            },
                                                                                    "404":  {
                                                                                                "description":  "The requested record was not found."
                                                                                            }
                                                                                },
                                                                  "x-api-group":  "Integration context",
                                                                  "x-resource-group":  "Incidents",
                                                                  "tags":  [
                                                                               "Integration context / Incidents"
                                                                           ],
                                                                  "security":  [
                                                                                   {
                                                                                       "integrationKey":  [

                                                                                                          ]
                                                                                   }
                                                                               ]
                                                              }
                                                  },
                  "/api/location/{locationId}/incidents":  {
                                                               "get":  {
                                                                           "operationId":  "listLocationIncidents",
                                                                           "summary":  "List incidents at a location",
                                                                           "description":  "Integration-key scope: `incidents.read`. TotalCount is the number of matches before paging. Authenticated users may also call this operation with the appropriate location permissions.",
                                                                           "parameters":  [
                                                                                              {
                                                                                                  "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                  "name":  "locationId",
                                                                                                  "in":  "path",
                                                                                                  "schema":  {
                                                                                                                 "type":  "string",
                                                                                                                 "format":  "uuid"
                                                                                                             },
                                                                                                  "required":  true
                                                                                              },
                                                                                              {
                                                                                                  "description":  "Page size; values at or below zero default to 50 and values above 250 are capped at 250.",
                                                                                                  "name":  "take",
                                                                                                  "in":  "query",
                                                                                                  "schema":  {
                                                                                                                 "default":  50,
                                                                                                                 "type":  "integer"
                                                                                                             },
                                                                                                  "required":  false
                                                                                              },
                                                                                              {
                                                                                                  "description":  "Offset; negative values are treated as zero.",
                                                                                                  "name":  "skip",
                                                                                                  "in":  "query",
                                                                                                  "schema":  {
                                                                                                                 "default":  0,
                                                                                                                 "type":  "integer"
                                                                                                             },
                                                                                                  "required":  false
                                                                                              },
                                                                                              {
                                                                                                  "description":  "Incident state name or numeric value. Unrecognized values do not filter the result.",
                                                                                                  "name":  "state",
                                                                                                  "in":  "query",
                                                                                                  "schema":  {
                                                                                                                 "type":  "string"
                                                                                                             },
                                                                                                  "required":  false
                                                                                              }
                                                                                          ],
                                                                           "responses":  {
                                                                                             "200":  {
                                                                                                         "content":  {
                                                                                                                         "application/json":  {
                                                                                                                                                  "schema":  {
                                                                                                                                                                 "properties":  {
                                                                                                                                                                                    "Message":  {
                                                                                                                                                                                                    "type":  "string"
                                                                                                                                                                                                },
                                                                                                                                                                                    "TotalCount":  {
                                                                                                                                                                                                       "type":  "integer"
                                                                                                                                                                                                   },
                                                                                                                                                                                    "RefreshPage":  {
                                                                                                                                                                                                        "type":  "boolean"
                                                                                                                                                                                                    },
                                                                                                                                                                                    "Success":  {
                                                                                                                                                                                                    "type":  "boolean"
                                                                                                                                                                                                },
                                                                                                                                                                                    "Payload":  {
                                                                                                                                                                                                    "oneOf":  [
                                                                                                                                                                                                                  {
                                                                                                                                                                                                                      "items":  {
                                                                                                                                                                                                                                    "$ref":  "#/components/schemas/IncidentSummary"
                                                                                                                                                                                                                                },
                                                                                                                                                                                                                      "type":  "array"
                                                                                                                                                                                                                  },
                                                                                                                                                                                                                  {
                                                                                                                                                                                                                      "type":  "string"
                                                                                                                                                                                                                  }
                                                                                                                                                                                                              ],
                                                                                                                                                                                                    "nullable":  true
                                                                                                                                                                                                }
                                                                                                                                                                                },
                                                                                                                                                                 "type":  "object"
                                                                                                                                                             }
                                                                                                                                              }
                                                                                                                     },
                                                                                                         "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                     },
                                                                                             "401":  {
                                                                                                         "description":  "Authentication or location access failed."
                                                                                                     },
                                                                                             "403":  {
                                                                                                         "description":  "Integration scope, location grant, or context was denied."
                                                                                                     }
                                                                                         },
                                                                           "x-api-group":  "Standard API key",
                                                                           "x-resource-group":  "Incidents",
                                                                           "tags":  [
                                                                                        "Standard API key / Incidents"
                                                                                    ],
                                                                           "security":  [
                                                                                            {
                                                                                                "userApiKey":  [

                                                                                                               ]
                                                                                            },
                                                                                            {
                                                                                                "userToken":  [

                                                                                                              ]
                                                                                            },
                                                                                            {
                                                                                                "userCookie":  [

                                                                                                               ]
                                                                                            },
                                                                                            {
                                                                                                "integrationKey":  [

                                                                                                                   ]
                                                                                            }
                                                                                        ]
                                                                       }
                                                           },
                  "/api/location/{locationId}/incidents/lookup":  {
                                                                      "get":  {
                                                                                  "operationId":  "lookupLocationIncidents",
                                                                                  "summary":  "Find incidents at a location",
                                                                                  "description":  "Integration-key scope: `incidents.read`. At least one lookup field is required. Authenticated users may also call this operation with the appropriate location permissions.",
                                                                                  "parameters":  [
                                                                                                     {
                                                                                                         "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                         "name":  "locationId",
                                                                                                         "in":  "path",
                                                                                                         "schema":  {
                                                                                                                        "type":  "string",
                                                                                                                        "format":  "uuid"
                                                                                                                    },
                                                                                                         "required":  true
                                                                                                     },
                                                                                                     {
                                                                                                         "description":  "Customer name substring. Supply this or phone.",
                                                                                                         "name":  "customerName",
                                                                                                         "in":  "query",
                                                                                                         "schema":  {
                                                                                                                        "type":  "string"
                                                                                                                    },
                                                                                                         "required":  false
                                                                                                     },
                                                                                                     {
                                                                                                         "description":  "Phone substring. Supply this or customerName.",
                                                                                                         "name":  "phone",
                                                                                                         "in":  "query",
                                                                                                         "schema":  {
                                                                                                                        "type":  "string"
                                                                                                                    },
                                                                                                         "required":  false
                                                                                                     },
                                                                                                     {
                                                                                                         "description":  "Page size; values at or below zero default to 50 and values above 250 are capped at 250.",
                                                                                                         "name":  "take",
                                                                                                         "in":  "query",
                                                                                                         "schema":  {
                                                                                                                        "default":  50,
                                                                                                                        "type":  "integer"
                                                                                                                    },
                                                                                                         "required":  false
                                                                                                     },
                                                                                                     {
                                                                                                         "description":  "Offset; negative values are treated as zero.",
                                                                                                         "name":  "skip",
                                                                                                         "in":  "query",
                                                                                                         "schema":  {
                                                                                                                        "default":  0,
                                                                                                                        "type":  "integer"
                                                                                                                    },
                                                                                                         "required":  false
                                                                                                     }
                                                                                                 ],
                                                                                  "responses":  {
                                                                                                    "200":  {
                                                                                                                "content":  {
                                                                                                                                "application/json":  {
                                                                                                                                                         "schema":  {
                                                                                                                                                                        "properties":  {
                                                                                                                                                                                           "Message":  {
                                                                                                                                                                                                           "type":  "string"
                                                                                                                                                                                                       },
                                                                                                                                                                                           "TotalCount":  {
                                                                                                                                                                                                              "type":  "integer"
                                                                                                                                                                                                          },
                                                                                                                                                                                           "RefreshPage":  {
                                                                                                                                                                                                               "type":  "boolean"
                                                                                                                                                                                                           },
                                                                                                                                                                                           "Success":  {
                                                                                                                                                                                                           "type":  "boolean"
                                                                                                                                                                                                       },
                                                                                                                                                                                           "Payload":  {
                                                                                                                                                                                                           "oneOf":  [
                                                                                                                                                                                                                         {
                                                                                                                                                                                                                             "items":  {
                                                                                                                                                                                                                                           "$ref":  "#/components/schemas/IncidentSummary"
                                                                                                                                                                                                                                       },
                                                                                                                                                                                                                             "type":  "array"
                                                                                                                                                                                                                         },
                                                                                                                                                                                                                         {
                                                                                                                                                                                                                             "type":  "string"
                                                                                                                                                                                                                         }
                                                                                                                                                                                                                     ],
                                                                                                                                                                                                           "nullable":  true
                                                                                                                                                                                                       }
                                                                                                                                                                                       },
                                                                                                                                                                        "type":  "object"
                                                                                                                                                                    }
                                                                                                                                                     }
                                                                                                                            },
                                                                                                                "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                            },
                                                                                                    "401":  {
                                                                                                                "description":  "Authentication or location access failed."
                                                                                                            },
                                                                                                    "403":  {
                                                                                                                "description":  "Integration scope, location grant, or context was denied."
                                                                                                            }
                                                                                                },
                                                                                  "x-api-group":  "Standard API key",
                                                                                  "x-resource-group":  "Incidents",
                                                                                  "tags":  [
                                                                                               "Standard API key / Incidents"
                                                                                           ],
                                                                                  "security":  [
                                                                                                   {
                                                                                                       "userApiKey":  [

                                                                                                                      ]
                                                                                                   },
                                                                                                   {
                                                                                                       "userToken":  [

                                                                                                                     ]
                                                                                                   },
                                                                                                   {
                                                                                                       "userCookie":  [

                                                                                                                      ]
                                                                                                   },
                                                                                                   {
                                                                                                       "integrationKey":  [

                                                                                                                          ]
                                                                                                   }
                                                                                               ]
                                                                              }
                                                                  },
                  "/api/location/{locationId}/incidents/{incidentId}":  {
                                                                            "get":  {
                                                                                        "operationId":  "getLocationIncident",
                                                                                        "summary":  "Get an incident at a location",
                                                                                        "description":  "Integration-key scope: `incidents.read`. Returns HTTP 404 when absent. Authenticated users may also call this operation with the appropriate location permissions.",
                                                                                        "parameters":  [
                                                                                                           {
                                                                                                               "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                               "name":  "locationId",
                                                                                                               "in":  "path",
                                                                                                               "schema":  {
                                                                                                                              "type":  "string",
                                                                                                                              "format":  "uuid"
                                                                                                                          },
                                                                                                               "required":  true
                                                                                                           },
                                                                                                           {
                                                                                                               "description":  "Incident UUID.",
                                                                                                               "name":  "incidentId",
                                                                                                               "in":  "path",
                                                                                                               "schema":  {
                                                                                                                              "type":  "string",
                                                                                                                              "format":  "uuid"
                                                                                                                          },
                                                                                                               "required":  true
                                                                                                           }
                                                                                                       ],
                                                                                        "responses":  {
                                                                                                          "200":  {
                                                                                                                      "content":  {
                                                                                                                                      "application/json":  {
                                                                                                                                                               "schema":  {
                                                                                                                                                                              "properties":  {
                                                                                                                                                                                                 "Message":  {
                                                                                                                                                                                                                 "type":  "string"
                                                                                                                                                                                                             },
                                                                                                                                                                                                 "TotalCount":  {
                                                                                                                                                                                                                    "type":  "integer"
                                                                                                                                                                                                                },
                                                                                                                                                                                                 "RefreshPage":  {
                                                                                                                                                                                                                     "type":  "boolean"
                                                                                                                                                                                                                 },
                                                                                                                                                                                                 "Success":  {
                                                                                                                                                                                                                 "type":  "boolean"
                                                                                                                                                                                                             },
                                                                                                                                                                                                 "Payload":  {
                                                                                                                                                                                                                 "oneOf":  [
                                                                                                                                                                                                                               {
                                                                                                                                                                                                                                   "$ref":  "#/components/schemas/IncidentDetails"
                                                                                                                                                                                                                               },
                                                                                                                                                                                                                               {
                                                                                                                                                                                                                                   "type":  "string"
                                                                                                                                                                                                                               }
                                                                                                                                                                                                                           ],
                                                                                                                                                                                                                 "nullable":  true
                                                                                                                                                                                                             }
                                                                                                                                                                                             },
                                                                                                                                                                              "type":  "object"
                                                                                                                                                                          }
                                                                                                                                                           }
                                                                                                                                  },
                                                                                                                      "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                                  },
                                                                                                          "401":  {
                                                                                                                      "description":  "Authentication or location access failed."
                                                                                                                  },
                                                                                                          "403":  {
                                                                                                                      "description":  "Integration scope, location grant, or context was denied."
                                                                                                                  },
                                                                                                          "404":  {
                                                                                                                      "description":  "The requested record was not found."
                                                                                                                  }
                                                                                                      },
                                                                                        "x-api-group":  "Standard API key",
                                                                                        "x-resource-group":  "Incidents",
                                                                                        "tags":  [
                                                                                                     "Standard API key / Incidents"
                                                                                                 ],
                                                                                        "security":  [
                                                                                                         {
                                                                                                             "userApiKey":  [

                                                                                                                            ]
                                                                                                         },
                                                                                                         {
                                                                                                             "userToken":  [

                                                                                                                           ]
                                                                                                         },
                                                                                                         {
                                                                                                             "userCookie":  [

                                                                                                                            ]
                                                                                                         },
                                                                                                         {
                                                                                                             "integrationKey":  [

                                                                                                                                ]
                                                                                                         }
                                                                                                     ]
                                                                                    }
                                                                        },
                  "/api/location/{locationId}/issues":  {
                                                            "post":  {
                                                                         "operationId":  "createIssue",
                                                                         "summary":  "Create an issue",
                                                                         "description":  "Integration-key scope: `issues.write`.  Authenticated users may also call this operation with the appropriate location permissions.",
                                                                         "parameters":  [
                                                                                            {
                                                                                                "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                "name":  "locationId",
                                                                                                "in":  "path",
                                                                                                "schema":  {
                                                                                                               "type":  "string",
                                                                                                               "format":  "uuid"
                                                                                                           },
                                                                                                "required":  true
                                                                                            }
                                                                                        ],
                                                                         "responses":  {
                                                                                           "200":  {
                                                                                                       "content":  {
                                                                                                                       "application/json":  {
                                                                                                                                                "schema":  {
                                                                                                                                                               "properties":  {
                                                                                                                                                                                  "Message":  {
                                                                                                                                                                                                  "type":  "string"
                                                                                                                                                                                              },
                                                                                                                                                                                  "TotalCount":  {
                                                                                                                                                                                                     "type":  "integer"
                                                                                                                                                                                                 },
                                                                                                                                                                                  "RefreshPage":  {
                                                                                                                                                                                                      "type":  "boolean"
                                                                                                                                                                                                  },
                                                                                                                                                                                  "Success":  {
                                                                                                                                                                                                  "type":  "boolean"
                                                                                                                                                                                              },
                                                                                                                                                                                  "Payload":  {
                                                                                                                                                                                                  "oneOf":  [
                                                                                                                                                                                                                {
                                                                                                                                                                                                                    "$ref":  "#/components/schemas/Id"
                                                                                                                                                                                                                },
                                                                                                                                                                                                                {
                                                                                                                                                                                                                    "type":  "string"
                                                                                                                                                                                                                }
                                                                                                                                                                                                            ],
                                                                                                                                                                                                  "nullable":  true
                                                                                                                                                                                              }
                                                                                                                                                                              },
                                                                                                                                                               "type":  "object"
                                                                                                                                                           }
                                                                                                                                            }
                                                                                                                   },
                                                                                                       "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                   },
                                                                                           "401":  {
                                                                                                       "description":  "Authentication or location access failed."
                                                                                                   },
                                                                                           "403":  {
                                                                                                       "description":  "Integration scope, location grant, or context was denied."
                                                                                                   }
                                                                                       },
                                                                         "requestBody":  {
                                                                                             "content":  {
                                                                                                             "application/json":  {
                                                                                                                                      "schema":  {
                                                                                                                                                     "$ref":  "#/components/schemas/IssueCreate"
                                                                                                                                                 }
                                                                                                                                  }
                                                                                                         },
                                                                                             "required":  true
                                                                                         },
                                                                         "x-api-group":  "Standard API key",
                                                                         "x-resource-group":  "Issues",
                                                                         "tags":  [
                                                                                      "Standard API key / Issues"
                                                                                  ],
                                                                         "security":  [
                                                                                          {
                                                                                              "userApiKey":  [

                                                                                                             ]
                                                                                          },
                                                                                          {
                                                                                              "userToken":  [

                                                                                                            ]
                                                                                          },
                                                                                          {
                                                                                              "userCookie":  [

                                                                                                             ]
                                                                                          },
                                                                                          {
                                                                                              "integrationKey":  [

                                                                                                                 ]
                                                                                          }
                                                                                      ]
                                                                     }
                                                        },
                  "/api/location/{locationId}/issues/{issueId}":  {
                                                                      "get":  {
                                                                                  "operationId":  "getIssue",
                                                                                  "summary":  "Get an issue",
                                                                                  "description":  "Integration-key scope: `issues.read`.  Authenticated users may also call this operation with the appropriate location permissions.",
                                                                                  "parameters":  [
                                                                                                     {
                                                                                                         "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                         "name":  "locationId",
                                                                                                         "in":  "path",
                                                                                                         "schema":  {
                                                                                                                        "type":  "string",
                                                                                                                        "format":  "uuid"
                                                                                                                    },
                                                                                                         "required":  true
                                                                                                     },
                                                                                                     {
                                                                                                         "description":  "Issue UUID.",
                                                                                                         "name":  "issueId",
                                                                                                         "in":  "path",
                                                                                                         "schema":  {
                                                                                                                        "type":  "string",
                                                                                                                        "format":  "uuid"
                                                                                                                    },
                                                                                                         "required":  true
                                                                                                     }
                                                                                                 ],
                                                                                  "responses":  {
                                                                                                    "200":  {
                                                                                                                "content":  {
                                                                                                                                "application/json":  {
                                                                                                                                                         "schema":  {
                                                                                                                                                                        "properties":  {
                                                                                                                                                                                           "Message":  {
                                                                                                                                                                                                           "type":  "string"
                                                                                                                                                                                                       },
                                                                                                                                                                                           "TotalCount":  {
                                                                                                                                                                                                              "type":  "integer"
                                                                                                                                                                                                          },
                                                                                                                                                                                           "RefreshPage":  {
                                                                                                                                                                                                               "type":  "boolean"
                                                                                                                                                                                                           },
                                                                                                                                                                                           "Success":  {
                                                                                                                                                                                                           "type":  "boolean"
                                                                                                                                                                                                       },
                                                                                                                                                                                           "Payload":  {
                                                                                                                                                                                                           "oneOf":  [
                                                                                                                                                                                                                         {
                                                                                                                                                                                                                             "$ref":  "#/components/schemas/IssueInfo"
                                                                                                                                                                                                                         },
                                                                                                                                                                                                                         {
                                                                                                                                                                                                                             "type":  "string"
                                                                                                                                                                                                                         }
                                                                                                                                                                                                                     ],
                                                                                                                                                                                                           "nullable":  true
                                                                                                                                                                                                       }
                                                                                                                                                                                       },
                                                                                                                                                                        "type":  "object"
                                                                                                                                                                    }
                                                                                                                                                     }
                                                                                                                            },
                                                                                                                "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                            },
                                                                                                    "401":  {
                                                                                                                "description":  "Authentication or location access failed."
                                                                                                            },
                                                                                                    "403":  {
                                                                                                                "description":  "Integration scope, location grant, or context was denied."
                                                                                                            }
                                                                                                },
                                                                                  "x-api-group":  "Standard API key",
                                                                                  "x-resource-group":  "Issues",
                                                                                  "tags":  [
                                                                                               "Standard API key / Issues"
                                                                                           ],
                                                                                  "security":  [
                                                                                                   {
                                                                                                       "userApiKey":  [

                                                                                                                      ]
                                                                                                   },
                                                                                                   {
                                                                                                       "userToken":  [

                                                                                                                     ]
                                                                                                   },
                                                                                                   {
                                                                                                       "userCookie":  [

                                                                                                                      ]
                                                                                                   },
                                                                                                   {
                                                                                                       "integrationKey":  [

                                                                                                                          ]
                                                                                                   }
                                                                                               ]
                                                                              }
                                                                  },
                  "/api/location/{locationId}/issues/{issueId}/complete":  {
                                                                               "post":  {
                                                                                            "operationId":  "completeIssue",
                                                                                            "summary":  "Complete an issue",
                                                                                            "description":  "Integration-key scope: `issues.write`.  Authenticated users may also call this operation with the appropriate location permissions.",
                                                                                            "parameters":  [
                                                                                                               {
                                                                                                                   "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                                   "name":  "locationId",
                                                                                                                   "in":  "path",
                                                                                                                   "schema":  {
                                                                                                                                  "type":  "string",
                                                                                                                                  "format":  "uuid"
                                                                                                                              },
                                                                                                                   "required":  true
                                                                                                               },
                                                                                                               {
                                                                                                                   "description":  "Issue UUID.",
                                                                                                                   "name":  "issueId",
                                                                                                                   "in":  "path",
                                                                                                                   "schema":  {
                                                                                                                                  "type":  "string",
                                                                                                                                  "format":  "uuid"
                                                                                                                              },
                                                                                                                   "required":  true
                                                                                                               }
                                                                                                           ],
                                                                                            "responses":  {
                                                                                                              "200":  {
                                                                                                                          "content":  {
                                                                                                                                          "application/json":  {
                                                                                                                                                                   "schema":  {
                                                                                                                                                                                  "properties":  {
                                                                                                                                                                                                     "Message":  {
                                                                                                                                                                                                                     "type":  "string"
                                                                                                                                                                                                                 },
                                                                                                                                                                                                     "TotalCount":  {
                                                                                                                                                                                                                        "type":  "integer"
                                                                                                                                                                                                                    },
                                                                                                                                                                                                     "RefreshPage":  {
                                                                                                                                                                                                                         "type":  "boolean"
                                                                                                                                                                                                                     },
                                                                                                                                                                                                     "Success":  {
                                                                                                                                                                                                                     "type":  "boolean"
                                                                                                                                                                                                                 },
                                                                                                                                                                                                     "Payload":  {
                                                                                                                                                                                                                     "oneOf":  [
                                                                                                                                                                                                                                   {
                                                                                                                                                                                                                                       "$ref":  "#/components/schemas/Id"
                                                                                                                                                                                                                                   },
                                                                                                                                                                                                                                   {
                                                                                                                                                                                                                                       "type":  "string"
                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                               ],
                                                                                                                                                                                                                     "nullable":  true
                                                                                                                                                                                                                 }
                                                                                                                                                                                                 },
                                                                                                                                                                                  "type":  "object"
                                                                                                                                                                              }
                                                                                                                                                               }
                                                                                                                                      },
                                                                                                                          "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                                      },
                                                                                                              "401":  {
                                                                                                                          "description":  "Authentication or location access failed."
                                                                                                                      },
                                                                                                              "403":  {
                                                                                                                          "description":  "Integration scope, location grant, or context was denied."
                                                                                                                      }
                                                                                                          },
                                                                                            "x-api-group":  "Standard API key",
                                                                                            "x-resource-group":  "Issues",
                                                                                            "tags":  [
                                                                                                         "Standard API key / Issues"
                                                                                                     ],
                                                                                            "security":  [
                                                                                                             {
                                                                                                                 "userApiKey":  [

                                                                                                                                ]
                                                                                                             },
                                                                                                             {
                                                                                                                 "userToken":  [

                                                                                                                               ]
                                                                                                             },
                                                                                                             {
                                                                                                                 "userCookie":  [

                                                                                                                                ]
                                                                                                             },
                                                                                                             {
                                                                                                                 "integrationKey":  [

                                                                                                                                    ]
                                                                                                             }
                                                                                                         ]
                                                                                        }
                                                                           },
                  "/api/measurements/definitions":  {
                                                        "get":  {
                                                                    "operationId":  "listMeasurementDefinitions",
                                                                    "summary":  "List measurement definitions",
                                                                    "description":  "Integration-key scope: `measurements.read`.  Authenticated users may also call this operation with the appropriate location permissions.",
                                                                    "parameters":  [

                                                                                   ],
                                                                    "responses":  {
                                                                                      "200":  {
                                                                                                  "content":  {
                                                                                                                  "application/json":  {
                                                                                                                                           "schema":  {
                                                                                                                                                          "properties":  {
                                                                                                                                                                             "Message":  {
                                                                                                                                                                                             "type":  "string"
                                                                                                                                                                                         },
                                                                                                                                                                             "TotalCount":  {
                                                                                                                                                                                                "type":  "integer"
                                                                                                                                                                                            },
                                                                                                                                                                             "RefreshPage":  {
                                                                                                                                                                                                 "type":  "boolean"
                                                                                                                                                                                             },
                                                                                                                                                                             "Success":  {
                                                                                                                                                                                             "type":  "boolean"
                                                                                                                                                                                         },
                                                                                                                                                                             "Payload":  {
                                                                                                                                                                                             "oneOf":  [
                                                                                                                                                                                                           {
                                                                                                                                                                                                               "items":  {
                                                                                                                                                                                                                             "$ref":  "#/components/schemas/MeasurementDefinition"
                                                                                                                                                                                                                         },
                                                                                                                                                                                                               "type":  "array"
                                                                                                                                                                                                           },
                                                                                                                                                                                                           {
                                                                                                                                                                                                               "type":  "string"
                                                                                                                                                                                                           }
                                                                                                                                                                                                       ],
                                                                                                                                                                                             "nullable":  true
                                                                                                                                                                                         }
                                                                                                                                                                         },
                                                                                                                                                          "type":  "object"
                                                                                                                                                      }
                                                                                                                                       }
                                                                                                              },
                                                                                                  "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                              },
                                                                                      "401":  {
                                                                                                  "description":  "Authentication or location access failed."
                                                                                              },
                                                                                      "403":  {
                                                                                                  "description":  "Integration scope, location grant, or context was denied."
                                                                                              }
                                                                                  },
                                                                    "x-api-group":  "Standard API key",
                                                                    "x-resource-group":  "Measurements",
                                                                    "tags":  [
                                                                                 "Standard API key / Measurements"
                                                                             ],
                                                                    "security":  [
                                                                                     {
                                                                                         "userApiKey":  [

                                                                                                        ]
                                                                                     },
                                                                                     {
                                                                                         "userToken":  [

                                                                                                       ]
                                                                                     },
                                                                                     {
                                                                                         "userCookie":  [

                                                                                                        ]
                                                                                     },
                                                                                     {
                                                                                         "integrationKey":  [

                                                                                                            ]
                                                                                     }
                                                                                 ]
                                                                }
                                                    },
                  "/locations/{locationId}/measurements/{measurementType}/latest":  {
                                                                                        "get":  {
                                                                                                    "operationId":  "getLatestMeasurement",
                                                                                                    "summary":  "Get the latest measurement",
                                                                                                    "description":  "Integration-key scope: `measurements.read`. Returns HTTP 404 when absent. Authenticated users may also call this operation with the appropriate location permissions.",
                                                                                                    "parameters":  [
                                                                                                                       {
                                                                                                                           "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                                           "name":  "locationId",
                                                                                                                           "in":  "path",
                                                                                                                           "schema":  {
                                                                                                                                          "type":  "string",
                                                                                                                                          "format":  "uuid"
                                                                                                                                      },
                                                                                                                           "required":  true
                                                                                                                       },
                                                                                                                       {
                                                                                                                           "description":  "Measurement type code.",
                                                                                                                           "name":  "measurementType",
                                                                                                                           "in":  "path",
                                                                                                                           "schema":  {
                                                                                                                                          "type":  "string"
                                                                                                                                      },
                                                                                                                           "required":  true
                                                                                                                       }
                                                                                                                   ],
                                                                                                    "responses":  {
                                                                                                                      "200":  {
                                                                                                                                  "content":  {
                                                                                                                                                  "application/json":  {
                                                                                                                                                                           "schema":  {
                                                                                                                                                                                          "properties":  {
                                                                                                                                                                                                             "Message":  {
                                                                                                                                                                                                                             "type":  "string"
                                                                                                                                                                                                                         },
                                                                                                                                                                                                             "TotalCount":  {
                                                                                                                                                                                                                                "type":  "integer"
                                                                                                                                                                                                                            },
                                                                                                                                                                                                             "RefreshPage":  {
                                                                                                                                                                                                                                 "type":  "boolean"
                                                                                                                                                                                                                             },
                                                                                                                                                                                                             "Success":  {
                                                                                                                                                                                                                             "type":  "boolean"
                                                                                                                                                                                                                         },
                                                                                                                                                                                                             "Payload":  {
                                                                                                                                                                                                                             "oneOf":  [
                                                                                                                                                                                                                                           {
                                                                                                                                                                                                                                               "$ref":  "#/components/schemas/Measurement"
                                                                                                                                                                                                                                           },
                                                                                                                                                                                                                                           {
                                                                                                                                                                                                                                               "type":  "string"
                                                                                                                                                                                                                                           }
                                                                                                                                                                                                                                       ],
                                                                                                                                                                                                                             "nullable":  true
                                                                                                                                                                                                                         }
                                                                                                                                                                                                         },
                                                                                                                                                                                          "type":  "object"
                                                                                                                                                                                      }
                                                                                                                                                                       }
                                                                                                                                              },
                                                                                                                                  "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                                              },
                                                                                                                      "401":  {
                                                                                                                                  "description":  "Authentication or location access failed."
                                                                                                                              },
                                                                                                                      "403":  {
                                                                                                                                  "description":  "Integration scope, location grant, or context was denied."
                                                                                                                              },
                                                                                                                      "404":  {
                                                                                                                                  "description":  "The requested record was not found."
                                                                                                                              }
                                                                                                                  },
                                                                                                    "x-api-group":  "Standard API key",
                                                                                                    "x-resource-group":  "Measurements",
                                                                                                    "tags":  [
                                                                                                                 "Standard API key / Measurements"
                                                                                                             ],
                                                                                                    "security":  [
                                                                                                                     {
                                                                                                                         "userApiKey":  [

                                                                                                                                        ]
                                                                                                                     },
                                                                                                                     {
                                                                                                                         "userToken":  [

                                                                                                                                       ]
                                                                                                                     },
                                                                                                                     {
                                                                                                                         "userCookie":  [

                                                                                                                                        ]
                                                                                                                     },
                                                                                                                     {
                                                                                                                         "integrationKey":  [

                                                                                                                                            ]
                                                                                                                     }
                                                                                                                 ]
                                                                                                }
                                                                                    },
                  "/locations/{locationId}/measurements/{measurementType}/list":  {
                                                                                      "get":  {
                                                                                                  "operationId":  "listMeasurements",
                                                                                                  "summary":  "List measurements",
                                                                                                  "description":  "Integration-key scope: `measurements.read`. TotalCount is the count returned in this page. Authenticated users may also call this operation with the appropriate location permissions.",
                                                                                                  "parameters":  [
                                                                                                                     {
                                                                                                                         "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                                         "name":  "locationId",
                                                                                                                         "in":  "path",
                                                                                                                         "schema":  {
                                                                                                                                        "type":  "string",
                                                                                                                                        "format":  "uuid"
                                                                                                                                    },
                                                                                                                         "required":  true
                                                                                                                     },
                                                                                                                     {
                                                                                                                         "description":  "Measurement type code.",
                                                                                                                         "name":  "measurementType",
                                                                                                                         "in":  "path",
                                                                                                                         "schema":  {
                                                                                                                                        "type":  "string"
                                                                                                                                    },
                                                                                                                         "required":  true
                                                                                                                     },
                                                                                                                     {
                                                                                                                         "description":  "Page size.",
                                                                                                                         "name":  "take",
                                                                                                                         "in":  "query",
                                                                                                                         "schema":  {
                                                                                                                                        "default":  100,
                                                                                                                                        "type":  "integer"
                                                                                                                                    },
                                                                                                                         "required":  false
                                                                                                                     },
                                                                                                                     {
                                                                                                                         "description":  "Offset.",
                                                                                                                         "name":  "skip",
                                                                                                                         "in":  "query",
                                                                                                                         "schema":  {
                                                                                                                                        "default":  0,
                                                                                                                                        "type":  "integer"
                                                                                                                                    },
                                                                                                                         "required":  false
                                                                                                                     }
                                                                                                                 ],
                                                                                                  "responses":  {
                                                                                                                    "200":  {
                                                                                                                                "content":  {
                                                                                                                                                "application/json":  {
                                                                                                                                                                         "schema":  {
                                                                                                                                                                                        "properties":  {
                                                                                                                                                                                                           "Message":  {
                                                                                                                                                                                                                           "type":  "string"
                                                                                                                                                                                                                       },
                                                                                                                                                                                                           "TotalCount":  {
                                                                                                                                                                                                                              "type":  "integer"
                                                                                                                                                                                                                          },
                                                                                                                                                                                                           "RefreshPage":  {
                                                                                                                                                                                                                               "type":  "boolean"
                                                                                                                                                                                                                           },
                                                                                                                                                                                                           "Success":  {
                                                                                                                                                                                                                           "type":  "boolean"
                                                                                                                                                                                                                       },
                                                                                                                                                                                                           "Payload":  {
                                                                                                                                                                                                                           "oneOf":  [
                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                             "items":  {
                                                                                                                                                                                                                                                           "$ref":  "#/components/schemas/Measurement"
                                                                                                                                                                                                                                                       },
                                                                                                                                                                                                                                             "type":  "array"
                                                                                                                                                                                                                                         },
                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                             "type":  "string"
                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                     ],
                                                                                                                                                                                                                           "nullable":  true
                                                                                                                                                                                                                       }
                                                                                                                                                                                                       },
                                                                                                                                                                                        "type":  "object"
                                                                                                                                                                                    }
                                                                                                                                                                     }
                                                                                                                                            },
                                                                                                                                "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                                            },
                                                                                                                    "401":  {
                                                                                                                                "description":  "Authentication or location access failed."
                                                                                                                            },
                                                                                                                    "403":  {
                                                                                                                                "description":  "Integration scope, location grant, or context was denied."
                                                                                                                            }
                                                                                                                },
                                                                                                  "x-api-group":  "Standard API key",
                                                                                                  "x-resource-group":  "Measurements",
                                                                                                  "tags":  [
                                                                                                               "Standard API key / Measurements"
                                                                                                           ],
                                                                                                  "security":  [
                                                                                                                   {
                                                                                                                       "userApiKey":  [

                                                                                                                                      ]
                                                                                                                   },
                                                                                                                   {
                                                                                                                       "userToken":  [

                                                                                                                                     ]
                                                                                                                   },
                                                                                                                   {
                                                                                                                       "userCookie":  [

                                                                                                                                      ]
                                                                                                                   },
                                                                                                                   {
                                                                                                                       "integrationKey":  [

                                                                                                                                          ]
                                                                                                                   }
                                                                                                               ]
                                                                                              }
                                                                                  },
                  "/locations/{locationId}/measurements/{measurementType}":  {
                                                                                 "post":  {
                                                                                              "operationId":  "createMeasurement",
                                                                                              "summary":  "Create a measurement",
                                                                                              "description":  "Integration-key scope: `measurements.write`. The route determines location and type. Source defaults to direct. Authenticated users may also call this operation with the appropriate location permissions.",
                                                                                              "parameters":  [
                                                                                                                 {
                                                                                                                     "description":  "Location UUID; the integration must have a grant for this location.",
                                                                                                                     "name":  "locationId",
                                                                                                                     "in":  "path",
                                                                                                                     "schema":  {
                                                                                                                                    "type":  "string",
                                                                                                                                    "format":  "uuid"
                                                                                                                                },
                                                                                                                     "required":  true
                                                                                                                 },
                                                                                                                 {
                                                                                                                     "description":  "Measurement type code.",
                                                                                                                     "name":  "measurementType",
                                                                                                                     "in":  "path",
                                                                                                                     "schema":  {
                                                                                                                                    "type":  "string"
                                                                                                                                },
                                                                                                                     "required":  true
                                                                                                                 }
                                                                                                             ],
                                                                                              "responses":  {
                                                                                                                "200":  {
                                                                                                                            "content":  {
                                                                                                                                            "application/json":  {
                                                                                                                                                                     "schema":  {
                                                                                                                                                                                    "properties":  {
                                                                                                                                                                                                       "Message":  {
                                                                                                                                                                                                                       "type":  "string"
                                                                                                                                                                                                                   },
                                                                                                                                                                                                       "TotalCount":  {
                                                                                                                                                                                                                          "type":  "integer"
                                                                                                                                                                                                                      },
                                                                                                                                                                                                       "RefreshPage":  {
                                                                                                                                                                                                                           "type":  "boolean"
                                                                                                                                                                                                                       },
                                                                                                                                                                                                       "Success":  {
                                                                                                                                                                                                                       "type":  "boolean"
                                                                                                                                                                                                                   },
                                                                                                                                                                                                       "Payload":  {
                                                                                                                                                                                                                       "oneOf":  [
                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                         "$ref":  "#/components/schemas/Measurement"
                                                                                                                                                                                                                                     },
                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                         "type":  "string"
                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                 ],
                                                                                                                                                                                                                       "nullable":  true
                                                                                                                                                                                                                   }
                                                                                                                                                                                                   },
                                                                                                                                                                                    "type":  "object"
                                                                                                                                                                                }
                                                                                                                                                                 }
                                                                                                                                        },
                                                                                                                            "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                                                        },
                                                                                                                "401":  {
                                                                                                                            "description":  "Authentication or location access failed."
                                                                                                                        },
                                                                                                                "403":  {
                                                                                                                            "description":  "Integration scope, location grant, or context was denied."
                                                                                                                        }
                                                                                                            },
                                                                                              "requestBody":  {
                                                                                                                  "content":  {
                                                                                                                                  "application/json":  {
                                                                                                                                                           "schema":  {
                                                                                                                                                                          "$ref":  "#/components/schemas/MeasurementCreate"
                                                                                                                                                                      }
                                                                                                                                                       }
                                                                                                                              },
                                                                                                                  "required":  true
                                                                                                              },
                                                                                              "x-api-group":  "Standard API key",
                                                                                              "x-resource-group":  "Measurements",
                                                                                              "tags":  [
                                                                                                           "Standard API key / Measurements"
                                                                                                       ],
                                                                                              "security":  [
                                                                                                               {
                                                                                                                   "userApiKey":  [

                                                                                                                                  ]
                                                                                                               },
                                                                                                               {
                                                                                                                   "userToken":  [

                                                                                                                                 ]
                                                                                                               },
                                                                                                               {
                                                                                                                   "userCookie":  [

                                                                                                                                  ]
                                                                                                               },
                                                                                                               {
                                                                                                                   "integrationKey":  [

                                                                                                                                      ]
                                                                                                               }
                                                                                                           ]
                                                                                          }
                                                                             },
                  "/api/user/locations":  {
                                              "get":  {
                                                          "operationId":  "listUserLocations",
                                                          "summary":  "List user locations",
                                                          "description":  "Requires an authenticated user and applicable location permissions. Returns locations available to the authenticated user.",
                                                          "parameters":  [

                                                                         ],
                                                          "responses":  {
                                                                            "200":  {
                                                                                        "content":  {
                                                                                                        "application/json":  {
                                                                                                                                 "schema":  {
                                                                                                                                                "properties":  {
                                                                                                                                                                   "Message":  {
                                                                                                                                                                                   "type":  "string"
                                                                                                                                                                               },
                                                                                                                                                                   "TotalCount":  {
                                                                                                                                                                                      "type":  "integer"
                                                                                                                                                                                  },
                                                                                                                                                                   "RefreshPage":  {
                                                                                                                                                                                       "type":  "boolean"
                                                                                                                                                                                   },
                                                                                                                                                                   "Success":  {
                                                                                                                                                                                   "type":  "boolean"
                                                                                                                                                                               },
                                                                                                                                                                   "Payload":  {
                                                                                                                                                                                   "oneOf":  [
                                                                                                                                                                                                 {
                                                                                                                                                                                                     "items":  {
                                                                                                                                                                                                                   "$ref":  "#/components/schemas/Location"
                                                                                                                                                                                                               },
                                                                                                                                                                                                     "type":  "array"
                                                                                                                                                                                                 },
                                                                                                                                                                                                 {
                                                                                                                                                                                                     "type":  "string"
                                                                                                                                                                                                 }
                                                                                                                                                                                             ],
                                                                                                                                                                                   "nullable":  true
                                                                                                                                                                               }
                                                                                                                                                               },
                                                                                                                                                "type":  "object"
                                                                                                                                            }
                                                                                                                             }
                                                                                                    },
                                                                                        "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                    },
                                                                            "401":  {
                                                                                        "description":  "Authentication or location access failed."
                                                                                    },
                                                                            "403":  {
                                                                                        "description":  "Integration scope, location grant, or context was denied."
                                                                                    }
                                                                        },
                                                          "security":  [
                                                                           {
                                                                               "userApiKey":  [

                                                                                              ]
                                                                           },
                                                                           {
                                                                               "userToken":  [

                                                                                             ]
                                                                           },
                                                                           {
                                                                               "userCookie":  [

                                                                                              ]
                                                                           }
                                                                       ],
                                                          "x-api-group":  "Standard API key",
                                                          "x-resource-group":  "Locations",
                                                          "tags":  [
                                                                       "Standard API key / Locations"
                                                                   ]
                                                      }
                                          },
                  "/api/equipment":  {
                                         "get":  {
                                                     "operationId":  "listEquipment",
                                                     "summary":  "List equipment",
                                                     "description":  "Requires an authenticated user and applicable location permissions. A location is required, either explicitly or in the user session.",
                                                     "parameters":  [
                                                                        {
                                                                            "description":  "Location UUID; defaults to the current user location.",
                                                                            "name":  "locationId",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "type":  "string",
                                                                                           "format":  "uuid"
                                                                                       },
                                                                            "required":  false
                                                                        },
                                                                        {
                                                                            "description":  "Optional equipment category UUID.",
                                                                            "name":  "categoryId",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "type":  "string",
                                                                                           "format":  "uuid"
                                                                                       },
                                                                            "required":  false
                                                                        },
                                                                        {
                                                                            "description":  "Optional manufacturer UUID.",
                                                                            "name":  "manufacturerId",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "type":  "string",
                                                                                           "format":  "uuid"
                                                                                       },
                                                                            "required":  false
                                                                        }
                                                                    ],
                                                     "responses":  {
                                                                       "200":  {
                                                                                   "content":  {
                                                                                                   "application/json":  {
                                                                                                                            "schema":  {
                                                                                                                                           "properties":  {
                                                                                                                                                              "Message":  {
                                                                                                                                                                              "type":  "string"
                                                                                                                                                                          },
                                                                                                                                                              "TotalCount":  {
                                                                                                                                                                                 "type":  "integer"
                                                                                                                                                                             },
                                                                                                                                                              "RefreshPage":  {
                                                                                                                                                                                  "type":  "boolean"
                                                                                                                                                                              },
                                                                                                                                                              "Success":  {
                                                                                                                                                                              "type":  "boolean"
                                                                                                                                                                          },
                                                                                                                                                              "Payload":  {
                                                                                                                                                                              "oneOf":  [
                                                                                                                                                                                            {
                                                                                                                                                                                                "items":  {
                                                                                                                                                                                                              "$ref":  "#/components/schemas/Equipment"
                                                                                                                                                                                                          },
                                                                                                                                                                                                "type":  "array"
                                                                                                                                                                                            },
                                                                                                                                                                                            {
                                                                                                                                                                                                "type":  "string"
                                                                                                                                                                                            }
                                                                                                                                                                                        ],
                                                                                                                                                                              "nullable":  true
                                                                                                                                                                          }
                                                                                                                                                          },
                                                                                                                                           "type":  "object"
                                                                                                                                       }
                                                                                                                        }
                                                                                               },
                                                                                   "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                               },
                                                                       "401":  {
                                                                                   "description":  "Authentication or location access failed."
                                                                               },
                                                                       "403":  {
                                                                                   "description":  "Integration scope, location grant, or context was denied."
                                                                               }
                                                                   },
                                                     "security":  [
                                                                      {
                                                                          "userApiKey":  [

                                                                                         ]
                                                                      },
                                                                      {
                                                                          "userToken":  [

                                                                                        ]
                                                                      },
                                                                      {
                                                                          "userCookie":  [

                                                                                         ]
                                                                      }
                                                                  ],
                                                     "x-api-group":  "Standard API key",
                                                     "x-resource-group":  "Equipment",
                                                     "tags":  [
                                                                  "Standard API key / Equipment"
                                                              ]
                                                 }
                                     },
                  "/api/equipment/details":  {
                                                 "get":  {
                                                             "operationId":  "getEquipmentDetails",
                                                             "summary":  "Get equipment details",
                                                             "description":  "Requires an authenticated user and applicable location permissions. ",
                                                             "parameters":  [
                                                                                {
                                                                                    "name":  "equipmentId",
                                                                                    "description":  "Equipment UUID.",
                                                                                    "in":  "query",
                                                                                    "schema":  {
                                                                                                   "type":  "string",
                                                                                                   "format":  "uuid"
                                                                                               },
                                                                                    "required":  true
                                                                                }
                                                                            ],
                                                             "responses":  {
                                                                               "200":  {
                                                                                           "content":  {
                                                                                                           "application/json":  {
                                                                                                                                    "schema":  {
                                                                                                                                                   "properties":  {
                                                                                                                                                                      "Message":  {
                                                                                                                                                                                      "type":  "string"
                                                                                                                                                                                  },
                                                                                                                                                                      "TotalCount":  {
                                                                                                                                                                                         "type":  "integer"
                                                                                                                                                                                     },
                                                                                                                                                                      "RefreshPage":  {
                                                                                                                                                                                          "type":  "boolean"
                                                                                                                                                                                      },
                                                                                                                                                                      "Success":  {
                                                                                                                                                                                      "type":  "boolean"
                                                                                                                                                                                  },
                                                                                                                                                                      "Payload":  {
                                                                                                                                                                                      "oneOf":  [
                                                                                                                                                                                                    {
                                                                                                                                                                                                        "$ref":  "#/components/schemas/EquipmentDetails"
                                                                                                                                                                                                    },
                                                                                                                                                                                                    {
                                                                                                                                                                                                        "type":  "string"
                                                                                                                                                                                                    }
                                                                                                                                                                                                ],
                                                                                                                                                                                      "nullable":  true
                                                                                                                                                                                  }
                                                                                                                                                                  },
                                                                                                                                                   "type":  "object"
                                                                                                                                               }
                                                                                                                                }
                                                                                                       },
                                                                                           "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                       },
                                                                               "401":  {
                                                                                           "description":  "Authentication or location access failed."
                                                                                       },
                                                                               "403":  {
                                                                                           "description":  "Integration scope, location grant, or context was denied."
                                                                                       }
                                                                           },
                                                             "security":  [
                                                                              {
                                                                                  "userApiKey":  [

                                                                                                 ]
                                                                              },
                                                                              {
                                                                                  "userToken":  [

                                                                                                ]
                                                                              },
                                                                              {
                                                                                  "userCookie":  [

                                                                                                 ]
                                                                              }
                                                                          ],
                                                             "x-api-group":  "Standard API key",
                                                             "x-resource-group":  "Equipment",
                                                             "tags":  [
                                                                          "Standard API key / Equipment"
                                                                      ]
                                                         }
                                             },
                  "/api/component":  {
                                         "get":  {
                                                     "operationId":  "listEquipmentComponents",
                                                     "summary":  "List components for equipment",
                                                     "description":  "Requires an authenticated user and applicable location permissions. ",
                                                     "parameters":  [
                                                                        {
                                                                            "name":  "equipmentId",
                                                                            "description":  "Equipment UUID.",
                                                                            "in":  "query",
                                                                            "schema":  {
                                                                                           "type":  "string",
                                                                                           "format":  "uuid"
                                                                                       },
                                                                            "required":  true
                                                                        }
                                                                    ],
                                                     "responses":  {
                                                                       "200":  {
                                                                                   "content":  {
                                                                                                   "application/json":  {
                                                                                                                            "schema":  {
                                                                                                                                           "properties":  {
                                                                                                                                                              "Message":  {
                                                                                                                                                                              "type":  "string"
                                                                                                                                                                          },
                                                                                                                                                              "TotalCount":  {
                                                                                                                                                                                 "type":  "integer"
                                                                                                                                                                             },
                                                                                                                                                              "RefreshPage":  {
                                                                                                                                                                                  "type":  "boolean"
                                                                                                                                                                              },
                                                                                                                                                              "Success":  {
                                                                                                                                                                              "type":  "boolean"
                                                                                                                                                                          },
                                                                                                                                                              "Payload":  {
                                                                                                                                                                              "oneOf":  [
                                                                                                                                                                                            {
                                                                                                                                                                                                "items":  {
                                                                                                                                                                                                              "$ref":  "#/components/schemas/Component"
                                                                                                                                                                                                          },
                                                                                                                                                                                                "type":  "array"
                                                                                                                                                                                            },
                                                                                                                                                                                            {
                                                                                                                                                                                                "type":  "string"
                                                                                                                                                                                            }
                                                                                                                                                                                        ],
                                                                                                                                                                              "nullable":  true
                                                                                                                                                                          }
                                                                                                                                                          },
                                                                                                                                           "type":  "object"
                                                                                                                                       }
                                                                                                                        }
                                                                                               },
                                                                                   "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                               },
                                                                       "401":  {
                                                                                   "description":  "Authentication or location access failed."
                                                                               },
                                                                       "403":  {
                                                                                   "description":  "Integration scope, location grant, or context was denied."
                                                                               }
                                                                   },
                                                     "security":  [
                                                                      {
                                                                          "userApiKey":  [

                                                                                         ]
                                                                      },
                                                                      {
                                                                          "userToken":  [

                                                                                        ]
                                                                      },
                                                                      {
                                                                          "userCookie":  [

                                                                                         ]
                                                                      }
                                                                  ],
                                                     "x-api-group":  "Standard API key",
                                                     "x-resource-group":  "Components",
                                                     "tags":  [
                                                                  "Standard API key / Components"
                                                              ]
                                                 }
                                     },
                  "/api/component/details":  {
                                                 "get":  {
                                                             "operationId":  "getComponentDetails",
                                                             "summary":  "Get component details",
                                                             "description":  "Requires an authenticated user and applicable location permissions. ",
                                                             "parameters":  [
                                                                                {
                                                                                    "name":  "componentId",
                                                                                    "description":  "Component UUID.",
                                                                                    "in":  "query",
                                                                                    "schema":  {
                                                                                                   "type":  "string",
                                                                                                   "format":  "uuid"
                                                                                               },
                                                                                    "required":  true
                                                                                }
                                                                            ],
                                                             "responses":  {
                                                                               "200":  {
                                                                                           "content":  {
                                                                                                           "application/json":  {
                                                                                                                                    "schema":  {
                                                                                                                                                   "properties":  {
                                                                                                                                                                      "Message":  {
                                                                                                                                                                                      "type":  "string"
                                                                                                                                                                                  },
                                                                                                                                                                      "TotalCount":  {
                                                                                                                                                                                         "type":  "integer"
                                                                                                                                                                                     },
                                                                                                                                                                      "RefreshPage":  {
                                                                                                                                                                                          "type":  "boolean"
                                                                                                                                                                                      },
                                                                                                                                                                      "Success":  {
                                                                                                                                                                                      "type":  "boolean"
                                                                                                                                                                                  },
                                                                                                                                                                      "Payload":  {
                                                                                                                                                                                      "oneOf":  [
                                                                                                                                                                                                    {
                                                                                                                                                                                                        "$ref":  "#/components/schemas/ComponentDetails"
                                                                                                                                                                                                    },
                                                                                                                                                                                                    {
                                                                                                                                                                                                        "type":  "string"
                                                                                                                                                                                                    }
                                                                                                                                                                                                ],
                                                                                                                                                                                      "nullable":  true
                                                                                                                                                                                  }
                                                                                                                                                                  },
                                                                                                                                                   "type":  "object"
                                                                                                                                               }
                                                                                                                                }
                                                                                                       },
                                                                                           "description":  "JSON result. Check Success and Message even when HTTP status is 200."
                                                                                       },
                                                                               "401":  {
                                                                                           "description":  "Authentication or location access failed."
                                                                                       },
                                                                               "403":  {
                                                                                           "description":  "Integration scope, location grant, or context was denied."
                                                                                       }
                                                                           },
                                                             "security":  [
                                                                              {
                                                                                  "userApiKey":  [

                                                                                                 ]
                                                                              },
                                                                              {
                                                                                  "userToken":  [

                                                                                                ]
                                                                              },
                                                                              {
                                                                                  "userCookie":  [

                                                                                                 ]
                                                                              }
                                                                          ],
                                                             "x-api-group":  "Standard API key",
                                                             "x-resource-group":  "Components",
                                                             "tags":  [
                                                                          "Standard API key / Components"
                                                                      ]
                                                         }
                                             }
              },
    "components":  {
                       "securitySchemes":  {
                                               "integrationKey":  {
                                                                      "description":  "Authorization: X-Wash-Integration-Key \u003cprovider key\u003e",
                                                                      "name":  "Authorization",
                                                                      "in":  "header",
                                                                      "type":  "apiKey"
                                                                  },
                                               "userApiKey":  {
                                                                  "description":  "Authorization: ApiKey \u003cuser API key\u003e",
                                                                  "name":  "Authorization",
                                                                  "in":  "header",
                                                                  "type":  "apiKey"
                                                              },
                                               "userToken":  {
                                                                 "scheme":  "bearer",
                                                                 "description":  "Authorization: Bearer \u003cuser token\u003e",
                                                                 "type":  "http"
                                                             },
                                               "userCookie":  {
                                                                  "description":  "Signed-in application user cookie.",
                                                                  "name":  ".AspNet.ApplicationCookie",
                                                                  "in":  "cookie",
                                                                  "type":  "apiKey"
                                                              }
                                           },
                       "schemas":  {
                                       "Id":  {
                                                  "properties":  {
                                                                     "Id":  {
                                                                                "type":  "string",
                                                                                "format":  "uuid"
                                                                            }
                                                                 },
                                                  "type":  "object"
                                              },
                                       "Equipment":  {
                                                         "properties":  {
                                                                            "Id":  {
                                                                                       "type":  "string",
                                                                                       "format":  "uuid"
                                                                                   },
                                                                            "Manufacturer":  {
                                                                                                 "nullable":  true,
                                                                                                 "type":  "string"
                                                                                             },
                                                                            "LocationId":  {
                                                                                               "nullable":  true,
                                                                                               "type":  "string"
                                                                                           },
                                                                            "Name":  {
                                                                                         "nullable":  true,
                                                                                         "type":  "string"
                                                                                     },
                                                                            "CategoryName":  {
                                                                                                 "nullable":  true,
                                                                                                 "type":  "string"
                                                                                             },
                                                                            "Description":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                            "Model":  {
                                                                                          "nullable":  true,
                                                                                          "type":  "string"
                                                                                      },
                                                                            "LocationName":  {
                                                                                                 "nullable":  true,
                                                                                                 "type":  "string"
                                                                                             }
                                                                        },
                                                         "type":  "object"
                                                     },
                                       "ComponentDetails":  {
                                                                "properties":  {
                                                                                   "ManufacturerName":  {
                                                                                                            "nullable":  true,
                                                                                                            "type":  "string"
                                                                                                        },
                                                                                   "Name":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                   "ImageUrl":  {
                                                                                                    "nullable":  true,
                                                                                                    "type":  "string"
                                                                                                },
                                                                                   "InstallDate":  {
                                                                                                       "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601.",
                                                                                                       "type":  "string",
                                                                                                       "nullable":  true
                                                                                                   },
                                                                                   "Description":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                   "SerialNumber":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                   "ComponentType":  {
                                                                                                         "nullable":  true,
                                                                                                         "type":  "string"
                                                                                                     }
                                                                               },
                                                                "type":  "object"
                                                            },
                                       "IncidentDetails":  {
                                                               "properties":  {
                                                                                  "Id":  {
                                                                                             "type":  "string",
                                                                                             "format":  "uuid"
                                                                                         },
                                                                                  "CustomerEmail":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                  "IncidentArea":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "StateName":  {
                                                                                                    "nullable":  true,
                                                                                                    "type":  "string"
                                                                                                },
                                                                                  "CreatedDate":  {
                                                                                                      "type":  "string",
                                                                                                      "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601."
                                                                                                  },
                                                                                  "CustomerInternalId":  {
                                                                                                             "nullable":  true,
                                                                                                             "type":  "string"
                                                                                                         },
                                                                                  "CustomerAddress":  {
                                                                                                          "$ref":  "#/components/schemas/IncidentAddress"
                                                                                                      },
                                                                                  "LocationName":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "RelatedContacts":  {
                                                                                                          "items":  {
                                                                                                                        "$ref":  "#/components/schemas/IncidentContact"
                                                                                                                    },
                                                                                                          "type":  "array"
                                                                                                      },
                                                                                  "IncidentDate":  {
                                                                                                       "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601.",
                                                                                                       "type":  "string",
                                                                                                       "nullable":  true
                                                                                                   },
                                                                                  "Vehicle":  {
                                                                                                  "$ref":  "#/components/schemas/IncidentVehicle"
                                                                                              },
                                                                                  "EquipmentId":  {
                                                                                                      "format":  "uuid",
                                                                                                      "type":  "string",
                                                                                                      "nullable":  true
                                                                                                  },
                                                                                  "CustomerName":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "ResolutionDescription":  {
                                                                                                                "nullable":  true,
                                                                                                                "type":  "string"
                                                                                                            },
                                                                                  "OwnerId":  {
                                                                                                  "format":  "uuid",
                                                                                                  "type":  "string",
                                                                                                  "nullable":  true
                                                                                              },
                                                                                  "CustomerDescription":  {
                                                                                                              "nullable":  true,
                                                                                                              "type":  "string"
                                                                                                          },
                                                                                  "OwnerName":  {
                                                                                                    "nullable":  true,
                                                                                                    "type":  "string"
                                                                                                },
                                                                                  "ModifiedDate":  {
                                                                                                       "type":  "string",
                                                                                                       "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601."
                                                                                                   },
                                                                                  "State":  {
                                                                                                "type":  "integer"
                                                                                            },
                                                                                  "IncidentType":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "CustomerMobile":  {
                                                                                                         "nullable":  true,
                                                                                                         "type":  "string"
                                                                                                     },
                                                                                  "LocationId":  {
                                                                                                     "type":  "string",
                                                                                                     "format":  "uuid"
                                                                                                 },
                                                                                  "ResolutionType":  {
                                                                                                         "type":  "integer"
                                                                                                     },
                                                                                  "EquipmentName":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                  "InternalDescription":  {
                                                                                                              "nullable":  true,
                                                                                                              "type":  "string"
                                                                                                          },
                                                                                  "CustomerPhone":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    }
                                                                              },
                                                               "type":  "object"
                                                           },
                                       "Context":  {
                                                       "properties":  {
                                                                          "ClientName":  {
                                                                                             "nullable":  true,
                                                                                             "type":  "string"
                                                                                         },
                                                                          "Name":  {
                                                                                       "nullable":  true,
                                                                                       "type":  "string"
                                                                                   },
                                                                          "Type":  {
                                                                                       "nullable":  true,
                                                                                       "type":  "string"
                                                                                   },
                                                                          "ContextKey":  {
                                                                                             "nullable":  true,
                                                                                             "type":  "string"
                                                                                         }
                                                                      },
                                                       "type":  "object"
                                                   },
                                       "IssueCreate":  {
                                                           "properties":  {
                                                                              "Priority":  {
                                                                                               "maximum":  4,
                                                                                               "type":  "integer",
                                                                                               "minimum":  0
                                                                                           },
                                                                              "Description":  {
                                                                                                  "type":  "string"
                                                                                              },
                                                                              "ComponentId":  {
                                                                                                  "type":  "string",
                                                                                                  "format":  "uuid"
                                                                                              },
                                                                              "EquipmentId":  {
                                                                                                  "type":  "string",
                                                                                                  "format":  "uuid"
                                                                                              }
                                                                          },
                                                           "type":  "object",
                                                           "required":  [
                                                                            "Description"
                                                                        ]
                                                       },
                                       "IncidentVehicle":  {
                                                               "properties":  {
                                                                                  "Plate":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                  "Color":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                  "VehicleIdNumber":  {
                                                                                                          "nullable":  true,
                                                                                                          "type":  "string"
                                                                                                      },
                                                                                  "Make":  {
                                                                                               "nullable":  true,
                                                                                               "type":  "string"
                                                                                           },
                                                                                  "Model":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                  "ModelYear":  {
                                                                                                    "type":  "integer"
                                                                                                },
                                                                                  "Mileage":  {
                                                                                                  "type":  "number"
                                                                                              }
                                                                              },
                                                               "type":  "object"
                                                           },
                                       "Measurement":  {
                                                           "properties":  {
                                                                              "ChecklistId":  {
                                                                                                  "format":  "uuid",
                                                                                                  "type":  "string",
                                                                                                  "nullable":  true
                                                                                              },
                                                                              "Id":  {
                                                                                         "type":  "string",
                                                                                         "format":  "uuid"
                                                                                     },
                                                                              "Type":  {
                                                                                           "nullable":  true,
                                                                                           "type":  "string"
                                                                                       },
                                                                              "CreatedAt":  {
                                                                                                "type":  "string",
                                                                                                "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601."
                                                                                            },
                                                                              "Name":  {
                                                                                           "nullable":  true,
                                                                                           "type":  "string"
                                                                                       },
                                                                              "Value":  {
                                                                                            "type":  "number"
                                                                                        },
                                                                              "MeasurementDefinitionId":  {
                                                                                                              "format":  "uuid",
                                                                                                              "type":  "string",
                                                                                                              "nullable":  true
                                                                                                          },
                                                                              "ChecklistInstanceId":  {
                                                                                                          "format":  "uuid",
                                                                                                          "type":  "string",
                                                                                                          "nullable":  true
                                                                                                      },
                                                                              "TaskId":  {
                                                                                             "format":  "uuid",
                                                                                             "type":  "string",
                                                                                             "nullable":  true
                                                                                         },
                                                                              "Unit":  {
                                                                                           "nullable":  true,
                                                                                           "type":  "string"
                                                                                       },
                                                                              "LocationId":  {
                                                                                                 "type":  "string",
                                                                                                 "format":  "uuid"
                                                                                             },
                                                                              "Source":  {
                                                                                             "nullable":  true,
                                                                                             "type":  "string"
                                                                                         },
                                                                              "TaskHistoryId":  {
                                                                                                    "format":  "uuid",
                                                                                                    "type":  "string",
                                                                                                    "nullable":  true
                                                                                                }
                                                                          },
                                                           "type":  "object"
                                                       },
                                       "IncidentSummary":  {
                                                               "properties":  {
                                                                                  "StateName":  {
                                                                                                    "nullable":  true,
                                                                                                    "type":  "string"
                                                                                                },
                                                                                  "Id":  {
                                                                                             "type":  "string",
                                                                                             "format":  "uuid"
                                                                                         },
                                                                                  "LocationId":  {
                                                                                                     "type":  "string",
                                                                                                     "format":  "uuid"
                                                                                                 },
                                                                                  "IncidentArea":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "IncidentDate":  {
                                                                                                       "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601.",
                                                                                                       "type":  "string",
                                                                                                       "nullable":  true
                                                                                                   },
                                                                                  "CreatedDate":  {
                                                                                                      "type":  "string",
                                                                                                      "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601."
                                                                                                  },
                                                                                  "CustomerPhone":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                  "CustomerMobile":  {
                                                                                                         "nullable":  true,
                                                                                                         "type":  "string"
                                                                                                     },
                                                                                  "CustomerName":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "CustomerDescription":  {
                                                                                                              "nullable":  true,
                                                                                                              "type":  "string"
                                                                                                          },
                                                                                  "State":  {
                                                                                                "type":  "integer"
                                                                                            },
                                                                                  "IncidentType":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "LocationName":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                  "ModifiedDate":  {
                                                                                                       "type":  "string",
                                                                                                       "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601."
                                                                                                   }
                                                                              },
                                                               "type":  "object"
                                                           },
                                       "MeasurementCreate":  {
                                                                 "properties":  {
                                                                                    "MeasurementDefinitionId":  {
                                                                                                                    "format":  "uuid",
                                                                                                                    "type":  "string",
                                                                                                                    "nullable":  true
                                                                                                                },
                                                                                    "Unit":  {
                                                                                                 "nullable":  true,
                                                                                                 "type":  "string"
                                                                                             },
                                                                                    "ChecklistInstanceId":  {
                                                                                                                "format":  "uuid",
                                                                                                                "type":  "string",
                                                                                                                "nullable":  true
                                                                                                            },
                                                                                    "Source":  {
                                                                                                   "nullable":  true,
                                                                                                   "type":  "string"
                                                                                               },
                                                                                    "TaskId":  {
                                                                                                   "format":  "uuid",
                                                                                                   "type":  "string",
                                                                                                   "nullable":  true
                                                                                               },
                                                                                    "ChecklistId":  {
                                                                                                        "format":  "uuid",
                                                                                                        "type":  "string",
                                                                                                        "nullable":  true
                                                                                                    },
                                                                                    "TaskHistoryId":  {
                                                                                                          "format":  "uuid",
                                                                                                          "type":  "string",
                                                                                                          "nullable":  true
                                                                                                      },
                                                                                    "Value":  {
                                                                                                  "type":  "number"
                                                                                              }
                                                                                },
                                                                 "type":  "object"
                                                             },
                                       "MeasurementDefinition":  {
                                                                     "properties":  {
                                                                                        "Code":  {
                                                                                                     "nullable":  true,
                                                                                                     "type":  "string"
                                                                                                 },
                                                                                        "Name":  {
                                                                                                     "nullable":  true,
                                                                                                     "type":  "string"
                                                                                                 },
                                                                                        "Id":  {
                                                                                                   "type":  "string",
                                                                                                   "format":  "uuid"
                                                                                               },
                                                                                        "AllowedUnits":  {
                                                                                                             "nullable":  true,
                                                                                                             "type":  "string"
                                                                                                         }
                                                                                    },
                                                                     "type":  "object"
                                                                 },
                                       "IssueInfo":  {
                                                         "properties":  {
                                                                            "IsOpen":  {
                                                                                           "type":  "boolean"
                                                                                       },
                                                                            "Reported":  {
                                                                                             "type":  "string",
                                                                                             "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601."
                                                                                         },
                                                                            "Id":  {
                                                                                       "type":  "string",
                                                                                       "format":  "uuid"
                                                                                   },
                                                                            "ShortDescription":  {
                                                                                                     "nullable":  true,
                                                                                                     "type":  "string"
                                                                                                 }
                                                                        },
                                                         "type":  "object"
                                                     },
                                       "IncidentContact":  {
                                                               "properties":  {
                                                                                  "Email":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                  "Mobile":  {
                                                                                                 "nullable":  true,
                                                                                                 "type":  "string"
                                                                                             },
                                                                                  "Name":  {
                                                                                               "nullable":  true,
                                                                                               "type":  "string"
                                                                                           },
                                                                                  "Phone":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                  "Role":  {
                                                                                               "nullable":  true,
                                                                                               "type":  "string"
                                                                                           }
                                                                              },
                                                               "type":  "object"
                                                           },
                                       "IncidentAddress":  {
                                                               "properties":  {
                                                                                  "City":  {
                                                                                               "nullable":  true,
                                                                                               "type":  "string"
                                                                                           },
                                                                                  "Address2":  {
                                                                                                   "nullable":  true,
                                                                                                   "type":  "string"
                                                                                               },
                                                                                  "Address1":  {
                                                                                                   "nullable":  true,
                                                                                                   "type":  "string"
                                                                                               },
                                                                                  "State":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                  "Zip":  {
                                                                                              "nullable":  true,
                                                                                              "type":  "string"
                                                                                          },
                                                                                  "Country":  {
                                                                                                  "nullable":  true,
                                                                                                  "type":  "string"
                                                                                              }
                                                                              },
                                                               "type":  "object"
                                                           },
                                       "Location":  {
                                                        "properties":  {
                                                                           "TZ":  {
                                                                                      "nullable":  true,
                                                                                      "type":  "string"
                                                                                  },
                                                                           "Name":  {
                                                                                        "nullable":  true,
                                                                                        "type":  "string"
                                                                                    },
                                                                           "Id":  {
                                                                                      "type":  "string",
                                                                                      "format":  "uuid"
                                                                                  },
                                                                           "ClientId":  {
                                                                                            "type":  "string",
                                                                                            "format":  "uuid"
                                                                                        }
                                                                       },
                                                        "type":  "object"
                                                    },
                                       "EquipmentDetails":  {
                                                                "properties":  {
                                                                                   "SupplierName":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                   "Description":  {
                                                                                                       "nullable":  true,
                                                                                                       "type":  "string"
                                                                                                   },
                                                                                   "ManufacturerUrl":  {
                                                                                                           "nullable":  true,
                                                                                                           "type":  "string"
                                                                                                       },
                                                                                   "SerialNumber":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                   "ReferenceUrl":  {
                                                                                                        "nullable":  true,
                                                                                                        "type":  "string"
                                                                                                    },
                                                                                   "ImageUrl":  {
                                                                                                    "nullable":  true,
                                                                                                    "type":  "string"
                                                                                                },
                                                                                   "InstallDate":  {
                                                                                                       "description":  "ASP.NET MVC JSON date value (for example /Date(0)/), not necessarily ISO 8601.",
                                                                                                       "type":  "string",
                                                                                                       "nullable":  true
                                                                                                   },
                                                                                   "Name":  {
                                                                                                "nullable":  true,
                                                                                                "type":  "string"
                                                                                            },
                                                                                   "Model":  {
                                                                                                 "nullable":  true,
                                                                                                 "type":  "string"
                                                                                             },
                                                                                   "ManufacturerName":  {
                                                                                                            "nullable":  true,
                                                                                                            "type":  "string"
                                                                                                        }
                                                                               },
                                                                "type":  "object"
                                                            },
                                       "Component":  {
                                                         "properties":  {
                                                                            "Id":  {
                                                                                       "type":  "string",
                                                                                       "format":  "uuid"
                                                                                   },
                                                                            "Name":  {
                                                                                         "nullable":  true,
                                                                                         "type":  "string"
                                                                                     }
                                                                        },
                                                         "type":  "object"
                                                     }
                                   }
                   }
}
