{
 "openapi": "3.1.0",
 "info": {
  "title": "FireSeq API",
  "version": "1",
  "description": "Read and write your company's clients, properties, assets, tasks, defects, quotes and invoices. Make a key under Settings, API and webhooks; send it as `Authorization: Bearer fsk_...`. A read key cannot write. Lists use cursor pagination (`?limit&cursor&sort`); errors use `{error:{code,message,fields,requestId}}`. 600 requests a minute per key."
 },
 "servers": [
  {
   "url": "https://app.fireseq.com.au"
  }
 ],
 "components": {
  "securitySchemes": {
   "apiKey": {
    "type": "http",
    "scheme": "bearer",
    "description": "An API key, fsk_..."
   }
  },
  "schemas": {
   "AccessIn": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind",
      "default": "note"
     },
     "label": {
      "type": "string",
      "maxLength": 120,
      "title": "Label"
     },
     "value": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Value"
     },
     "secret": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Secret"
     },
     "sort": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort"
     }
    },
    "type": "object",
    "required": [
     "label"
    ],
    "title": "AccessIn"
   },
   "ActionIn": {
    "properties": {
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "required": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Required"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "done": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Done"
     }
    },
    "type": "object",
    "title": "ActionIn"
   },
   "AppointmentIn": {
    "properties": {
     "taskId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Taskid"
     },
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "startsAt": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Startsat"
     },
     "endsAt": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Endsat"
     },
     "allDay": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allday"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "userIds": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Userids"
     },
     "assign": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assign"
     }
    },
    "type": "object",
    "title": "AppointmentIn"
   },
   "ApproveIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
     },
     "acceptedLineIds": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Acceptedlineids"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "ApproveIn"
   },
   "AssetIn": {
    "properties": {
     "propertyId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Propertyid"
     },
     "parentId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Parentid"
     },
     "assetTypeId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assettypeid"
     },
     "variantId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Variantid"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "make": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Make"
     },
     "model": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Model"
     },
     "serial": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Serial"
     },
     "location": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Location"
     },
     "level": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Level"
     },
     "zoneLabel": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 60
       },
       {
        "type": "null"
       }
      ],
      "title": "Zonelabel"
     },
     "loop": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Loop"
     },
     "address": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "barcode": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Barcode"
     },
     "baseDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Basedate"
     },
     "installDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Installdate"
     },
     "manufactureDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Manufacturedate"
     },
     "expiryDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expirydate"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "sort": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort"
     },
     "tags": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tags"
     }
    },
    "type": "object",
    "title": "AssetIn"
   },
   "AssetTypeIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "systemId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Systemid"
     },
     "category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "isContainer": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Iscontainer"
     },
     "routineTypeId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Routinetypeid"
     },
     "sort": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort"
     }
    },
    "type": "object",
    "title": "AssetTypeIn"
   },
   "AssignIn": {
    "properties": {
     "userIds": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Userids"
     },
     "primaryUserId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Primaryuserid"
     }
    },
    "type": "object",
    "required": [
     "userIds"
    ],
    "title": "AssignIn"
   },
   "BillingIn": {
    "properties": {
     "clientId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientid"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "legalName": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Legalname"
     },
     "abn": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Abn"
     },
     "invoiceEmail": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 254
       },
       {
        "type": "null"
       }
      ],
      "title": "Invoiceemail"
     },
     "addressLine1": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Addressline1"
     },
     "addressLine2": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Addressline2"
     },
     "suburb": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 100
       },
       {
        "type": "null"
       }
      ],
      "title": "Suburb"
     },
     "state": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "State"
     },
     "postcode": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "Postcode"
     },
     "paymentTermsDays": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 365.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Paymenttermsdays"
     },
     "poRequired": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Porequired"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     }
    },
    "type": "object",
    "title": "BillingIn"
   },
   "Body_import_catalogue_api_v1_products_import_post": {
    "properties": {
     "file": {
      "type": "string",
      "format": "binary",
      "title": "File"
     },
     "supplier_id": {
      "type": "string",
      "title": "Supplier Id"
     },
     "markup_pct": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Markup Pct"
     },
     "kind": {
      "type": "string",
      "title": "Kind",
      "default": "item"
     },
     "dry_run": {
      "type": "boolean",
      "title": "Dry Run",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "file",
     "supplier_id"
    ],
    "title": "Body_import_catalogue_api_v1_products_import_post"
   },
   "BookIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "markupPct": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Markuppct"
     },
     "isDefault": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Isdefault"
     }
    },
    "type": "object",
    "title": "BookIn"
   },
   "BookLine": {
    "properties": {
     "productId": {
      "type": "string",
      "title": "Productid"
     },
     "unitSell": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Unitsell"
     }
    },
    "type": "object",
    "required": [
     "productId"
    ],
    "title": "BookLine"
   },
   "BookLinesIn": {
    "properties": {
     "lines": {
      "items": {
       "$ref": "#/components/schemas/BookLine"
      },
      "type": "array",
      "maxItems": 500,
      "title": "Lines"
     }
    },
    "type": "object",
    "required": [
     "lines"
    ],
    "title": "BookLinesIn"
   },
   "BulkItem": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "location": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Location"
     },
     "level": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Level"
     },
     "loop": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Loop"
     },
     "address": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "serial": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Serial"
     },
     "variantId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Variantid"
     }
    },
    "type": "object",
    "title": "BulkItem"
   },
   "ChargeIn": {
    "properties": {
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "qty": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 100000.0,
        "exclusiveMinimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Qty"
     },
     "unitCost": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Unitcost"
     },
     "unitSell": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Unitsell"
     },
     "gstCode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gstcode"
     },
     "billable": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billable"
     },
     "assetId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assetid"
     },
     "defectId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Defectid"
     },
     "productId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Productid"
     },
     "clientRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientref"
     }
    },
    "type": "object",
    "title": "ChargeIn"
   },
   "ClientIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "clientGroupId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientgroupid"
     },
     "abn": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Abn"
     },
     "email": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 254
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "addressLine1": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Addressline1"
     },
     "addressLine2": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Addressline2"
     },
     "suburb": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 100
       },
       {
        "type": "null"
       }
      ],
      "title": "Suburb"
     },
     "state": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "State"
     },
     "postcode": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "Postcode"
     },
     "paymentTermsDays": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 365.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Paymenttermsdays"
     },
     "slaOnsiteHours": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 720.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Slaonsitehours"
     },
     "slaPerformedHours": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 2000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Slaperformedhours"
     },
     "portalEnabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Portalenabled"
     },
     "priceBookId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pricebookid"
     },
     "defaultBillingAccountId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Defaultbillingaccountid"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     }
    },
    "type": "object",
    "title": "ClientIn"
   },
   "ContactIn": {
    "properties": {
     "clientId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientid"
     },
     "propertyId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Propertyid"
     },
     "billingAccountId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billingaccountid"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "role": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Role"
     },
     "email": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 254
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "mobile": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Mobile"
     },
     "isPrimary": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Isprimary"
     },
     "receivesReports": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Receivesreports"
     },
     "receivesQuotes": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Receivesquotes"
     },
     "receivesInvoices": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Receivesinvoices"
     },
     "smsOptIn": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Smsoptin"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     }
    },
    "type": "object",
    "title": "ContactIn"
   },
   "ContractIn": {
    "properties": {
     "clientId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientid"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "billingAccountId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billingaccountid"
     },
     "startDate": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Startdate"
     },
     "endDate": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enddate"
     },
     "termMonths": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 120.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Termmonths"
     },
     "renewal": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Renewal"
     },
     "billingCycle": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billingcycle"
     },
     "inAdvance": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Inadvance"
     },
     "amountPerCycle": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 10000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Amountpercycle"
     },
     "gstCode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gstcode"
     },
     "priceIncreasePct": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 50.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Priceincreasepct"
     },
     "nextIncreaseDate": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Nextincreasedate"
     },
     "authorisedLimit": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 10000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Authorisedlimit"
     },
     "reference": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Reference"
     },
     "invoiceText": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Invoicetext"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     }
    },
    "type": "object",
    "title": "ContractIn"
   },
   "ConvertIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "dueDate": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Duedate"
     },
     "primaryUserId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Primaryuserid"
     }
    },
    "type": "object",
    "title": "ConvertIn"
   },
   "CreditIn": {
    "properties": {
     "reason": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "lines": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lines"
     }
    },
    "type": "object",
    "title": "CreditIn"
   },
   "DeclineIn": {
    "properties": {
     "reason": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "type": "object",
    "title": "DeclineIn"
   },
   "DefectIn": {
    "properties": {
     "propertyId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Propertyid"
     },
     "taskId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Taskid"
     },
     "assetId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assetid"
     },
     "serviceRecordId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Servicerecordid"
     },
     "serviceRecordItemId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Servicerecorditemid"
     },
     "defectTypeId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Defecttypeid"
     },
     "category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "suggestedResolution": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Suggestedresolution"
     },
     "location": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Location"
     },
     "clientRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientref"
     }
    },
    "type": "object",
    "title": "DefectIn"
   },
   "DefectTypeIn": {
    "properties": {
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "systemId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Systemid"
     },
     "assetTypeId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assettypeid"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "defaultCategory": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Defaultcategory"
     },
     "defaultResolution": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Defaultresolution"
     },
     "sort": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort"
     }
    },
    "type": "object",
    "title": "DefectTypeIn"
   },
   "EmailIn": {
    "properties": {
     "to": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "To"
     },
     "message": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Message"
     }
    },
    "type": "object",
    "title": "EmailIn"
   },
   "FromDefectsIn": {
    "properties": {
     "defectIds": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 100,
      "minItems": 1,
      "title": "Defectids"
     },
     "originTaskId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Origintaskid"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     }
    },
    "type": "object",
    "required": [
     "defectIds"
    ],
    "title": "FromDefectsIn"
   },
   "FromTasksIn": {
    "properties": {
     "taskIds": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 200,
      "minItems": 1,
      "title": "Taskids"
     }
    },
    "type": "object",
    "required": [
     "taskIds"
    ],
    "title": "FromTasksIn"
   },
   "GroupIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "title": "Name"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "GroupIn"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "InvoiceDueIn": {
    "properties": {
     "contractIds": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array",
        "maxItems": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Contractids"
     }
    },
    "type": "object",
    "title": "InvoiceDueIn"
   },
   "InvoiceIn": {
    "properties": {
     "billingAccountId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billingaccountid"
     },
     "reference": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Reference"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "termsDays": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 365.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Termsdays"
     }
    },
    "type": "object",
    "title": "InvoiceIn"
   },
   "IssueIn": {
    "properties": {
     "issueDate": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Issuedate"
     }
    },
    "type": "object",
    "title": "IssueIn"
   },
   "LevelIn": {
    "properties": {
     "serviceLevelId": {
      "type": "string",
      "title": "Servicelevelid"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     },
     "price": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Price"
     },
     "estimatedHoursOverride": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 999.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Estimatedhoursoverride"
     },
     "rotationTags": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Rotationtags"
     }
    },
    "type": "object",
    "required": [
     "serviceLevelId"
    ],
    "title": "LevelIn"
   },
   "LogbookIn": {
    "properties": {
     "systemId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Systemid"
     },
     "location": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Location"
     },
     "pin": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 12
       },
       {
        "type": "null"
       }
      ],
      "title": "Pin"
     }
    },
    "type": "object",
    "title": "LogbookIn"
   },
   "MeasureIn": {
    "properties": {
     "measureKey": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Measurekey"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "scheduleRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Scheduleref"
     },
     "performanceStandard": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Performancestandard"
     },
     "requiredBy": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Requiredby"
     },
     "as1851InLieu": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "As1851Inlieu"
     },
     "isCritical": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Iscritical"
     },
     "maintainedBy": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Maintainedby"
     },
     "maintainerName": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Maintainername"
     },
     "location": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Location"
     },
     "systemIds": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Systemids"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "sort": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort"
     }
    },
    "type": "object",
    "title": "MeasureIn"
   },
   "PaymentIn": {
    "properties": {
     "amount": {
      "type": "number",
      "maximum": 10000000.0,
      "exclusiveMinimum": 0.0,
      "title": "Amount"
     },
     "paidOn": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Paidon"
     },
     "method": {
      "type": "string",
      "title": "Method",
      "default": "eft"
     },
     "reference": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Reference"
     }
    },
    "type": "object",
    "required": [
     "amount"
    ],
    "title": "PaymentIn"
   },
   "PresetIn": {
    "properties": {
     "keys": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 60,
      "minItems": 1,
      "title": "Keys"
     }
    },
    "type": "object",
    "required": [
     "keys"
    ],
    "title": "PresetIn"
   },
   "ProductIn": {
    "properties": {
     "code": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 60
       },
       {
        "type": "null"
       }
      ],
      "title": "Code"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "unit": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Unit"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "defaultCost": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Defaultcost"
     },
     "defaultSell": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Defaultsell"
     },
     "gstCode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gstcode"
     },
     "accountCode": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Accountcode"
     },
     "supplierId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Supplierid"
     },
     "supplierCode": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Suppliercode"
     },
     "assetTypeId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assettypeid"
     }
    },
    "type": "object",
    "title": "ProductIn"
   },
   "PropertyIn": {
    "properties": {
     "clientId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientid"
     },
     "billingAccountId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billingaccountid"
     },
     "branchId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Branchid"
     },
     "zoneId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Zoneid"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "addressLine1": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Addressline1"
     },
     "addressLine2": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Addressline2"
     },
     "suburb": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 100
       },
       {
        "type": "null"
       }
      ],
      "title": "Suburb"
     },
     "state": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "State"
     },
     "postcode": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "Postcode"
     },
     "lat": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lat"
     },
     "lng": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lng"
     },
     "buildingClass": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 10
       },
       {
        "type": "null"
       }
      ],
      "title": "Buildingclass"
     },
     "jurisdiction": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 5
       },
       {
        "type": "null"
       }
      ],
      "title": "Jurisdiction"
     },
     "occupancyPermitRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Occupancypermitref"
     },
     "permitDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Permitdate"
     },
     "maintenanceDeterminationRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Maintenancedeterminationref"
     },
     "esmAnniversary": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Esmanniversary"
     },
     "afssDueDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Afssduedate"
     },
     "ownerName": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Ownername"
     },
     "ownerAddress": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Owneraddress"
     },
     "monitoringRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Monitoringref"
     },
     "status": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     }
    },
    "type": "object",
    "title": "PropertyIn"
   },
   "QuoteIn": {
    "properties": {
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "propertyId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Propertyid"
     },
     "clientId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientid"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "intro": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000
       },
       {
        "type": "null"
       }
      ],
      "title": "Intro"
     },
     "terms": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000
       },
       {
        "type": "null"
       }
      ],
      "title": "Terms"
     },
     "validUntil": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Validuntil"
     },
     "contactId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contactid"
     }
    },
    "type": "object",
    "title": "QuoteIn"
   },
   "RecordIn": {
    "properties": {
     "result": {
      "type": "string",
      "title": "Result"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "result"
    ],
    "title": "RecordIn"
   },
   "RemindersIn": {
    "properties": {
     "on": {
      "type": "boolean",
      "title": "On"
     }
    },
    "type": "object",
    "required": [
     "on"
    ],
    "title": "RemindersIn"
   },
   "RequirementIn": {
    "properties": {
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "details": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Details"
     },
     "mustRead": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mustread"
     },
     "expiresOn": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expireson"
     },
     "sort": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort"
     }
    },
    "type": "object",
    "title": "RequirementIn"
   },
   "RoutineIn": {
    "properties": {
     "contractId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contractid"
     },
     "routineTypeId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Routinetypeid"
     },
     "serviceGroupId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Servicegroupid"
     },
     "defaultUserId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Defaultuserid"
     },
     "startDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Startdate"
     },
     "baseDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Basedate"
     },
     "endDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enddate"
     },
     "assetBased": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assetbased"
     },
     "containerAssetId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Containerassetid"
     },
     "autoBook": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Autobook"
     },
     "bookTime": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 5
       },
       {
        "type": "null"
       }
      ],
      "title": "Booktime"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "levels": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/LevelIn"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Levels"
     }
    },
    "type": "object",
    "title": "RoutineIn"
   },
   "ServiceGroupIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "colour": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 9
       },
       {
        "type": "null"
       }
      ],
      "title": "Colour"
     },
     "sort": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort"
     }
    },
    "type": "object",
    "title": "ServiceGroupIn"
   },
   "SessionIn": {
    "properties": {
     "taskId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Taskid"
     },
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "startedAt": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Startedat"
     },
     "endedAt": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Endedat"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "userId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Userid"
     }
    },
    "type": "object",
    "title": "SessionIn"
   },
   "SignatureIn": {
    "properties": {
     "role": {
      "type": "string",
      "title": "Role"
     },
     "signerName": {
      "type": "string",
      "maxLength": 120,
      "title": "Signername"
     },
     "signerTitle": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Signertitle"
     },
     "image": {
      "type": "string",
      "maxLength": 400000,
      "title": "Image"
     }
    },
    "type": "object",
    "required": [
     "role",
     "signerName",
     "image"
    ],
    "title": "SignatureIn"
   },
   "TagsIn": {
    "properties": {
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags"
     }
    },
    "type": "object",
    "required": [
     "tags"
    ],
    "title": "TagsIn"
   },
   "TaskIn": {
    "properties": {
     "propertyId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Propertyid"
     },
     "contractId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contractid"
     },
     "category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "priority": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Priority"
     },
     "dueDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Duedate"
     },
     "windowStart": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Windowstart"
     },
     "windowEnd": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Windowend"
     },
     "estimatedHours": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 999.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Estimatedhours"
     },
     "primaryUserId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Primaryuserid"
     },
     "serviceGroupId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Servicegroupid"
     },
     "billingMode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billingmode"
     },
     "billingAccountId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billingaccountid"
     },
     "authorisedAmount": {
      "anyOf": [
       {
        "type": "number",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Authorisedamount"
     },
     "authorisedRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Authorisedref"
     },
     "internalNotes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000
       },
       {
        "type": "null"
       }
      ],
      "title": "Internalnotes"
     },
     "assigneeIds": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assigneeids"
     }
    },
    "type": "object",
    "title": "TaskIn"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "VariantIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 160,
      "title": "Name"
     },
     "make": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Make"
     },
     "model": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Model"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "VariantIn"
   },
   "VoidIn": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "VoidIn"
   },
   "ZoneIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "branchId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Branchid"
     },
     "colour": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 9
       },
       {
        "type": "null"
       }
      ],
      "title": "Colour"
     },
     "postcodes": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Postcodes"
     }
    },
    "type": "object",
    "title": "ZoneIn"
   },
   "app__assets__router__BulkIn": {
    "properties": {
     "propertyId": {
      "type": "string",
      "title": "Propertyid"
     },
     "parentId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Parentid"
     },
     "assetTypeId": {
      "type": "string",
      "title": "Assettypeid"
     },
     "variantId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Variantid"
     },
     "items": {
      "items": {
       "$ref": "#/components/schemas/BulkItem"
      },
      "type": "array",
      "maxItems": 500,
      "title": "Items"
     }
    },
    "type": "object",
    "required": [
     "propertyId",
     "assetTypeId",
     "items"
    ],
    "title": "BulkIn"
   },
   "app__contracts__router__EndIn": {
    "properties": {
     "endedOn": {
      "type": "string",
      "format": "date",
      "title": "Endedon"
     },
     "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "endedOn",
     "reason"
    ],
    "title": "EndIn"
   },
   "app__defects__router__StatusIn": {
    "properties": {
     "status": {
      "type": "string",
      "title": "Status"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "status"
    ],
    "title": "StatusIn"
   },
   "app__invoices__router__LineIn": {
    "properties": {
     "id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Id"
     },
     "groupLabel": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Grouplabel"
     },
     "description": {
      "type": "string",
      "maxLength": 300,
      "title": "Description"
     },
     "qty": {
      "type": "number",
      "maximum": 100000.0,
      "exclusiveMinimum": 0.0,
      "title": "Qty",
      "default": 1
     },
     "unitPrice": {
      "type": "number",
      "maximum": 1000000.0,
      "minimum": 0.0,
      "title": "Unitprice",
      "default": 0
     },
     "gstCode": {
      "type": "string",
      "title": "Gstcode",
      "default": "GST"
     },
     "productId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Productid"
     },
     "accountCode": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "Accountcode"
     }
    },
    "type": "object",
    "required": [
     "description"
    ],
    "title": "LineIn"
   },
   "app__invoices__router__LinesIn": {
    "properties": {
     "lines": {
      "items": {
       "$ref": "#/components/schemas/app__invoices__router__LineIn"
      },
      "type": "array",
      "maxItems": 500,
      "title": "Lines"
     }
    },
    "type": "object",
    "required": [
     "lines"
    ],
    "title": "LinesIn"
   },
   "app__invoices__router__SendIn": {
    "properties": {
     "to": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array",
        "maxItems": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "To"
     },
     "message": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Message"
     }
    },
    "type": "object",
    "title": "SendIn"
   },
   "app__notes__router__NoteIn": {
    "properties": {
     "entityType": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Entitytype"
     },
     "entityId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Entityid"
     },
     "body": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000
       },
       {
        "type": "null"
       }
      ],
      "title": "Body"
     },
     "pinned": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pinned"
     },
     "visibility": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Visibility"
     }
    },
    "type": "object",
    "title": "NoteIn"
   },
   "app__properties__router__KeyIn": {
    "properties": {
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "label": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Label"
     },
     "identifier": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Identifier"
     },
     "location": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Location"
     },
     "heldByUserId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Heldbyuserid"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     }
    },
    "type": "object",
    "title": "KeyIn"
   },
   "app__quotes__router__LineIn": {
    "properties": {
     "id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Id"
     },
     "groupLabel": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Grouplabel"
     },
     "defectId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Defectid"
     },
     "assetId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assetid"
     },
     "productId": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Productid"
     },
     "description": {
      "type": "string",
      "maxLength": 300,
      "title": "Description"
     },
     "detail": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Detail"
     },
     "qty": {
      "type": "number",
      "maximum": 100000.0,
      "exclusiveMinimum": 0.0,
      "title": "Qty",
      "default": 1
     },
     "unitCost": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Unitcost"
     },
     "unitSell": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 1000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Unitsell"
     },
     "gstCode": {
      "type": "string",
      "title": "Gstcode",
      "default": "GST"
     },
     "optional": {
      "type": "boolean",
      "title": "Optional",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "description"
    ],
    "title": "LineIn"
   },
   "app__quotes__router__LinesIn": {
    "properties": {
     "lines": {
      "items": {
       "$ref": "#/components/schemas/app__quotes__router__LineIn"
      },
      "type": "array",
      "maxItems": 300,
      "title": "Lines"
     }
    },
    "type": "object",
    "required": [
     "lines"
    ],
    "title": "LinesIn"
   },
   "app__quotes__router__SendIn": {
    "properties": {
     "email": {
      "type": "boolean",
      "title": "Email",
      "default": false
     },
     "to": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array",
        "maxItems": 20
       },
       {
        "type": "null"
       }
      ],
      "title": "To"
     },
     "message": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Message"
     }
    },
    "type": "object",
    "title": "SendIn"
   },
   "app__routines__router__EndIn": {
    "properties": {
     "endDate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enddate"
     }
    },
    "type": "object",
    "title": "EndIn"
   },
   "app__scheduling__router__StartIn": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "clientRef": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Clientref"
     }
    },
    "type": "object",
    "required": [
     "kind"
    ],
    "title": "StartIn"
   },
   "app__tasks__router__BulkIn": {
    "properties": {
     "action": {
      "type": "string",
      "title": "Action"
     },
     "recordIds": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Recordids"
     }
    },
    "type": "object",
    "required": [
     "action"
    ],
    "title": "BulkIn"
   },
   "app__tasks__router__ItemIn": {
    "properties": {
     "result": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Result"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "value": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 60
       },
       {
        "type": "null"
       }
      ],
      "title": "Value"
     }
    },
    "type": "object",
    "title": "ItemIn"
   },
   "app__tasks__router__StatusIn": {
    "properties": {
     "status": {
      "type": "string",
      "title": "Status"
     },
     "outcome": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Outcome"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "performedOn": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Performedon"
     }
    },
    "type": "object",
    "required": [
     "status"
    ],
    "title": "StatusIn"
   }
  }
 },
 "security": [
  {
   "apiKey": []
  }
 ],
 "paths": {
  "/api/v1/clients": {
   "get": {
    "tags": [
     "clients"
    ],
    "summary": "List Clients",
    "operationId": "list_clients_api_v1_clients_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 120
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "groupId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Groupid"
      }
     },
     {
      "name": "archived",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Archived"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Clients Api V1 Clients Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Create Client",
    "operationId": "create_client_api_v1_clients_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ClientIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Client Api V1 Clients Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/clients/{client_id}": {
   "get": {
    "tags": [
     "clients"
    ],
    "summary": "Get Client",
    "operationId": "get_client_api_v1_clients__client_id__get",
    "parameters": [
     {
      "name": "client_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Client Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Client Api V1 Clients  Client Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "clients"
    ],
    "summary": "Update Client",
    "operationId": "update_client_api_v1_clients__client_id__put",
    "parameters": [
     {
      "name": "client_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Client Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ClientIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Client Api V1 Clients  Client Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/clients/{client_id}/archive": {
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Archive Client",
    "operationId": "archive_client_api_v1_clients__client_id__archive_post",
    "parameters": [
     {
      "name": "client_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Client Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Client Api V1 Clients  Client Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/clients/{client_id}/restore": {
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Restore Client",
    "operationId": "restore_client_api_v1_clients__client_id__restore_post",
    "parameters": [
     {
      "name": "client_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Client Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Restore Client Api V1 Clients  Client Id  Restore Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/clients/{client_id}/timeline": {
   "get": {
    "tags": [
     "clients"
    ],
    "summary": "Client Timeline",
    "operationId": "client_timeline_api_v1_clients__client_id__timeline_get",
    "parameters": [
     {
      "name": "client_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Client Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "default": 100,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Client Timeline Api V1 Clients  Client Id  Timeline Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/client-groups": {
   "get": {
    "tags": [
     "clients"
    ],
    "summary": "List Groups",
    "operationId": "list_groups_api_v1_client_groups_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response List Groups Api V1 Client Groups Get"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Create Group",
    "operationId": "create_group_api_v1_client_groups_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GroupIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Create Group Api V1 Client Groups Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/client-groups/{group_id}": {
   "put": {
    "tags": [
     "clients"
    ],
    "summary": "Update Group",
    "operationId": "update_group_api_v1_client_groups__group_id__put",
    "parameters": [
     {
      "name": "group_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Group Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GroupIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Group Api V1 Client Groups  Group Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/client-groups/{group_id}/archive": {
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Archive Group",
    "operationId": "archive_group_api_v1_client_groups__group_id__archive_post",
    "parameters": [
     {
      "name": "group_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Group Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Group Api V1 Client Groups  Group Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing-accounts": {
   "get": {
    "tags": [
     "clients"
    ],
    "summary": "List Billing",
    "operationId": "list_billing_api_v1_billing_accounts_get",
    "parameters": [
     {
      "name": "clientId",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Clientid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Billing Api V1 Billing Accounts Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Create Billing",
    "operationId": "create_billing_api_v1_billing_accounts_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BillingIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Billing Api V1 Billing Accounts Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing-accounts/{account_id}": {
   "put": {
    "tags": [
     "clients"
    ],
    "summary": "Update Billing",
    "operationId": "update_billing_api_v1_billing_accounts__account_id__put",
    "parameters": [
     {
      "name": "account_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Account Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BillingIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Billing Api V1 Billing Accounts  Account Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing-accounts/{account_id}/archive": {
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Archive Billing",
    "operationId": "archive_billing_api_v1_billing_accounts__account_id__archive_post",
    "parameters": [
     {
      "name": "account_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Account Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Billing Api V1 Billing Accounts  Account Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contacts": {
   "get": {
    "tags": [
     "clients"
    ],
    "summary": "List Contacts",
    "operationId": "list_contacts_api_v1_contacts_get",
    "parameters": [
     {
      "name": "clientId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Clientid"
      }
     },
     {
      "name": "propertyId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Propertyid"
      }
     },
     {
      "name": "billingAccountId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Billingaccountid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Contacts Api V1 Contacts Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "clients"
    ],
    "summary": "Create Contact",
    "operationId": "create_contact_api_v1_contacts_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ContactIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Contact Api V1 Contacts Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contacts/{contact_id}": {
   "put": {
    "tags": [
     "clients"
    ],
    "summary": "Update Contact",
    "operationId": "update_contact_api_v1_contacts__contact_id__put",
    "parameters": [
     {
      "name": "contact_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contact Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ContactIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Contact Api V1 Contacts  Contact Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "clients"
    ],
    "summary": "Archive Contact",
    "operationId": "archive_contact_api_v1_contacts__contact_id__delete",
    "parameters": [
     {
      "name": "contact_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contact Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Contact Api V1 Contacts  Contact Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties": {
   "get": {
    "tags": [
     "properties"
    ],
    "summary": "List Properties",
    "operationId": "list_properties_api_v1_properties_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 120
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "clientId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Clientid"
      }
     },
     {
      "name": "archived",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Archived"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Properties Api V1 Properties Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Create Property",
    "operationId": "create_property_api_v1_properties_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PropertyIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Property Api V1 Properties Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/map": {
   "get": {
    "tags": [
     "properties"
    ],
    "summary": "Properties Map",
    "operationId": "properties_map_api_v1_properties_map_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Properties Map Api V1 Properties Map Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}": {
   "get": {
    "tags": [
     "properties"
    ],
    "summary": "Get Property",
    "operationId": "get_property_api_v1_properties__property_id__get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Property Api V1 Properties  Property Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "properties"
    ],
    "summary": "Update Property",
    "operationId": "update_property_api_v1_properties__property_id__put",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PropertyIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Property Api V1 Properties  Property Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/archive": {
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Archive Property",
    "operationId": "archive_property_api_v1_properties__property_id__archive_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Property Api V1 Properties  Property Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/restore": {
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Restore Property",
    "operationId": "restore_property_api_v1_properties__property_id__restore_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Restore Property Api V1 Properties  Property Id  Restore Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/geocode": {
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Regeocode",
    "operationId": "regeocode_api_v1_properties__property_id__geocode_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Regeocode Api V1 Properties  Property Id  Geocode Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/timeline": {
   "get": {
    "tags": [
     "properties"
    ],
    "summary": "Property Timeline",
    "operationId": "property_timeline_api_v1_properties__property_id__timeline_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "default": 100,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Property Timeline Api V1 Properties  Property Id  Timeline Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/access": {
   "get": {
    "tags": [
     "properties"
    ],
    "summary": "Reveal Access",
    "description": "Access details with codes decrypted. Every reveal is audited.",
    "operationId": "reveal_access_api_v1_properties__property_id__access_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Reveal Access Api V1 Properties  Property Id  Access Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Create Access",
    "operationId": "create_access_api_v1_properties__property_id__access_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AccessIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Access Api V1 Properties  Property Id  Access Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/keys": {
   "get": {
    "tags": [
     "properties"
    ],
    "summary": "List Keys",
    "operationId": "list_keys_api_v1_properties__property_id__keys_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Keys Api V1 Properties  Property Id  Keys Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Create Key",
    "operationId": "create_key_api_v1_properties__property_id__keys_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__properties__router__KeyIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Key Api V1 Properties  Property Id  Keys Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/zones": {
   "get": {
    "tags": [
     "properties"
    ],
    "summary": "List Zones",
    "operationId": "list_zones_api_v1_zones_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response List Zones Api V1 Zones Get"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Create Zone",
    "operationId": "create_zone_api_v1_zones_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ZoneIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Create Zone Api V1 Zones Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/zones/{zone_id}": {
   "put": {
    "tags": [
     "properties"
    ],
    "summary": "Update Zone",
    "operationId": "update_zone_api_v1_zones__zone_id__put",
    "parameters": [
     {
      "name": "zone_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Zone Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ZoneIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Zone Api V1 Zones  Zone Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/zones/{zone_id}/archive": {
   "post": {
    "tags": [
     "properties"
    ],
    "summary": "Archive Zone",
    "operationId": "archive_zone_api_v1_zones__zone_id__archive_post",
    "parameters": [
     {
      "name": "zone_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Zone Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Zone Api V1 Zones  Zone Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue": {
   "get": {
    "tags": [
     "catalogue"
    ],
    "summary": "Catalogue",
    "operationId": "catalogue_api_v1_catalogue_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Catalogue Api V1 Catalogue Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/service-groups": {
   "post": {
    "tags": [
     "catalogue"
    ],
    "summary": "Create Group",
    "operationId": "create_group_api_v1_catalogue_service_groups_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ServiceGroupIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Create Group Api V1 Catalogue Service Groups Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/service-groups/{group_id}": {
   "put": {
    "tags": [
     "catalogue"
    ],
    "summary": "Update Group",
    "operationId": "update_group_api_v1_catalogue_service_groups__group_id__put",
    "parameters": [
     {
      "name": "group_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Group Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ServiceGroupIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Group Api V1 Catalogue Service Groups  Group Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/service-groups/{group_id}/archive": {
   "post": {
    "tags": [
     "catalogue"
    ],
    "summary": "Archive Group",
    "operationId": "archive_group_api_v1_catalogue_service_groups__group_id__archive_post",
    "parameters": [
     {
      "name": "group_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Group Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Group Api V1 Catalogue Service Groups  Group Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/asset-types": {
   "post": {
    "tags": [
     "catalogue"
    ],
    "summary": "Create Asset Type",
    "operationId": "create_asset_type_api_v1_catalogue_asset_types_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AssetTypeIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Create Asset Type Api V1 Catalogue Asset Types Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/asset-types/{type_id}": {
   "put": {
    "tags": [
     "catalogue"
    ],
    "summary": "Update Asset Type",
    "operationId": "update_asset_type_api_v1_catalogue_asset_types__type_id__put",
    "parameters": [
     {
      "name": "type_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Type Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AssetTypeIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Asset Type Api V1 Catalogue Asset Types  Type Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/asset-types/{type_id}/variants": {
   "post": {
    "tags": [
     "catalogue"
    ],
    "summary": "Create Variant",
    "operationId": "create_variant_api_v1_catalogue_asset_types__type_id__variants_post",
    "parameters": [
     {
      "name": "type_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Type Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VariantIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Variant Api V1 Catalogue Asset Types  Type Id  Variants Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/variants/{variant_id}/archive": {
   "post": {
    "tags": [
     "catalogue"
    ],
    "summary": "Archive Variant",
    "operationId": "archive_variant_api_v1_catalogue_variants__variant_id__archive_post",
    "parameters": [
     {
      "name": "variant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Variant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Variant Api V1 Catalogue Variants  Variant Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/defect-types": {
   "post": {
    "tags": [
     "catalogue"
    ],
    "summary": "Create Defect Type",
    "operationId": "create_defect_type_api_v1_catalogue_defect_types_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DefectTypeIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Create Defect Type Api V1 Catalogue Defect Types Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/defect-types/{type_id}": {
   "put": {
    "tags": [
     "catalogue"
    ],
    "summary": "Update Defect Type",
    "operationId": "update_defect_type_api_v1_catalogue_defect_types__type_id__put",
    "parameters": [
     {
      "name": "type_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Type Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DefectTypeIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Defect Type Api V1 Catalogue Defect Types  Type Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalogue/defect-types/{type_id}/archive": {
   "post": {
    "tags": [
     "catalogue"
    ],
    "summary": "Archive Defect Type",
    "operationId": "archive_defect_type_api_v1_catalogue_defect_types__type_id__archive_post",
    "parameters": [
     {
      "name": "type_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Type Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Defect Type Api V1 Catalogue Defect Types  Type Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/measures": {
   "get": {
    "tags": [
     "measures"
    ],
    "summary": "List Measures",
    "operationId": "list_measures_api_v1_properties__property_id__measures_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Measures Api V1 Properties  Property Id  Measures Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "measures"
    ],
    "summary": "Create Measure",
    "operationId": "create_measure_api_v1_properties__property_id__measures_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MeasureIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Measure Api V1 Properties  Property Id  Measures Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/measures/presets": {
   "post": {
    "tags": [
     "measures"
    ],
    "summary": "Add Presets",
    "description": "Add the standard lines picked from the preset list. A key already on the register is skipped.",
    "operationId": "add_presets_api_v1_properties__property_id__measures_presets_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PresetIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Presets Api V1 Properties  Property Id  Measures Presets Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/measures/{measure_id}": {
   "put": {
    "tags": [
     "measures"
    ],
    "summary": "Update Measure",
    "operationId": "update_measure_api_v1_measures__measure_id__put",
    "parameters": [
     {
      "name": "measure_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Measure Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MeasureIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Measure Api V1 Measures  Measure Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "measures"
    ],
    "summary": "Archive Measure",
    "operationId": "archive_measure_api_v1_measures__measure_id__delete",
    "parameters": [
     {
      "name": "measure_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Measure Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Measure Api V1 Measures  Measure Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/requirements": {
   "get": {
    "tags": [
     "requirements"
    ],
    "summary": "List Requirements",
    "operationId": "list_requirements_api_v1_properties__property_id__requirements_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Requirements Api V1 Properties  Property Id  Requirements Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "requirements"
    ],
    "summary": "Create Requirement",
    "operationId": "create_requirement_api_v1_properties__property_id__requirements_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RequirementIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Requirement Api V1 Properties  Property Id  Requirements Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/requirements": {
   "get": {
    "tags": [
     "requirements"
    ],
    "summary": "Task Requirements",
    "description": "The site requirements for the task's property, must-read first.",
    "operationId": "task_requirements_api_v1_tasks__task_id__requirements_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Task Requirements Api V1 Tasks  Task Id  Requirements Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/defects": {
   "post": {
    "tags": [
     "defects"
    ],
    "summary": "Raise Defect",
    "operationId": "raise_defect_api_v1_defects_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DefectIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Raise Defect Api V1 Defects Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "get": {
    "tags": [
     "defects"
    ],
    "summary": "List Defects",
    "operationId": "list_defects_api_v1_defects_get",
    "parameters": [
     {
      "name": "propertyId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Propertyid"
      }
     },
     {
      "name": "taskId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Taskid"
      }
     },
     {
      "name": "assetId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Assetid"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Category"
      }
     },
     {
      "name": "open",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Open"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 120
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Defects Api V1 Defects Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/defects/{defect_id}": {
   "get": {
    "tags": [
     "defects"
    ],
    "summary": "Get Defect",
    "operationId": "get_defect_api_v1_defects__defect_id__get",
    "parameters": [
     {
      "name": "defect_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Defect Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Defect Api V1 Defects  Defect Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "defects"
    ],
    "summary": "Update Defect",
    "operationId": "update_defect_api_v1_defects__defect_id__put",
    "parameters": [
     {
      "name": "defect_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Defect Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DefectIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Defect Api V1 Defects  Defect Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/defects/{defect_id}/status": {
   "post": {
    "tags": [
     "defects"
    ],
    "summary": "Set Status",
    "operationId": "set_status_api_v1_defects__defect_id__status_post",
    "parameters": [
     {
      "name": "defect_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Defect Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__defects__router__StatusIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Status Api V1 Defects  Defect Id  Status Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/defect-types/for-asset": {
   "get": {
    "tags": [
     "defects"
    ],
    "summary": "Wording For Asset",
    "description": "Preset wording that fits this asset: its type first, then its system, then the rest.",
    "operationId": "wording_for_asset_api_v1_defect_types_for_asset_get",
    "parameters": [
     {
      "name": "assetId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Assetid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Wording For Asset Api V1 Defect Types For Asset Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/appointments": {
   "get": {
    "tags": [
     "scheduling"
    ],
    "summary": "List Appointments",
    "operationId": "list_appointments_api_v1_appointments_get",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "From"
      }
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "To"
      }
     },
     {
      "name": "userId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Userid"
      }
     },
     {
      "name": "taskId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Taskid"
      }
     },
     {
      "name": "includeCancelled",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Includecancelled"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Appointments Api V1 Appointments Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "scheduling"
    ],
    "summary": "Create Appointment",
    "operationId": "create_appointment_api_v1_appointments_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AppointmentIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Appointment Api V1 Appointments Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/appointments": {
   "get": {
    "tags": [
     "scheduling"
    ],
    "summary": "Task Appointments",
    "operationId": "task_appointments_api_v1_tasks__task_id__appointments_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Task Appointments Api V1 Tasks  Task Id  Appointments Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/appointments/{appointment_id}": {
   "put": {
    "tags": [
     "scheduling"
    ],
    "summary": "Update Appointment",
    "description": "Move (drag on the scheduler), resize, reassign or change status.",
    "operationId": "update_appointment_api_v1_appointments__appointment_id__put",
    "parameters": [
     {
      "name": "appointment_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Appointment Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AppointmentIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Appointment Api V1 Appointments  Appointment Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/appointments/{appointment_id}/cancel": {
   "post": {
    "tags": [
     "scheduling"
    ],
    "summary": "Cancel Appointment",
    "operationId": "cancel_appointment_api_v1_appointments__appointment_id__cancel_post",
    "parameters": [
     {
      "name": "appointment_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Appointment Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Cancel Appointment Api V1 Appointments  Appointment Id  Cancel Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/sessions": {
   "get": {
    "tags": [
     "scheduling"
    ],
    "summary": "Task Sessions",
    "operationId": "task_sessions_api_v1_tasks__task_id__sessions_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Task Sessions Api V1 Tasks  Task Id  Sessions Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "scheduling"
    ],
    "summary": "Add Session",
    "description": "Time entered by hand, such as a visit nobody timed.",
    "operationId": "add_session_api_v1_tasks__task_id__sessions_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SessionIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Session Api V1 Tasks  Task Id  Sessions Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/sessions/start": {
   "post": {
    "tags": [
     "scheduling"
    ],
    "summary": "Start Session",
    "operationId": "start_session_api_v1_tasks__task_id__sessions_start_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__scheduling__router__StartIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Start Session Api V1 Tasks  Task Id  Sessions Start Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/charges": {
   "get": {
    "tags": [
     "charges"
    ],
    "summary": "List Charges",
    "operationId": "list_charges_api_v1_tasks__task_id__charges_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Charges Api V1 Tasks  Task Id  Charges Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "charges"
    ],
    "summary": "Add Charge",
    "operationId": "add_charge_api_v1_tasks__task_id__charges_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ChargeIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Charge Api V1 Tasks  Task Id  Charges Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/actions": {
   "get": {
    "tags": [
     "charges"
    ],
    "summary": "List Actions",
    "operationId": "list_actions_api_v1_tasks__task_id__actions_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Actions Api V1 Tasks  Task Id  Actions Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "charges"
    ],
    "summary": "Add Action",
    "operationId": "add_action_api_v1_tasks__task_id__actions_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ActionIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Action Api V1 Tasks  Task Id  Actions Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/signatures": {
   "get": {
    "tags": [
     "charges"
    ],
    "summary": "List Signatures",
    "operationId": "list_signatures_api_v1_tasks__task_id__signatures_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Signatures Api V1 Tasks  Task Id  Signatures Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "charges"
    ],
    "summary": "Sign Task",
    "description": "A sign-off on the task. The technician signs as themselves; a customer\nsigns on the technician's screen and is recorded by name.",
    "operationId": "sign_task_api_v1_tasks__task_id__signatures_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SignatureIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Sign Task Api V1 Tasks  Task Id  Signatures Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/reports/{kind}.pdf": {
   "get": {
    "tags": [
     "reports"
    ],
    "summary": "Task Report",
    "operationId": "task_report_api_v1_tasks__task_id__reports__kind__pdf_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     },
     {
      "name": "kind",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Kind"
      }
     },
     {
      "name": "download",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Download"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/reports/{kind}/save": {
   "post": {
    "tags": [
     "reports"
    ],
    "summary": "Save Report",
    "operationId": "save_report_api_v1_tasks__task_id__reports__kind__save_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     },
     {
      "name": "kind",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Kind"
      }
     }
    ],
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Save Report Api V1 Tasks  Task Id  Reports  Kind  Save Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/reports/defects.pdf": {
   "get": {
    "tags": [
     "reports"
    ],
    "summary": "Property Defects",
    "operationId": "property_defects_api_v1_properties__property_id__reports_defects_pdf_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     },
     {
      "name": "all",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "All"
      }
     },
     {
      "name": "download",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Download"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/reports/{kind}.pdf": {
   "get": {
    "tags": [
     "reports"
    ],
    "summary": "Statutory Pdf",
    "description": "The VIC AESMR (12 months to the anniversary, or to `on`) or the NSW AFSS supporting pack (3 months before the statement date).",
    "operationId": "statutory_pdf_api_v1_properties__property_id__reports__kind__pdf_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     },
     {
      "name": "kind",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Kind"
      }
     },
     {
      "name": "on",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "date"
        },
        {
         "type": "null"
        }
       ],
       "title": "On"
      }
     },
     {
      "name": "download",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Download"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/reports/{kind}/save": {
   "post": {
    "tags": [
     "reports"
    ],
    "summary": "Save Statutory",
    "operationId": "save_statutory_api_v1_properties__property_id__reports__kind__save_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     },
     {
      "name": "kind",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Kind"
      }
     },
     {
      "name": "on",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "date"
        },
        {
         "type": "null"
        }
       ],
       "title": "On"
      }
     }
    ],
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Save Statutory Api V1 Properties  Property Id  Reports  Kind  Save Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/reports/recipients": {
   "get": {
    "tags": [
     "reports"
    ],
    "summary": "Recipients",
    "operationId": "recipients_api_v1_tasks__task_id__reports_recipients_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Recipients Api V1 Tasks  Task Id  Reports Recipients Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/reports/service/email": {
   "post": {
    "tags": [
     "reports"
    ],
    "summary": "Email Report",
    "description": "Save a frozen copy of the service report and email it to the chosen\npeople (by default everyone flagged to receive reports).",
    "operationId": "email_report_api_v1_tasks__task_id__reports_service_email_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EmailIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Email Report Api V1 Tasks  Task Id  Reports Service Email Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/logbooks": {
   "get": {
    "tags": [
     "logbooks"
    ],
    "summary": "List Logbooks",
    "operationId": "list_logbooks_api_v1_properties__property_id__logbooks_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Logbooks Api V1 Properties  Property Id  Logbooks Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "logbooks"
    ],
    "summary": "Create Logbook",
    "operationId": "create_logbook_api_v1_properties__property_id__logbooks_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LogbookIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Logbook Api V1 Properties  Property Id  Logbooks Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/dashboard": {
   "get": {
    "tags": [
     "dashboard"
    ],
    "summary": "Dashboard",
    "operationId": "dashboard_api_v1_dashboard_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Dashboard Api V1 Dashboard Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/compliance/overdue": {
   "get": {
    "tags": [
     "dashboard"
    ],
    "summary": "Compliance Overdue",
    "description": "Every routine service whose tolerance window has closed without being done.",
    "operationId": "compliance_overdue_api_v1_compliance_overdue_get",
    "parameters": [
     {
      "name": "propertyId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Propertyid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Compliance Overdue Api V1 Compliance Overdue Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets": {
   "get": {
    "tags": [
     "assets"
    ],
    "summary": "List Assets",
    "description": "With propertyId: that property's whole register (the tree needs every row).\nWithout: every asset in the company, filtered and paged, with its property.",
    "operationId": "list_assets_api_v1_assets_get",
    "parameters": [
     {
      "name": "propertyId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Propertyid"
      }
     },
     {
      "name": "archived",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Archived"
      }
     },
     {
      "name": "assetTypeId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Assettypeid"
      }
     },
     {
      "name": "systemId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Systemid"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 120
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "tag",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 40
        },
        {
         "type": "null"
        }
       ],
       "title": "Tag"
      }
     },
     {
      "name": "expiringDays",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer",
         "maximum": 3650,
         "minimum": 0
        },
        {
         "type": "null"
        }
       ],
       "title": "Expiringdays"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Assets Api V1 Assets Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "assets"
    ],
    "summary": "Create Asset",
    "operationId": "create_asset_api_v1_assets_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AssetIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Asset Api V1 Assets Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets/bulk": {
   "post": {
    "tags": [
     "assets"
    ],
    "summary": "Bulk Assets",
    "operationId": "bulk_assets_api_v1_assets_bulk_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__assets__router__BulkIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Bulk Assets Api V1 Assets Bulk Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets/lookup": {
   "get": {
    "tags": [
     "assets"
    ],
    "summary": "Lookup Asset",
    "description": "Find an asset by its barcode or QR value (a scan), then by serial.",
    "operationId": "lookup_asset_api_v1_assets_lookup_get",
    "parameters": [
     {
      "name": "code",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 80,
       "title": "Code"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Lookup Asset Api V1 Assets Lookup Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets/{asset_id}": {
   "get": {
    "tags": [
     "assets"
    ],
    "summary": "Get Asset",
    "operationId": "get_asset_api_v1_assets__asset_id__get",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Asset Api V1 Assets  Asset Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "assets"
    ],
    "summary": "Update Asset",
    "operationId": "update_asset_api_v1_assets__asset_id__put",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AssetIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Asset Api V1 Assets  Asset Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets/{asset_id}/history": {
   "get": {
    "tags": [
     "assets"
    ],
    "summary": "Asset History",
    "description": "Every visit that marked this asset, newest first, with failed lines,\nreadings and photos, plus its defects.",
    "operationId": "asset_history_api_v1_assets__asset_id__history_get",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Asset History Api V1 Assets  Asset Id  History Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets/{asset_id}/tags": {
   "put": {
    "tags": [
     "assets"
    ],
    "summary": "Set Tags",
    "operationId": "set_tags_api_v1_assets__asset_id__tags_put",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TagsIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Tags Api V1 Assets  Asset Id  Tags Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets/{asset_id}/archive": {
   "post": {
    "tags": [
     "assets"
    ],
    "summary": "Archive Asset",
    "operationId": "archive_asset_api_v1_assets__asset_id__archive_post",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Asset Api V1 Assets  Asset Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assets/{asset_id}/restore": {
   "post": {
    "tags": [
     "assets"
    ],
    "summary": "Restore Asset",
    "operationId": "restore_asset_api_v1_assets__asset_id__restore_post",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Restore Asset Api V1 Assets  Asset Id  Restore Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/notes": {
   "get": {
    "tags": [
     "notes"
    ],
    "summary": "List Notes",
    "operationId": "list_notes_api_v1_notes_get",
    "parameters": [
     {
      "name": "entityType",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Entitytype"
      }
     },
     {
      "name": "entityId",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Entityid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Notes Api V1 Notes Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "notes"
    ],
    "summary": "Create Note",
    "operationId": "create_note_api_v1_notes_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__notes__router__NoteIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Note Api V1 Notes Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/notes/{note_id}": {
   "put": {
    "tags": [
     "notes"
    ],
    "summary": "Update Note",
    "operationId": "update_note_api_v1_notes__note_id__put",
    "parameters": [
     {
      "name": "note_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Note Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__notes__router__NoteIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Note Api V1 Notes  Note Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "notes"
    ],
    "summary": "Archive Note",
    "operationId": "archive_note_api_v1_notes__note_id__delete",
    "parameters": [
     {
      "name": "note_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Note Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Note Api V1 Notes  Note Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/search": {
   "get": {
    "tags": [
     "notes"
    ],
    "summary": "Search",
    "operationId": "search_api_v1_search_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 120,
       "title": "Q"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Search Api V1 Search Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/routines": {
   "get": {
    "tags": [
     "routines"
    ],
    "summary": "List Routines",
    "operationId": "list_routines_api_v1_properties__property_id__routines_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     },
     {
      "name": "archived",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Archived"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Routines Api V1 Properties  Property Id  Routines Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "routines"
    ],
    "summary": "Create Routine",
    "operationId": "create_routine_api_v1_properties__property_id__routines_post",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RoutineIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Routine Api V1 Properties  Property Id  Routines Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/routines/{routine_id}": {
   "get": {
    "tags": [
     "routines"
    ],
    "summary": "Get Routine",
    "operationId": "get_routine_api_v1_routines__routine_id__get",
    "parameters": [
     {
      "name": "routine_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Routine Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Routine Api V1 Routines  Routine Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "routines"
    ],
    "summary": "Update Routine",
    "operationId": "update_routine_api_v1_routines__routine_id__put",
    "parameters": [
     {
      "name": "routine_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Routine Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RoutineIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Routine Api V1 Routines  Routine Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/routines/{routine_id}/end": {
   "post": {
    "tags": [
     "routines"
    ],
    "summary": "End Routine",
    "operationId": "end_routine_api_v1_routines__routine_id__end_post",
    "parameters": [
     {
      "name": "routine_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Routine Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__routines__router__EndIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response End Routine Api V1 Routines  Routine Id  End Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/routines/{routine_id}/archive": {
   "post": {
    "tags": [
     "routines"
    ],
    "summary": "Archive Routine",
    "operationId": "archive_routine_api_v1_routines__routine_id__archive_post",
    "parameters": [
     {
      "name": "routine_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Routine Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Routine Api V1 Routines  Routine Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/routines/{routine_id}/occurrences": {
   "get": {
    "tags": [
     "routines"
    ],
    "summary": "Routine Occurrences",
    "operationId": "routine_occurrences_api_v1_routines__routine_id__occurrences_get",
    "parameters": [
     {
      "name": "routine_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Routine Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Routine Occurrences Api V1 Routines  Routine Id  Occurrences Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/properties/{property_id}/occurrences": {
   "get": {
    "tags": [
     "routines"
    ],
    "summary": "Property Occurrences",
    "operationId": "property_occurrences_api_v1_properties__property_id__occurrences_get",
    "parameters": [
     {
      "name": "property_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Property Id"
      }
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "From"
      }
     },
     {
      "name": "to",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "To"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Property Occurrences Api V1 Properties  Property Id  Occurrences Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/routines/generate": {
   "post": {
    "tags": [
     "routines"
    ],
    "summary": "Generate Now",
    "operationId": "generate_now_api_v1_routines_generate_post",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Generate Now Api V1 Routines Generate Post"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks": {
   "get": {
    "tags": [
     "tasks"
    ],
    "summary": "List Tasks",
    "operationId": "list_tasks_api_v1_tasks_get",
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 120
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 40
        },
        {
         "type": "null"
        }
       ],
       "title": "Category"
      }
     },
     {
      "name": "propertyId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Propertyid"
      }
     },
     {
      "name": "clientId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Clientid"
      }
     },
     {
      "name": "assignee",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 64
        },
        {
         "type": "null"
        }
       ],
       "title": "Assignee"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 120
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "From"
      }
     },
     {
      "name": "to",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "To"
      }
     },
     {
      "name": "overdue",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Overdue"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Tasks Api V1 Tasks Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "tasks"
    ],
    "summary": "Create Task",
    "operationId": "create_task_api_v1_tasks_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TaskIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Task Api V1 Tasks Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/summary": {
   "get": {
    "tags": [
     "tasks"
    ],
    "summary": "Task Summary",
    "operationId": "task_summary_api_v1_tasks_summary_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Task Summary Api V1 Tasks Summary Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}": {
   "get": {
    "tags": [
     "tasks"
    ],
    "summary": "Get Task",
    "operationId": "get_task_api_v1_tasks__task_id__get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Task Api V1 Tasks  Task Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "tasks"
    ],
    "summary": "Update Task",
    "operationId": "update_task_api_v1_tasks__task_id__put",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TaskIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Task Api V1 Tasks  Task Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/assign": {
   "post": {
    "tags": [
     "tasks"
    ],
    "summary": "Assign Task",
    "operationId": "assign_task_api_v1_tasks__task_id__assign_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AssignIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Assign Task Api V1 Tasks  Task Id  Assign Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/status": {
   "post": {
    "tags": [
     "tasks"
    ],
    "summary": "Set Status",
    "operationId": "set_status_api_v1_tasks__task_id__status_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__tasks__router__StatusIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Status Api V1 Tasks  Task Id  Status Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/timeline": {
   "get": {
    "tags": [
     "tasks"
    ],
    "summary": "Task Timeline",
    "operationId": "task_timeline_api_v1_tasks__task_id__timeline_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "default": 100,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Task Timeline Api V1 Tasks  Task Id  Timeline Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/records": {
   "get": {
    "tags": [
     "tasks"
    ],
    "summary": "List Records",
    "operationId": "list_records_api_v1_tasks__task_id__records_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Records Api V1 Tasks  Task Id  Records Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/records/bulk": {
   "post": {
    "tags": [
     "tasks"
    ],
    "summary": "Bulk Records",
    "description": "Pass all, Not tested or Copy last test result across the work sheet (or the records given).",
    "operationId": "bulk_records_api_v1_tasks__task_id__records_bulk_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__tasks__router__BulkIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Bulk Records Api V1 Tasks  Task Id  Records Bulk Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/photos": {
   "get": {
    "tags": [
     "tasks"
    ],
    "summary": "Task Photos",
    "description": "Photos attached to this task's work sheet records and lines.",
    "operationId": "task_photos_api_v1_tasks__task_id__photos_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Task Photos Api V1 Tasks  Task Id  Photos Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/records/{record_id}": {
   "put": {
    "tags": [
     "tasks"
    ],
    "summary": "Update Record",
    "operationId": "update_record_api_v1_tasks__task_id__records__record_id__put",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     },
     {
      "name": "record_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Record Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RecordIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Record Api V1 Tasks  Task Id  Records  Record Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/tasks/{task_id}/records/{record_id}/items/{item_id}": {
   "put": {
    "tags": [
     "tasks"
    ],
    "summary": "Update Record Item",
    "operationId": "update_record_item_api_v1_tasks__task_id__records__record_id__items__item_id__put",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     },
     {
      "name": "record_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Record Id"
      }
     },
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__tasks__router__ItemIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Record Item Api V1 Tasks  Task Id  Records  Record Id  Items  Item Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/products": {
   "get": {
    "tags": [
     "products"
    ],
    "summary": "List Products",
    "operationId": "list_products_api_v1_products_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 100
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "supplierId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Supplierid"
      }
     },
     {
      "name": "includeArchived",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Includearchived"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Products Api V1 Products Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "products"
    ],
    "summary": "Create Product",
    "operationId": "create_product_api_v1_products_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ProductIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Product Api V1 Products Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/products/price": {
   "get": {
    "tags": [
     "products"
    ],
    "summary": "Resolve Price",
    "operationId": "resolve_price_api_v1_products_price_get",
    "parameters": [
     {
      "name": "productId",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Productid"
      }
     },
     {
      "name": "clientId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Clientid"
      }
     },
     {
      "name": "taskId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Taskid"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Resolve Price Api V1 Products Price Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/products/{product_id}": {
   "get": {
    "tags": [
     "products"
    ],
    "summary": "Get Product",
    "operationId": "get_product_api_v1_products__product_id__get",
    "parameters": [
     {
      "name": "product_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Product Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Product Api V1 Products  Product Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "products"
    ],
    "summary": "Update Product",
    "operationId": "update_product_api_v1_products__product_id__put",
    "parameters": [
     {
      "name": "product_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Product Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ProductIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Product Api V1 Products  Product Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/products/{product_id}/archive": {
   "post": {
    "tags": [
     "products"
    ],
    "summary": "Archive Product",
    "operationId": "archive_product_api_v1_products__product_id__archive_post",
    "parameters": [
     {
      "name": "product_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Product Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Product Api V1 Products  Product Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/products/{product_id}/restore": {
   "post": {
    "tags": [
     "products"
    ],
    "summary": "Restore Product",
    "operationId": "restore_product_api_v1_products__product_id__restore_post",
    "parameters": [
     {
      "name": "product_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Product Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Restore Product Api V1 Products  Product Id  Restore Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/products/import": {
   "post": {
    "tags": [
     "products"
    ],
    "summary": "Import Catalogue",
    "description": "A supplier's price list as CSV: match on the supplier's code, update cost\n(and sell, when a markup is given), add what is new. Check first with\ndryRun, then run it.",
    "operationId": "import_catalogue_api_v1_products_import_post",
    "requestBody": {
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_import_catalogue_api_v1_products_import_post"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Import Catalogue Api V1 Products Import Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/price-books": {
   "get": {
    "tags": [
     "products"
    ],
    "summary": "List Books",
    "operationId": "list_books_api_v1_price_books_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response List Books Api V1 Price Books Get"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "products"
    ],
    "summary": "Create Book",
    "operationId": "create_book_api_v1_price_books_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BookIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Create Book Api V1 Price Books Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/price-books/{book_id}": {
   "get": {
    "tags": [
     "products"
    ],
    "summary": "Get Book",
    "operationId": "get_book_api_v1_price_books__book_id__get",
    "parameters": [
     {
      "name": "book_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Book Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Book Api V1 Price Books  Book Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "products"
    ],
    "summary": "Update Book",
    "operationId": "update_book_api_v1_price_books__book_id__put",
    "parameters": [
     {
      "name": "book_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Book Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BookIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Book Api V1 Price Books  Book Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/price-books/{book_id}/lines": {
   "put": {
    "tags": [
     "products"
    ],
    "summary": "Set Book Lines",
    "operationId": "set_book_lines_api_v1_price_books__book_id__lines_put",
    "parameters": [
     {
      "name": "book_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Book Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BookLinesIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Book Lines Api V1 Price Books  Book Id  Lines Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/price-books/{book_id}/archive": {
   "post": {
    "tags": [
     "products"
    ],
    "summary": "Archive Book",
    "operationId": "archive_book_api_v1_price_books__book_id__archive_post",
    "parameters": [
     {
      "name": "book_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Book Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Book Api V1 Price Books  Book Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes": {
   "get": {
    "tags": [
     "quotes"
    ],
    "summary": "List Quotes",
    "operationId": "list_quotes_api_v1_quotes_get",
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "propertyId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Propertyid"
      }
     },
     {
      "name": "clientId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Clientid"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 100
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Quotes Api V1 Quotes Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Create Quote",
    "operationId": "create_quote_api_v1_quotes_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/QuoteIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Quote Api V1 Quotes Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}": {
   "get": {
    "tags": [
     "quotes"
    ],
    "summary": "Get Quote",
    "operationId": "get_quote_api_v1_quotes__quote_id__get",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Quote Api V1 Quotes  Quote Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "quotes"
    ],
    "summary": "Update Quote",
    "operationId": "update_quote_api_v1_quotes__quote_id__put",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/QuoteIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Quote Api V1 Quotes  Quote Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/revisions/{revision}": {
   "get": {
    "tags": [
     "quotes"
    ],
    "summary": "Get Revision",
    "operationId": "get_revision_api_v1_quotes__quote_id__revisions__revision__get",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     },
     {
      "name": "revision",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Revision"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Revision Api V1 Quotes  Quote Id  Revisions  Revision  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/defects/{defect_id}/products": {
   "get": {
    "tags": [
     "quotes"
    ],
    "summary": "Defect Products",
    "description": "Products that fix this defect, priced for its client.",
    "operationId": "defect_products_api_v1_defects__defect_id__products_get",
    "parameters": [
     {
      "name": "defect_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Defect Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Defect Products Api V1 Defects  Defect Id  Products Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/from-defects": {
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Quote From Defects",
    "description": "One defect quote for defects at one property, grouped by asset, with suggested products at the client's price.",
    "operationId": "quote_from_defects_api_v1_quotes_from_defects_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FromDefectsIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Quote From Defects Api V1 Quotes From Defects Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/lines": {
   "put": {
    "tags": [
     "quotes"
    ],
    "summary": "Set Lines",
    "description": "Replace the lines: lines with an id are updated, new ones added, missing ones archived.",
    "operationId": "set_lines_api_v1_quotes__quote_id__lines_put",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__quotes__router__LinesIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Lines Api V1 Quotes  Quote Id  Lines Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/pdf": {
   "get": {
    "tags": [
     "quotes"
    ],
    "summary": "Quote Pdf",
    "operationId": "quote_pdf_api_v1_quotes__quote_id__pdf_get",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     },
     {
      "name": "download",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Download"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/recipients": {
   "get": {
    "tags": [
     "quotes"
    ],
    "summary": "Recipients",
    "operationId": "recipients_api_v1_quotes__quote_id__recipients_get",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Recipients Api V1 Quotes  Quote Id  Recipients Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/send": {
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Send Quote",
    "description": "Freeze this revision as sent. With `email`, also email the PDF to the people flagged for quotes.",
    "operationId": "send_quote_api_v1_quotes__quote_id__send_post",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__quotes__router__SendIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Send Quote Api V1 Quotes  Quote Id  Send Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/approve": {
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Approve Quote",
    "description": "The office records the client's approval (by phone or email). Online approval comes through /q/{token}.",
    "operationId": "approve_quote_api_v1_quotes__quote_id__approve_post",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ApproveIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Approve Quote Api V1 Quotes  Quote Id  Approve Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/decline": {
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Decline Quote",
    "operationId": "decline_quote_api_v1_quotes__quote_id__decline_post",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DeclineIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Decline Quote Api V1 Quotes  Quote Id  Decline Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/void": {
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Void Quote",
    "operationId": "void_quote_api_v1_quotes__quote_id__void_post",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DeclineIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Void Quote Api V1 Quotes  Quote Id  Void Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/reminders": {
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Set Reminders",
    "operationId": "set_reminders_api_v1_quotes__quote_id__reminders_post",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RemindersIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Reminders Api V1 Quotes  Quote Id  Reminders Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/quotes/{quote_id}/convert": {
   "post": {
    "tags": [
     "quotes"
    ],
    "summary": "Convert Quote",
    "description": "An approved quote becomes one task: repair for a defect quote, install for a sales quote. The lines the\nclient took become the task's charges, the approved total its authorised amount, and its defects move to scheduled.",
    "operationId": "convert_quote_api_v1_quotes__quote_id__convert_post",
    "parameters": [
     {
      "name": "quote_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Quote Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ConvertIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Convert Quote Api V1 Quotes  Quote Id  Convert Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices": {
   "get": {
    "tags": [
     "invoices"
    ],
    "summary": "List Invoices",
    "operationId": "list_invoices_api_v1_invoices_get",
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "clientId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Clientid"
      }
     },
     {
      "name": "billingAccountId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Billingaccountid"
      }
     },
     {
      "name": "taskId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Taskid"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 100
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "name": "count",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Count"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Invoices Api V1 Invoices Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "invoices"
    ],
    "summary": "Create Invoice",
    "operationId": "create_invoice_api_v1_invoices_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InvoiceIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Invoice Api V1 Invoices Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/ready": {
   "get": {
    "tags": [
     "invoices"
    ],
    "summary": "Ready To Invoice",
    "description": "Tasks with billable charges not on an invoice yet, by billing account.",
    "operationId": "ready_to_invoice_api_v1_invoices_ready_get",
    "parameters": [
     {
      "name": "includeOpen",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Includeopen"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Ready To Invoice Api V1 Invoices Ready Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}": {
   "get": {
    "tags": [
     "invoices"
    ],
    "summary": "Get Invoice",
    "operationId": "get_invoice_api_v1_invoices__invoice_id__get",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Invoice Api V1 Invoices  Invoice Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "invoices"
    ],
    "summary": "Update Invoice",
    "operationId": "update_invoice_api_v1_invoices__invoice_id__put",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InvoiceIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Invoice Api V1 Invoices  Invoice Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/from-tasks": {
   "post": {
    "tags": [
     "invoices"
    ],
    "summary": "Invoice From Tasks",
    "description": "One draft invoice for tasks of one billing account, a group of lines per task from its open charges.",
    "operationId": "invoice_from_tasks_api_v1_invoices_from_tasks_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FromTasksIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Invoice From Tasks Api V1 Invoices From Tasks Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}/lines": {
   "put": {
    "tags": [
     "invoices"
    ],
    "summary": "Set Lines",
    "operationId": "set_lines_api_v1_invoices__invoice_id__lines_put",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__invoices__router__LinesIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Lines Api V1 Invoices  Invoice Id  Lines Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}/pdf": {
   "get": {
    "tags": [
     "invoices"
    ],
    "summary": "Invoice Pdf",
    "operationId": "invoice_pdf_api_v1_invoices__invoice_id__pdf_get",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     },
     {
      "name": "download",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Download"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}/issue": {
   "post": {
    "tags": [
     "invoices"
    ],
    "summary": "Issue Invoice",
    "description": "Number it, freeze it, store the PDF. From here it only changes by payment, credit note or void.",
    "operationId": "issue_invoice_api_v1_invoices__invoice_id__issue_post",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/IssueIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Issue Invoice Api V1 Invoices  Invoice Id  Issue Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}/send": {
   "post": {
    "tags": [
     "invoices"
    ],
    "summary": "Send Invoice",
    "operationId": "send_invoice_api_v1_invoices__invoice_id__send_post",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__invoices__router__SendIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Send Invoice Api V1 Invoices  Invoice Id  Send Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}/payments": {
   "post": {
    "tags": [
     "invoices"
    ],
    "summary": "Add Payment",
    "operationId": "add_payment_api_v1_invoices__invoice_id__payments_post",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PaymentIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Payment Api V1 Invoices  Invoice Id  Payments Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}/credit-note": {
   "post": {
    "tags": [
     "invoices"
    ],
    "summary": "Credit Note",
    "description": "A draft credit note against an issued invoice: the whole invoice, or chosen lines and quantities.",
    "operationId": "credit_note_api_v1_invoices__invoice_id__credit_note_post",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreditIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Credit Note Api V1 Invoices  Invoice Id  Credit Note Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/invoices/{invoice_id}/void": {
   "post": {
    "tags": [
     "invoices"
    ],
    "summary": "Void Invoice",
    "operationId": "void_invoice_api_v1_invoices__invoice_id__void_post",
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Invoice Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VoidIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Void Invoice Api V1 Invoices  Invoice Id  Void Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/insights": {
   "get": {
    "tags": [
     "insights"
    ],
    "summary": "Insights",
    "operationId": "insights_api_v1_insights_get",
    "parameters": [
     {
      "name": "months",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 24,
       "minimum": 1,
       "default": 12,
       "title": "Months"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Insights Api V1 Insights Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contracts": {
   "get": {
    "tags": [
     "contracts"
    ],
    "summary": "List Contracts",
    "operationId": "list_contracts_api_v1_contracts_get",
    "parameters": [
     {
      "name": "clientId",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Clientid"
      }
     },
     {
      "name": "state",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "State"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 100
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Contracts Api V1 Contracts Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "contracts"
    ],
    "summary": "Create Contract",
    "operationId": "create_contract_api_v1_contracts_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ContractIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Contract Api V1 Contracts Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contracts/{contract_id}": {
   "get": {
    "tags": [
     "contracts"
    ],
    "summary": "Get Contract",
    "operationId": "get_contract_api_v1_contracts__contract_id__get",
    "parameters": [
     {
      "name": "contract_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contract Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Contract Api V1 Contracts  Contract Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "contracts"
    ],
    "summary": "Update Contract",
    "operationId": "update_contract_api_v1_contracts__contract_id__put",
    "parameters": [
     {
      "name": "contract_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contract Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ContractIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Contract Api V1 Contracts  Contract Id  Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contracts/{contract_id}/renew": {
   "post": {
    "tags": [
     "contracts"
    ],
    "summary": "Renew Contract",
    "operationId": "renew_contract_api_v1_contracts__contract_id__renew_post",
    "parameters": [
     {
      "name": "contract_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contract Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Renew Contract Api V1 Contracts  Contract Id  Renew Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contracts/{contract_id}/end": {
   "post": {
    "tags": [
     "contracts"
    ],
    "summary": "End Contract",
    "operationId": "end_contract_api_v1_contracts__contract_id__end_post",
    "parameters": [
     {
      "name": "contract_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contract Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__contracts__router__EndIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response End Contract Api V1 Contracts  Contract Id  End Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contracts/{contract_id}/archive": {
   "post": {
    "tags": [
     "contracts"
    ],
    "summary": "Archive Contract",
    "operationId": "archive_contract_api_v1_contracts__contract_id__archive_post",
    "parameters": [
     {
      "name": "contract_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contract Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Archive Contract Api V1 Contracts  Contract Id  Archive Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contracts/{contract_id}/invoice": {
   "post": {
    "tags": [
     "contracts"
    ],
    "summary": "Invoice Contract",
    "operationId": "invoice_contract_api_v1_contracts__contract_id__invoice_post",
    "parameters": [
     {
      "name": "contract_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Contract Id"
      }
     }
    ],
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Invoice Contract Api V1 Contracts  Contract Id  Invoice Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/contracts/invoice-due": {
   "post": {
    "tags": [
     "contracts"
    ],
    "summary": "Invoice Due",
    "description": "One draft per contract with periods due, each covering all of its due periods.",
    "operationId": "invoice_due_api_v1_contracts_invoice_due_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InvoiceDueIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Invoice Due Api V1 Contracts Invoice Due Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  }
 }
}
