{
    "openapi": "3.1.0",
    "info": {
        "title": "Maintainly API Docs",
        "version": "1.0.0",
        "description": "Welcome to the **Maintainly API**. This API allows developers to integrate with Maintainly to manage maintenance data, automate workflows, and build custom tools. You can learn more about the Maintainly platform at [https://maintainly.com](https://maintainly.com).\n\n---\n\n## Disclaimer\n\nThe structure, endpoints, request formats, and response schemas of this API may change at any time without prior notice.\n\nWe recommend regularly reviewing this documentation to stay up to date with any changes that may affect your integration.\n\nWhile we aim to minimize disruptions, we will provide advance notice of major changes whenever possible.\n\n---\n\n## Authentication\n\nThe **Maintainly API** uses **API Tokens** for authentication. You can generate a token at [https://app.maintainly.com/settings/tokens](https://app.maintainly.com/settings/tokens).\n\n> Tokens are only displayed once \u2014 be sure to copy and store them securely.\n\nWhen you create a new token, you'll also be shown an example **cURL** command to help you get started. This command fetches your **User Resource** from the `/me` endpoint.\n\n---\n\n### Organisation API Key\n\nEach organisation has an 8-character **API Key**, used to identify your organisation in some requests. You can find this key under your organisation settings at [https://app.maintainly.com/orgs](https://app.maintainly.com/orgs).\n\n---\n\n### Sandboxing\n\nTo test the API without affecting your live data, you can enable a **Test Organisation** filled with dummy data. This can be toggled in your organisation settings.\n\n> The test organisation's data is reset every two weeks.\n\n---\n\n## Schema\n\nAll API access is over **HTTPS** and is served from `https://app.maintainly.com/v1`. All requests and responses use **JSON** format.\n\n---\n\n### Timestamps\nSystem-generated timestamps (e.g., when a task is created) are returned in **ISO 8601** format, in **UTC**, and use the `_at` suffix:\n```json\n\"created_at\": \"2019-05-10T12:15:04+00:00\"\n```\nUser-entered timestamps (e.g., downtime start/stop times) are returned in the original format as entered, without timezone data:\n```json\n\"start_time\": \"2019-05-10 00:10:00\"\n```\n---\n\n### Resource Representations\n\n#### Summary\n\nWhen listing resources, the API returns a **summary** representation\u2014a subset of attributes optimized for performance.\n\n> Example: Listing tasks returns task summaries without downtimes, events, or materials used.\n\n#### Detailed\n\nFetching a single resource usually returns the **detailed** representation, which includes all available attributes, subject to your access permissions.\n\n> Example: Fetching a single task includes downtimes, work logs, materials used, and related events.\n\n---\n\n### Pagination\n\nList endpoints are paginated. The response carries a `links` and a `meta` object describing the current page, and the following query parameters control it:\n\n| Parameter | Description |\n| --- | --- |\n| `page` | The page to fetch. Defaults to `1`. |\n| `per_page` | Rows per page. Defaults to `25`, maximum `100`. Larger values are capped rather than rejected. |\n\nFeed-style endpoints use cursor pagination instead of page numbers \u2014 asset activity is one. Follow `links.next` there; `page` and `per_page` do not apply.\n\n> Fetching a large dataset with `per_page=100` costs a quarter of the requests that the default page size does \u2014 use it to stay inside the rate limit.\n\n---\n\n## Errors\n\nEvery error response is JSON and carries a human-readable `message`:\n\n```json\n{ \"message\": \"This action is unauthorized.\" }\n```\n\nA `422` adds an `errors` object keyed by field name, each holding an array of messages:\n\n```json\n{\n  \"message\": \"The title field is required.\",\n  \"errors\": { \"title\": [\"The title field is required.\"] }\n}\n```\n\n| Status | Meaning |\n| --- | --- |\n| `401` | The token is missing, malformed, or has been revoked. |\n| `403` | The token is valid but your profile lacks permission for this action. |\n| `404` | The resource does not exist, or it exists in an organisation you cannot see. |\n| `422` | Validation failed. Read `errors` for the per-field detail. |\n| `429` | Rate limit exceeded. See *Rate Limiting* below. |\n\n> A `404` is also returned in place of a `403` when confirming that a record exists would\n> itself leak information. Treat \"not found\" as \"not found or not yours\".\n\n---\n\n## Rate Limiting\n\nAPI usage is currently limited to **100 requests per minute** for both **Personal Access Tokens** and **Third-Party Apps**.\n\nOnce the limit is exceeded the API responds `429 Too Many Requests` with a `Retry-After` header, in seconds. Wait that long before retrying. The same response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (a Unix timestamp), so a client can back off without guessing.\n\nSome endpoints carry their own tighter limits on top of this one \u2014 exports, imports, uploads and PDF generation among them.\n\n> If you need a higher limit, please contact us."
    },
    "servers": [
        {
            "url": "https://app.maintainly.com/v1"
        }
    ],
    "tags": [
        {
            "name": "Me"
        },
        {
            "name": "Alerts"
        },
        {
            "name": "Assets \u00bb Alerts"
        },
        {
            "name": "Assets \u00bb Automations"
        },
        {
            "name": "Assets"
        },
        {
            "name": "Assets \u00bb Locations"
        },
        {
            "name": "Assets \u00bb Metrics"
        },
        {
            "name": "Assets \u00bb Files"
        },
        {
            "name": "Assets \u00bb Types"
        },
        {
            "name": "Assets \u00bb Activities"
        },
        {
            "name": "Assets \u00bb Readings"
        },
        {
            "name": "Assets \u00bb Tasks"
        },
        {
            "name": "Automations"
        },
        {
            "name": "Billing Codes"
        },
        {
            "name": "Checklists"
        },
        {
            "name": "Custom Fields"
        },
        {
            "name": "Cycle Counts"
        },
        {
            "name": "Events \u00bb Lists"
        },
        {
            "name": "Events"
        },
        {
            "name": "Inventory"
        },
        {
            "name": "Inventory \u00bb Log"
        },
        {
            "name": "Labels"
        },
        {
            "name": "Materials"
        },
        {
            "name": "Materials \u00bb Units"
        },
        {
            "name": "Materials \u00bb Files"
        },
        {
            "name": "Materials \u00bb Suppliers"
        },
        {
            "name": "Materials \u00bb Inventory"
        },
        {
            "name": "Metrics"
        },
        {
            "name": "Metrics \u00bb Units"
        },
        {
            "name": "Orders"
        },
        {
            "name": "Orders \u00bb Materials"
        },
        {
            "name": "Orders \u00bb Shipments"
        },
        {
            "name": "Overtime Rates"
        },
        {
            "name": "Profiles \u00bb Roles"
        },
        {
            "name": "Profiles"
        },
        {
            "name": "Profiles \u00bb Companies"
        },
        {
            "name": "Readings"
        },
        {
            "name": "Templates"
        },
        {
            "name": "Templates \u00bb Files"
        },
        {
            "name": "Sites"
        },
        {
            "name": "Sites \u00bb Users"
        },
        {
            "name": "Stores"
        },
        {
            "name": "Suppliers"
        },
        {
            "name": "Tasks"
        },
        {
            "name": "Tasks \u00bb Planned Start Date"
        },
        {
            "name": "Tasks \u00bb Due Date"
        },
        {
            "name": "Tasks \u00bb Status"
        },
        {
            "name": "Tasks \u00bb Files"
        },
        {
            "name": "Tasks \u00bb Metrics"
        },
        {
            "name": "Tasks \u00bb Readings"
        },
        {
            "name": "Tasks \u00bb Comments"
        },
        {
            "name": "Tasks \u00bb Comments \u00bb Files"
        },
        {
            "name": "Tasks \u00bb Title"
        },
        {
            "name": "Tasks \u00bb Asset"
        },
        {
            "name": "Tasks \u00bb Checklists"
        },
        {
            "name": "Tasks \u00bb Check Items"
        },
        {
            "name": "Tasks \u00bb Labels"
        },
        {
            "name": "Tasks \u00bb Events"
        },
        {
            "name": "Tasks \u00bb Downtime"
        },
        {
            "name": "Tasks \u00bb Work"
        },
        {
            "name": "Tasks \u00bb Assignees"
        },
        {
            "name": "Tasks \u00bb Materials"
        },
        {
            "name": "Tasks \u00bb Asset Replacements"
        },
        {
            "name": "Timesheets \u00bb Entries"
        },
        {
            "name": "Timesheets"
        },
        {
            "name": "Timesheets \u00bb Status"
        },
        {
            "name": "Transfers"
        },
        {
            "name": "Work Codes \u00bb Categories"
        },
        {
            "name": "Work Codes"
        },
        {
            "name": "Work Requests"
        },
        {
            "name": "Work Types"
        }
    ],
    "security": [
        {
            "http": []
        }
    ],
    "paths": {
        "/{organisation}/alerts": {
            "get": {
                "operationId": "v1.org.alerts.list",
                "summary": "List Alerts",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `AlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AlertCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets": {
            "post": {
                "operationId": "v1.org.assets.create",
                "summary": "Create Asset",
                "tags": [
                    "Assets"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateAssetRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AssetSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AssetSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "get": {
                "operationId": "v1.org.assets.list",
                "summary": "List Assets",
                "tags": [
                    "Assets"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "in_store",
                        "in": "query",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    },
                    {
                        "name": "top_level",
                        "in": "query",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    },
                    {
                        "name": "with_tasks_count",
                        "in": "query",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `AssetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AssetCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}": {
            "put": {
                "operationId": "v1.org.assets.update",
                "summary": "Update Asset",
                "tags": [
                    "Assets"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateAssetRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AssetSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AssetSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.assets.delete",
                "summary": "Delete Asset",
                "tags": [
                    "Assets"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "get": {
                "operationId": "v1.org.assets.show",
                "summary": "Get Asset",
                "tags": [
                    "Assets"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`AssetDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/AssetDetailResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "path",
                                                        "site",
                                                        "store",
                                                        "event_list",
                                                        "parent"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/activity": {
            "get": {
                "operationId": "v1.org.assets.activity.list",
                "summary": "List Asset Activities",
                "tags": [
                    "Assets \u00bb Activities"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `AssetActivityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AssetActivityResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "next_cursor": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The \"cursor\" that points to the next set of items."
                                                },
                                                "prev_cursor": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The \"cursor\" that points to the previous set of items."
                                                }
                                            },
                                            "required": [
                                                "path",
                                                "per_page",
                                                "next_cursor",
                                                "prev_cursor"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/alerts": {
            "get": {
                "operationId": "v1.org.assets.alerts.list",
                "summary": "List Asset Alerts",
                "tags": [
                    "Assets \u00bb Alerts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `AlertSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AlertSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.assets.alerts.create",
                "summary": "Create Alert",
                "tags": [
                    "Assets \u00bb Alerts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateAlertRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AlertResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/alerts/{alert}": {
            "get": {
                "operationId": "v1.org.assets.alerts.show",
                "summary": "Show Alert",
                "tags": [
                    "Assets \u00bb Alerts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "The alert guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`AlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AlertResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.assets.alerts.update",
                "summary": "Update Alert",
                "tags": [
                    "Assets \u00bb Alerts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "The alert guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateAlertRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AlertResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/alerts/{alert}/archive": {
            "patch": {
                "operationId": "v1.org.assets.alerts.archive",
                "summary": "Archive Alert",
                "tags": [
                    "Assets \u00bb Alerts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "The alert guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`AlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AlertResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/alerts/{alert}/unarchive": {
            "patch": {
                "operationId": "v1.org.assets.alerts.unarchive",
                "summary": "Unarchive Alert",
                "tags": [
                    "Assets \u00bb Alerts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "The alert guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`AlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AlertResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/automations": {
            "get": {
                "operationId": "v1.org.assets.automations.list",
                "summary": "List Asset Automations",
                "tags": [
                    "Assets \u00bb Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AutomationSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/automations/metric": {
            "post": {
                "operationId": "v1.org.assets.automations.metric.create",
                "summary": "Create Metric Automation",
                "tags": [
                    "Assets \u00bb Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateMetricAutomationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/automations/time": {
            "post": {
                "operationId": "v1.org.assets.automations.time.create",
                "summary": "Create Time Automation",
                "tags": [
                    "Assets \u00bb Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateTimeAutomationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/automations/{automation}": {
            "get": {
                "operationId": "v1.org.assets.automations.show",
                "summary": "Show Asset Automation",
                "tags": [
                    "Assets \u00bb Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "automation",
                        "in": "path",
                        "required": true,
                        "description": "The automation guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/files/{media}": {
            "put": {
                "operationId": "v1.org.assets.files.update",
                "summary": "Update Asset File",
                "tags": [
                    "Assets \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "media",
                        "in": "path",
                        "required": true,
                        "description": "The media UUID",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateResourceFileRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/FileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.assets.files.destroy",
                "summary": "Delete Asset File",
                "tags": [
                    "Assets \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "media",
                        "in": "path",
                        "required": true,
                        "description": "The media UUID",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/files": {
            "get": {
                "operationId": "v1.org.assets.files.list",
                "summary": "List Asset Files",
                "tags": [
                    "Assets \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/FileResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/locations": {
            "post": {
                "operationId": "v1.org.assets.locations.create",
                "summary": "Create Asset Location",
                "tags": [
                    "Assets \u00bb Locations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateLocationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LocationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/metrics": {
            "post": {
                "operationId": "v1.org.assets.metrics.create",
                "summary": "Create Asset Metrics",
                "tags": [
                    "Assets \u00bb Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateMetricRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`MetricSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MetricSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "get": {
                "operationId": "v1.org.assets.metrics.list",
                "summary": "List Asset Metrics",
                "tags": [
                    "Assets \u00bb Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `MetricDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AssetMetricCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/metrics/{metric}/readings": {
            "post": {
                "operationId": "v1.org.assets.metrics.readings.create",
                "summary": "Create Asset Metric Reading",
                "tags": [
                    "Assets \u00bb Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "metric",
                        "in": "path",
                        "required": true,
                        "description": "The metric guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/CreateReadingRequest"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "task": {
                                                "type": "string"
                                            },
                                            "value": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ReadingSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ReadingSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/readings": {
            "get": {
                "operationId": "v1.org.assets.readings.list",
                "summary": "List Asset Readings",
                "tags": [
                    "Assets \u00bb Readings"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `ReadingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AssetReadingCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/assets/{asset}/tasks/upcoming": {
            "get": {
                "operationId": "v1.org.assets.tasks.upcoming",
                "summary": "List Upcoming Tasks",
                "tags": [
                    "Assets \u00bb Tasks"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "asset",
                        "in": "path",
                        "required": true,
                        "description": "The asset guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`UpcomingTaskCollection`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/UpcomingTaskCollection"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/assets/types": {
            "get": {
                "operationId": "v1.org.assets.types.list",
                "summary": "List Asset Types",
                "tags": [
                    "Assets \u00bb Types"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `AssetTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AssetTypeResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/{organisation}/automations": {
            "get": {
                "operationId": "v1.org.automations.list",
                "summary": "List Automations",
                "tags": [
                    "Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `AutomationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/automations/metric/{automation}": {
            "put": {
                "operationId": "v1.org.automations.metric.update",
                "summary": "Update Metric Automation",
                "tags": [
                    "Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "automation",
                        "in": "path",
                        "required": true,
                        "description": "The automation guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateMetricAutomationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/automations/time/{automation}": {
            "put": {
                "operationId": "v1.org.automations.time.update",
                "summary": "Update Time Automation",
                "tags": [
                    "Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "automation",
                        "in": "path",
                        "required": true,
                        "description": "The automation guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateTimeAutomationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/automations/{automation}/archive": {
            "patch": {
                "operationId": "v1.org.automations.archive",
                "summary": "Archive Automation",
                "tags": [
                    "Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "automation",
                        "in": "path",
                        "required": true,
                        "description": "The automation guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/automations/{automation}/unarchive": {
            "patch": {
                "operationId": "v1.org.automations.unarchive",
                "summary": "Unarchive Automation",
                "tags": [
                    "Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "automation",
                        "in": "path",
                        "required": true,
                        "description": "The automation guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`AutomationSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AutomationSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/automations/{automation}": {
            "delete": {
                "operationId": "v1.org.automations.destroy",
                "summary": "Delete Automation",
                "tags": [
                    "Automations"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "automation",
                        "in": "path",
                        "required": true,
                        "description": "The automation guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Automation has been deleted."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/billing-codes": {
            "get": {
                "operationId": "v1.org.billingCodes.list",
                "summary": "List Billing Codes",
                "tags": [
                    "Billing Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `BillingCodeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/BillingCodeResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "v1.org.billingCodes.create",
                "summary": "Create Billing Code",
                "tags": [
                    "Billing Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateBillingCodeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`BillingCodeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/BillingCodeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/billing-codes/{billingCode}": {
            "get": {
                "operationId": "v1.org.billingCodes.show",
                "summary": "Get Billing Code",
                "tags": [
                    "Billing Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "billingCode",
                        "in": "path",
                        "required": true,
                        "description": "The billing code guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`BillingCodeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/BillingCodeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.billingCodes.update",
                "summary": "Update Billing Code",
                "tags": [
                    "Billing Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "billingCode",
                        "in": "path",
                        "required": true,
                        "description": "The billing code guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateBillingCodeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`BillingCodeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/BillingCodeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.billingCodes.delete",
                "summary": "Delete Billing Code",
                "tags": [
                    "Billing Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "billingCode",
                        "in": "path",
                        "required": true,
                        "description": "The billing code guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/checklists": {
            "get": {
                "operationId": "v1.org.checklists.list",
                "summary": "List Checklists",
                "tags": [
                    "Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `ChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ChecklistResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.checklists.create",
                "summary": "Create Checklist",
                "tags": [
                    "Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateChecklistRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/checklists/{checklist}": {
            "get": {
                "operationId": "v1.org.checklists.show",
                "summary": "Get Checklist",
                "tags": [
                    "Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "checklist",
                        "in": "path",
                        "required": true,
                        "description": "The checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.checklists.update",
                "summary": "Update Checklist",
                "tags": [
                    "Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "checklist",
                        "in": "path",
                        "required": true,
                        "description": "The checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateChecklistRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.checklists.destroy",
                "summary": "Delete Checklist",
                "tags": [
                    "Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "checklist",
                        "in": "path",
                        "required": true,
                        "description": "The checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/checklists/{checklist}/archive": {
            "patch": {
                "operationId": "v1.org.checklists.archive",
                "summary": "Archive Checklist",
                "tags": [
                    "Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "checklist",
                        "in": "path",
                        "required": true,
                        "description": "The checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/checklists/{checklist}/unarchive": {
            "patch": {
                "operationId": "v1.org.checklists.unarchive",
                "summary": "Unarchive Checklist",
                "tags": [
                    "Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "checklist",
                        "in": "path",
                        "required": true,
                        "description": "The checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/custom-fields": {
            "get": {
                "operationId": "v1.org.customFields.list",
                "summary": "List Custom Fields",
                "tags": [
                    "Custom Fields"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `CustomFieldResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/CustomFieldResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.customFields.create",
                "summary": "Create Custom Field",
                "tags": [
                    "Custom Fields"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateCustomFieldRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`CustomFieldResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CustomFieldResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/custom-fields/{customField}": {
            "put": {
                "operationId": "v1.org.customFields.update",
                "summary": "Update Custom Field",
                "tags": [
                    "Custom Fields"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "customField",
                        "in": "path",
                        "required": true,
                        "description": "The custom field guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateCustomFieldRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`CustomFieldResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CustomFieldResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/custom-fields/{customField}/archive": {
            "patch": {
                "operationId": "v1.org.customFields.archive",
                "summary": "Archive Custom Field",
                "tags": [
                    "Custom Fields"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "customField",
                        "in": "path",
                        "required": true,
                        "description": "The custom field guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`CustomFieldResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CustomFieldResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/custom-fields/{customField}/unarchive": {
            "patch": {
                "operationId": "v1.org.customFields.unarchive",
                "summary": "Unarchive Custom Field",
                "tags": [
                    "Custom Fields"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "customField",
                        "in": "path",
                        "required": true,
                        "description": "The custom field guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`CustomFieldResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CustomFieldResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/cycle-counts": {
            "get": {
                "operationId": "v1.org.cycleCounts.list",
                "summary": "List Cycle Counts",
                "tags": [
                    "Cycle Counts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `CycleCountSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/CycleCountSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.cycleCounts.create",
                "summary": "Create Cycle Counts",
                "tags": [
                    "Cycle Counts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateCycleCountRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`CycleCountSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CycleCountSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/cycle-counts/{cycleCount}": {
            "get": {
                "operationId": "v1.org.cycleCounts.show",
                "summary": "Get Cycle Counts",
                "tags": [
                    "Cycle Counts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "cycleCount",
                        "in": "path",
                        "required": true,
                        "description": "The cycle count guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`CycleCountResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CycleCountResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.cycleCounts.updateStatus",
                "summary": "Update Cycle Count Status",
                "tags": [
                    "Cycle Counts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "cycleCount",
                        "in": "path",
                        "required": true,
                        "description": "The cycle count guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateCycleCountStatusRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`CycleCountSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CycleCountSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/cycle-counts/{cycleCount}/materials/{material}": {
            "patch": {
                "operationId": "v1.org.cycleCounts.updateQuantity",
                "summary": "Update Cycle Count Material Quantity",
                "tags": [
                    "Cycle Counts"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "cycleCount",
                        "in": "path",
                        "required": true,
                        "description": "The cycle count guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateCycleCountRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`CycleCountSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CycleCountSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/events/{event}": {
            "get": {
                "operationId": "v1.org.events.show",
                "summary": "Get Event",
                "tags": [
                    "Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "The event guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.events.update",
                "summary": "Update Event",
                "tags": [
                    "Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "The event guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateEventRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.events.delete",
                "summary": "Delete Event",
                "tags": [
                    "Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "The event guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/events": {
            "get": {
                "operationId": "v1.org.events.list",
                "summary": "List Events",
                "tags": [
                    "Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `EventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EventResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.events.create",
                "summary": "Create Event",
                "tags": [
                    "Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateEventRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/event-lists": {
            "get": {
                "operationId": "v1.org.eventLists.list",
                "summary": "List Event Lists",
                "tags": [
                    "Events \u00bb Lists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `EventListResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EventListResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.eventLists.create",
                "summary": "Create Event List",
                "tags": [
                    "Events \u00bb Lists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateEventListRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EventListResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventListResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/event-lists/{eventList}": {
            "get": {
                "operationId": "v1.org.eventLists.show",
                "summary": "Get Event List",
                "tags": [
                    "Events \u00bb Lists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "eventList",
                        "in": "path",
                        "required": true,
                        "description": "The event list guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EventListResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventListResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.eventLists.update",
                "summary": "Update Event List",
                "tags": [
                    "Events \u00bb Lists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "eventList",
                        "in": "path",
                        "required": true,
                        "description": "The event list guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateEventListRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EventListResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventListResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.eventLists.delete",
                "summary": "Delete Event List",
                "tags": [
                    "Events \u00bb Lists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "eventList",
                        "in": "path",
                        "required": true,
                        "description": "The event list guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/inventories": {
            "get": {
                "operationId": "v1.org.inventories.list",
                "summary": "List Inventory",
                "tags": [
                    "Inventory"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `MaterialWithInventoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/MaterialWithInventoryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/inventory-log": {
            "get": {
                "operationId": "v1.org.inventoryLog.list",
                "summary": "List Inventory Logs",
                "tags": [
                    "Inventory \u00bb Log"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `InventoryChangeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/InventoryChangeResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/labels": {
            "get": {
                "operationId": "v1.org.labels.list",
                "summary": "List Labels",
                "tags": [
                    "Labels"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `LabelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/LabelResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.labels.create",
                "summary": "Create Label",
                "tags": [
                    "Labels"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateLabelRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LabelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LabelResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/labels/{label}": {
            "put": {
                "operationId": "v1.org.labels.update",
                "summary": "Update Label",
                "tags": [
                    "Labels"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "label",
                        "in": "path",
                        "required": true,
                        "description": "The label guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateLabelRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LabelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LabelResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.labels.delete",
                "summary": "Delete Label",
                "tags": [
                    "Labels"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "label",
                        "in": "path",
                        "required": true,
                        "description": "The label guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/materials": {
            "get": {
                "operationId": "v1.org.materials.list",
                "summary": "List Materials",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "not_supplier",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "supplier",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "store",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "not_template",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "not-task",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "not_task",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "not_order",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "origin_store",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "destination_store",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `MaterialSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/MaterialSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.materials.create",
                "summary": "Create Material",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateMaterialRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`MaterialResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MaterialResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/materials/types": {
            "get": {
                "operationId": "v1.org.materials.types.list",
                "summary": "List Materials",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {}
                                                },
                                                "required": [
                                                    "title"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/{organisation}/materials/{material}": {
            "get": {
                "operationId": "v1.org.materials.show",
                "summary": "Get Material",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MaterialDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MaterialDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.materials.update",
                "summary": "Update Material",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MaterialDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MaterialDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.materials.delete",
                "summary": "Delete Material",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/archive": {
            "patch": {
                "operationId": "v1.org.materials.archive",
                "summary": "Archive Material",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MaterialSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MaterialSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/unarchive": {
            "patch": {
                "operationId": "v1.org.materials.unarchive",
                "summary": "Unarchive Material",
                "tags": [
                    "Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MaterialSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MaterialSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/files": {
            "get": {
                "operationId": "v1.org.materials.files.list",
                "summary": "List Material Files",
                "tags": [
                    "Materials \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/FileResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/files/{media}": {
            "put": {
                "operationId": "v1.org.materials.files.update",
                "summary": "Update Material File",
                "tags": [
                    "Materials \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "media",
                        "in": "path",
                        "required": true,
                        "description": "The media UUID",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateResourceFileRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/FileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.materials.files.destroy",
                "summary": "Delete Material File",
                "tags": [
                    "Materials \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "media",
                        "in": "path",
                        "required": true,
                        "description": "The media UUID",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/inventories": {
            "put": {
                "operationId": "v1.org.materials.inventories.updateMultiple",
                "summary": "Update Material Inventory across Stores",
                "tags": [
                    "Materials \u00bb Inventory"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SetInventoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`MaterialResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MaterialResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/inventories/{store}": {
            "patch": {
                "operationId": "v1.org.materials.inventories.update",
                "summary": "Update Material Inventory at Single Store",
                "tags": [
                    "Materials \u00bb Inventory"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "store",
                        "in": "path",
                        "required": true,
                        "description": "The store guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateInventoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`InventorySummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/InventorySummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/suppliers": {
            "delete": {
                "operationId": "v1.org.materials.suppliers.deleteMultiple",
                "summary": "Detach Suppliers from Material",
                "tags": [
                    "Materials \u00bb Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "suppliers",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "guid": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "guid"
                                ]
                            }
                        },
                        "x-deepObject-style": "qs"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/suppliers/available": {
            "get": {
                "operationId": "v1.org.materials.suppliers.available.list",
                "summary": "List Available Suppliers for Material",
                "tags": [
                    "Materials \u00bb Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `SupplierResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SupplierResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/materials/{material}/suppliers/{supplier}": {
            "put": {
                "operationId": "v1.org.materials.suppliers.update",
                "summary": "Update Material Supplier",
                "tags": [
                    "Materials \u00bb Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "supplier",
                        "in": "path",
                        "required": true,
                        "description": "The supplier guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateSupplierRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `MaterialSupplierResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/MaterialSupplierResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/materials/units": {
            "get": {
                "operationId": "v1.org.materials.units.list",
                "summary": "List Material Units",
                "tags": [
                    "Materials \u00bb Units"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {}
                                                },
                                                "required": [
                                                    "title"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/me": {
            "get": {
                "operationId": "v1.me.show",
                "summary": "Get My Details",
                "tags": [
                    "Me"
                ],
                "responses": {
                    "200": {
                        "description": "`MeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/{organisation}/metrics": {
            "get": {
                "operationId": "v1.org.metrics.list",
                "summary": "List Metrics",
                "tags": [
                    "Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `MetricDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MetricDetailCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/metrics/{metric}": {
            "get": {
                "operationId": "v1.org.metrics.show",
                "summary": "Get Metric",
                "tags": [
                    "Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "metric",
                        "in": "path",
                        "required": true,
                        "description": "The metric guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MetricDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MetricDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.metrics.update",
                "summary": "Update Metric",
                "tags": [
                    "Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "metric",
                        "in": "path",
                        "required": true,
                        "description": "The metric guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateMetricRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`MetricSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MetricSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.metrics.destroy",
                "summary": "Delete Metric",
                "tags": [
                    "Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "metric",
                        "in": "path",
                        "required": true,
                        "description": "The metric guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/metrics/{metric}/archive": {
            "patch": {
                "operationId": "v1.org.metrics.archive",
                "summary": "Archive Metric",
                "tags": [
                    "Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "metric",
                        "in": "path",
                        "required": true,
                        "description": "The metric guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MetricSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MetricSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/metrics/{metric}/unarchive": {
            "patch": {
                "operationId": "v1.org.metrics.unarchive",
                "summary": "Unarchive Metric",
                "tags": [
                    "Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "metric",
                        "in": "path",
                        "required": true,
                        "description": "The metric guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MetricSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MetricSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/metrics/units": {
            "get": {
                "operationId": "v1.org.metrics.units.list",
                "summary": "List Metric Units",
                "tags": [
                    "Metrics \u00bb Units"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `MetricUnitGroupResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/MetricUnitGroupResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/{organisation}/orders": {
            "get": {
                "operationId": "v1.org.orders.list",
                "summary": "List Orders",
                "tags": [
                    "Orders"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `OrderResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/OrderResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.orders.create",
                "summary": "Create Order",
                "tags": [
                    "Orders"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateOrderRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`OrderDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OrderDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/orders/{order}": {
            "get": {
                "operationId": "v1.org.orders.show",
                "summary": "Get Order",
                "tags": [
                    "Orders"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "description": "The order guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`OrderDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OrderDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.orders.update",
                "summary": "Update Order",
                "tags": [
                    "Orders"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "description": "The order guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateOrderRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`OrderDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OrderDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/orders/{order}/materials/{material}": {
            "put": {
                "operationId": "v1.org.orders.materials.update",
                "summary": "Update Order Material",
                "tags": [
                    "Orders \u00bb Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "description": "The order guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateOrderMaterialRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`OrderMaterialResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OrderMaterialResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.orders.materials.delete",
                "summary": "Delete Order Material",
                "tags": [
                    "Orders \u00bb Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "description": "The order guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/orders/{order}/shipments": {
            "post": {
                "operationId": "v1.org.orders.shipments.create",
                "summary": "Create Order Shipment",
                "tags": [
                    "Orders \u00bb Shipments"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "description": "The order guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AttachOrUpdateOrderShipmentsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ShipmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShipmentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.orders.shipments.deleteMultiple",
                "summary": "Delete Order Shipment",
                "tags": [
                    "Orders \u00bb Shipments"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "description": "The order guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "shipments",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "guid": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "guid"
                                ]
                            }
                        },
                        "x-deepObject-style": "qs"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{order}/orders/{order}/shipments/{shipment}": {
            "post": {
                "operationId": "v1.org.orders.shipments.update",
                "summary": "Update Order Shipment",
                "tags": [
                    "Orders \u00bb Shipments"
                ],
                "parameters": [
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "shipment",
                        "in": "path",
                        "required": true,
                        "description": "The shipment guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AttachOrUpdateOrderShipmentsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ShipmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShipmentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/overtime-rates": {
            "get": {
                "operationId": "v1.org.overtimeRates.list",
                "summary": "List Overtime Rates",
                "tags": [
                    "Overtime Rates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `OvertimeRateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/OvertimeRateResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.overtimeRates.create",
                "summary": "Create Overtime Rate",
                "tags": [
                    "Overtime Rates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateOvertimeRateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`OvertimeRateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OvertimeRateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/overtime-rates/{overtimeRate}": {
            "get": {
                "operationId": "v1.org.overtimeRates.show",
                "summary": "Get Overtime Rate",
                "tags": [
                    "Overtime Rates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "overtimeRate",
                        "in": "path",
                        "required": true,
                        "description": "The overtime rate guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`OvertimeRateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OvertimeRateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.overtimeRates.update",
                "summary": "Update Overtime Rate",
                "tags": [
                    "Overtime Rates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "overtimeRate",
                        "in": "path",
                        "required": true,
                        "description": "The overtime rate guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateOvertimeRateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`OvertimeRateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OvertimeRateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.overtimeRates.delete",
                "summary": "Delete Overtime Rate",
                "tags": [
                    "Overtime Rates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "overtimeRate",
                        "in": "path",
                        "required": true,
                        "description": "The overtime rate guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/profiles": {
            "get": {
                "operationId": "v1.org.profiles.list",
                "summary": "List Profiles",
                "tags": [
                    "Profiles"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `ProfileSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ProfileSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/profiles/{profile}": {
            "get": {
                "operationId": "v1.org.profiles.show",
                "summary": "Show Profile",
                "tags": [
                    "Profiles"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "profile",
                        "in": "path",
                        "required": true,
                        "description": "The profile guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProfileResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "permission_level",
                                                        "user"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.profiles.update",
                "summary": "Update Profile",
                "tags": [
                    "Profiles"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "profile",
                        "in": "path",
                        "required": true,
                        "description": "The profile guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateUserRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProfileResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "permission_level"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/profiles/{profile}/archive": {
            "patch": {
                "operationId": "v1.org.profiles.archive",
                "summary": "Archive Profile",
                "tags": [
                    "Profiles"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "profile",
                        "in": "path",
                        "required": true,
                        "description": "The profile guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProfileResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "permission_level",
                                                        "user"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/profiles/{profile}/unarchive": {
            "patch": {
                "operationId": "v1.org.profiles.unarchive",
                "summary": "Unarchive Profile",
                "tags": [
                    "Profiles"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "profile",
                        "in": "path",
                        "required": true,
                        "description": "The profile guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProfileResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "permission_level",
                                                        "user"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/profiles/companies": {
            "get": {
                "operationId": "v1.org.profiles.companies.list",
                "summary": "List Profile Companies",
                "tags": [
                    "Profiles \u00bb Companies"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Profile"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/{organisation}/profiles/roles": {
            "get": {
                "operationId": "v1.org.profiles.roles.list",
                "summary": "List Profile Roles",
                "tags": [
                    "Profiles \u00bb Roles"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {}
                                                },
                                                "required": [
                                                    "title"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/{organisation}/readings": {
            "get": {
                "operationId": "v1.org.readings.list",
                "summary": "List Readings",
                "tags": [
                    "Readings"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `ReadingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ReadingResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/readings/{reading}": {
            "put": {
                "operationId": "v1.org.readings.update",
                "summary": "Update Reading",
                "tags": [
                    "Readings"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reading",
                        "in": "path",
                        "required": true,
                        "description": "The reading guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateReadingRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ReadingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ReadingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.readings.delete",
                "summary": "Delete Reading",
                "tags": [
                    "Readings"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reading",
                        "in": "path",
                        "required": true,
                        "description": "The reading guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Reading has been deleted."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/sites": {
            "get": {
                "operationId": "v1.org.sites.list",
                "summary": "List Sites",
                "tags": [
                    "Sites"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "with_users_count",
                        "in": "query",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `SiteSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SiteSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.sites.create",
                "summary": "Create Site",
                "tags": [
                    "Sites"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateSiteRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`SiteResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SiteResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/sites/{site}": {
            "get": {
                "operationId": "v1.org.sites.show",
                "summary": "Get Site",
                "tags": [
                    "Sites"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`SiteResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SiteResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.sites.update",
                "summary": "Update Site",
                "tags": [
                    "Sites"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateSiteRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`SiteResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SiteResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.sites.delete",
                "summary": "Delete Site",
                "tags": [
                    "Sites"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/sites/{site}/users/available": {
            "get": {
                "operationId": "v1.org.sites.users.available",
                "summary": "Get Available Users for Site",
                "tags": [
                    "Sites \u00bb Users"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `UserResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/UserResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/sites/{site}/users": {
            "post": {
                "operationId": "v1.org.sites.users.createMultiple",
                "summary": "Attach/Detach Users from Site",
                "tags": [
                    "Sites \u00bb Users"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateDeleteSiteUserRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.sites.users.deleteMultiple",
                "summary": "Detach Users From Site",
                "tags": [
                    "Sites \u00bb Users"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "site",
                        "in": "path",
                        "required": true,
                        "description": "The site guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "users",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "guid": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "guid"
                                ]
                            }
                        },
                        "x-deepObject-style": "qs"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/stores": {
            "post": {
                "operationId": "v1.org.stores.create",
                "summary": "Create Store",
                "tags": [
                    "Stores"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateStoreRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`StoreResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/StoreResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "get": {
                "operationId": "v1.org.stores.list",
                "summary": "List Stores",
                "tags": [
                    "Stores"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `StoreSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/StoreSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/stores/{store}": {
            "put": {
                "operationId": "v1.org.stores.update",
                "summary": "Update Store",
                "tags": [
                    "Stores"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "store",
                        "in": "path",
                        "required": true,
                        "description": "The store guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateStoreRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`StoreResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/StoreResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.stores.delete",
                "summary": "Delete Store",
                "tags": [
                    "Stores"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "store",
                        "in": "path",
                        "required": true,
                        "description": "The store guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "get": {
                "operationId": "v1.org.stores.show",
                "summary": "Get Store",
                "tags": [
                    "Stores"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "store",
                        "in": "path",
                        "required": true,
                        "description": "The store guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`StoreResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/StoreResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/suppliers": {
            "get": {
                "operationId": "v1.org.suppliers.list",
                "summary": "List Suppliers",
                "tags": [
                    "Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "with_materials_count",
                        "in": "query",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `SupplierResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SupplierResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.suppliers.create",
                "summary": "Create Supplier",
                "tags": [
                    "Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateSupplierRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`SupplierResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SupplierResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/suppliers/{supplier}": {
            "get": {
                "operationId": "v1.org.suppliers.show",
                "summary": "Get Supplier",
                "tags": [
                    "Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "supplier",
                        "in": "path",
                        "required": true,
                        "description": "The supplier guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`SupplierResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/SupplierResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "materials"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.suppliers.update",
                "summary": "Update Supplier",
                "tags": [
                    "Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "supplier",
                        "in": "path",
                        "required": true,
                        "description": "The supplier guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateSupplierRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`SupplierResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/SupplierResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "materials"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.suppliers.delete",
                "summary": "Delete Supplier",
                "tags": [
                    "Suppliers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "supplier",
                        "in": "path",
                        "required": true,
                        "description": "The supplier guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/tasks": {
            "get": {
                "operationId": "v1.org.tasks.list",
                "summary": "List Tasks",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `TaskSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskSummaryCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.tasks.create",
                "summary": "Create Task",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateTaskRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}": {
            "get": {
                "operationId": "v1.org.tasks.show",
                "summary": "Get Task",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.tasks.update",
                "summary": "Update Task",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/asset": {
            "put": {
                "operationId": "v1.org.tasks.asset.update",
                "summary": "Update Task Asset",
                "tags": [
                    "Tasks \u00bb Asset"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateTaskAssetRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/asset-replacements/{material}": {
            "post": {
                "operationId": "v1.org.tasks.assetReplacements.create",
                "summary": "Create Task Asset Replacement",
                "tags": [
                    "Tasks \u00bb Asset Replacements"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateAssetReplacementRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `AssetReplacementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AssetReplacementResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/asset-replacements/{assetReplacement}": {
            "delete": {
                "operationId": "v1.org.tasks.assetReplacements.delete",
                "summary": "Delete Task Asset Replacement",
                "tags": [
                    "Tasks \u00bb Asset Replacements"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "assetReplacement",
                        "in": "path",
                        "required": true,
                        "description": "The asset replacement guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Material successfully deleted from task."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/assignment": {
            "get": {
                "operationId": "v1.org.tasks.assignment.list",
                "summary": "List Assigned and Unassigned Users",
                "tags": [
                    "Tasks \u00bb Assignees"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "assigned": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/UserSummaryResource"
                                                    }
                                                },
                                                "unassigned": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/UserSummaryResource"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "assigned",
                                                "unassigned"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/assignees": {
            "get": {
                "operationId": "v1.org.tasks.assignment.assignees",
                "summary": "List Assignees",
                "tags": [
                    "Tasks \u00bb Assignees"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `UserSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/UserSummaryResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/assign": {
            "put": {
                "operationId": "v1.org.tasks.assignment.updateMultiple",
                "summary": "Assign Users to Task",
                "tags": [
                    "Tasks \u00bb Assignees"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateAssignmentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/check-items/{taskCheckItem}": {
            "post": {
                "operationId": "v1.org.tasks.checkItems.check",
                "summary": "Check Check Item",
                "tags": [
                    "Tasks \u00bb Check Items"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "taskCheckItem",
                        "in": "path",
                        "required": true,
                        "description": "The task check item guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TaskCheckItemResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskCheckItemResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.tasks.checkItems.uncheck",
                "summary": "Uncheck Check Item",
                "tags": [
                    "Tasks \u00bb Check Items"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "taskCheckItem",
                        "in": "path",
                        "required": true,
                        "description": "The task check item guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TaskCheckItemResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskCheckItemResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/checklists": {
            "post": {
                "operationId": "v1.org.tasks.checklists.create",
                "summary": "Create Task Checklist",
                "tags": [
                    "Tasks \u00bb Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateTaskChecklistRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/checklists/{checklist}": {
            "post": {
                "operationId": "v1.org.tasks.checklists.clone",
                "summary": "Attach Checklist to Task",
                "tags": [
                    "Tasks \u00bb Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "checklist",
                        "in": "path",
                        "required": true,
                        "description": "The checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TaskChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/checklists/{taskChecklist}": {
            "delete": {
                "operationId": "v1.org.tasks.checklists.destroy",
                "summary": "Delete Task Checklist",
                "tags": [
                    "Tasks \u00bb Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "taskChecklist",
                        "in": "path",
                        "required": true,
                        "description": "The task checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.tasks.checklists.update",
                "summary": "Update Task Checklist",
                "tags": [
                    "Tasks \u00bb Checklists"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "taskChecklist",
                        "in": "path",
                        "required": true,
                        "description": "The task checklist guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateTaskChecklistRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskChecklistResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskChecklistResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/comments": {
            "post": {
                "operationId": "v1.org.tasks.comments.create",
                "summary": "Create Task Comment",
                "tags": [
                    "Tasks \u00bb Comments"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateCommentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskActivityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TaskActivityResource"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/comments/{comment}": {
            "put": {
                "operationId": "v1.org.tasks.comments.update",
                "summary": "Update Task Comment",
                "tags": [
                    "Tasks \u00bb Comments"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "comment",
                        "in": "path",
                        "required": true,
                        "description": "The comment guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateCommentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Comment updated successfully."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.tasks.comments.delete",
                "summary": "Delete Task Comment",
                "tags": [
                    "Tasks \u00bb Comments"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "comment",
                        "in": "path",
                        "required": true,
                        "description": "The comment guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Comment has been deleted."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/comments/{comment}/files/{media}": {
            "delete": {
                "operationId": "v1.org.tasks.comments.files.delete",
                "summary": "Delete Task Comment File",
                "tags": [
                    "Tasks \u00bb Comments \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "comment",
                        "in": "path",
                        "required": true,
                        "description": "The comment guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "media",
                        "in": "path",
                        "required": true,
                        "description": "The media UUID",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "File has been deleted."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/downtime": {
            "post": {
                "operationId": "v1.org.tasks.downtime.create",
                "summary": "Create Downtime",
                "tags": [
                    "Tasks \u00bb Downtime"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateDowntimeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`DowntimeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DowntimeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/downtime/{downtime}": {
            "put": {
                "operationId": "v1.org.tasks.downtime.update",
                "summary": "Update Downtime",
                "tags": [
                    "Tasks \u00bb Downtime"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "downtime",
                        "in": "path",
                        "required": true,
                        "description": "The downtime guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateDowntimeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`DowntimeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DowntimeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.tasks.downtime.delete",
                "summary": "Delete Downtime",
                "tags": [
                    "Tasks \u00bb Downtime"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "downtime",
                        "in": "path",
                        "required": true,
                        "description": "The downtime guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Downtime has been deleted."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/due-date": {
            "post": {
                "operationId": "v1.org.tasks.dueDate.updateMultiple",
                "tags": [
                    "Tasks \u00bb Due Date"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateDueDateOnMultipleTasksRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Due date has been updated for the given tasks."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/due-date": {
            "put": {
                "operationId": "v1.org.tasks.dueDate.update",
                "tags": [
                    "Tasks \u00bb Due Date"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateTaskDueDateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/events/available": {
            "get": {
                "operationId": "v1.org.tasks.events.available",
                "summary": "Available Events for Task",
                "tags": [
                    "Tasks \u00bb Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EventResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/events": {
            "post": {
                "operationId": "v1.org.tasks.events.createMultiple",
                "summary": "Attach Events to Task",
                "tags": [
                    "Tasks \u00bb Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateDeleteTaskEventRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.tasks.events.deleteMultiple",
                "summary": "Detach Events from Task",
                "tags": [
                    "Tasks \u00bb Events"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "events",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "guid": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "guid"
                                ]
                            }
                        },
                        "x-deepObject-style": "qs"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/files": {
            "get": {
                "operationId": "v1.org.tasks.files.list",
                "summary": "List Task Files",
                "tags": [
                    "Tasks \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/FileResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/labels": {
            "post": {
                "operationId": "v1.org.tasks.labels.update",
                "summary": "Update Task Labels",
                "tags": [
                    "Tasks \u00bb Labels"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateTaskLabelsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/materials/autograb": {
            "post": {
                "operationId": "v1.org.tasks.materials.autograb",
                "summary": "Auto-grab Materials from Automation",
                "tags": [
                    "Tasks \u00bb Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AttachTaskMaterialsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `TaskMaterialResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TaskMaterialResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/materials": {
            "post": {
                "operationId": "v1.org.tasks.materials.createMultiple",
                "summary": "Attach Materials to Task",
                "tags": [
                    "Tasks \u00bb Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AttachTaskMaterialsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `TaskMaterialResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TaskMaterialResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/materials/{material}": {
            "put": {
                "operationId": "v1.org.tasks.materials.update",
                "summary": "Update Task Material",
                "tags": [
                    "Tasks \u00bb Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateTaskMaterialRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `TaskMaterialResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TaskMaterialResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.tasks.materials.delete",
                "summary": "Delete Task Material",
                "tags": [
                    "Tasks \u00bb Materials"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "material",
                        "in": "path",
                        "required": true,
                        "description": "The material guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Material successfully deleted from task."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/metrics": {
            "get": {
                "operationId": "v1.org.tasks.metrics.list",
                "summary": "List Task Metrics",
                "tags": [
                    "Tasks \u00bb Metrics"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `MetricDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AssetMetricCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/planned-start-date": {
            "post": {
                "operationId": "v1.org.tasks.plannedStartDate.updateMultiple",
                "summary": "Update Task Planned Start Date",
                "tags": [
                    "Tasks \u00bb Planned Start Date"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdatePlannedStartDateOnMultipleTasksRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Planned start date has been updated for the given tasks."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/planned-start-date": {
            "put": {
                "operationId": "v1.org.tasks.plannedStartDate.update",
                "tags": [
                    "Tasks \u00bb Planned Start Date"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateTaskPlannedStartRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/readings": {
            "get": {
                "operationId": "v1.org.tasks.readings.list",
                "summary": "List Task Readings",
                "tags": [
                    "Tasks \u00bb Readings"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `ReadingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AssetReadingCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/status": {
            "post": {
                "operationId": "v1.org.tasks.status",
                "summary": "Update Task Status",
                "tags": [
                    "Tasks \u00bb Status"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateStatusOnMultipleTasksRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Status has been updated for the given tasks"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/title": {
            "put": {
                "operationId": "v1.org.tasks.title.update",
                "summary": "Update Task Title",
                "tags": [
                    "Tasks \u00bb Title"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateTaskTitleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/work": {
            "post": {
                "operationId": "v1.org.tasks.work.create",
                "summary": "Create Task Work",
                "tags": [
                    "Tasks \u00bb Work"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateWorkRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/work/user/{user}": {
            "delete": {
                "operationId": "v1.org.tasks.work.deleteWorkByUser",
                "summary": "Delete Task Work for User",
                "tags": [
                    "Tasks \u00bb Work"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "user",
                        "in": "path",
                        "required": true,
                        "description": "The user guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/tasks/{task}/work/{work}": {
            "put": {
                "operationId": "v1.org.tasks.work.update",
                "summary": "Update Task Work",
                "tags": [
                    "Tasks \u00bb Work"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "work",
                        "in": "path",
                        "required": true,
                        "description": "The work guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateWorkRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TaskResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.tasks.work.delete",
                "summary": "Delete Task Work",
                "tags": [
                    "Tasks \u00bb Work"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "The task number",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "work",
                        "in": "path",
                        "required": true,
                        "description": "The work guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Work has been deleted."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/templates": {
            "get": {
                "operationId": "v1.org.templates.list",
                "summary": "List Templates",
                "tags": [
                    "Templates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `TemplateSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TemplateSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.templates.create",
                "summary": "Create Template",
                "tags": [
                    "Templates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/templates/{template}": {
            "get": {
                "operationId": "v1.org.templates.show",
                "summary": "Get Template",
                "tags": [
                    "Templates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.templates.update",
                "summary": "Update Template",
                "tags": [
                    "Templates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.templates.delete",
                "summary": "Delete Template",
                "tags": [
                    "Templates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/templates/{template}/archive": {
            "patch": {
                "operationId": "v1.org.templates.archive",
                "summary": "Archive Template",
                "tags": [
                    "Templates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/templates/{template}/unarchive": {
            "patch": {
                "operationId": "v1.org.templates.unarchive",
                "summary": "Unarchive Template",
                "tags": [
                    "Templates"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/templates/{template}/files": {
            "get": {
                "operationId": "v1.org.templates.files.list",
                "summary": "List Template Files",
                "tags": [
                    "Templates \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/FileResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.templates.files.create",
                "summary": "Create Template File",
                "tags": [
                    "Templates \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateResourceFileRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/FileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/templates/{template}/files/{media}": {
            "put": {
                "operationId": "v1.org.templates.files.update",
                "summary": "Update Template File",
                "tags": [
                    "Templates \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "media",
                        "in": "path",
                        "required": true,
                        "description": "The media UUID",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateResourceFileRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`FileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/FileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.templates.files.destroy",
                "summary": "Delete Template File",
                "tags": [
                    "Templates \u00bb Files"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "description": "The template guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "media",
                        "in": "path",
                        "required": true,
                        "description": "The media UUID",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/timesheets/{user}": {
            "get": {
                "operationId": "v1.org.timesheets.list",
                "summary": "List Timesheets",
                "tags": [
                    "Timesheets"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "user",
                        "in": "path",
                        "required": true,
                        "description": "The user guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TimesheetListResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TimesheetListResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/timesheets/{user}/entries": {
            "post": {
                "operationId": "v1.org.timesheets.entries.create",
                "summary": "Create Timesheet Entry",
                "tags": [
                    "Timesheets \u00bb Entries"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "user",
                        "in": "path",
                        "required": true,
                        "description": "The user guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateEntryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EntryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/timesheets/{user}/entries/{work}": {
            "put": {
                "operationId": "v1.org.timesheets.entries.update",
                "summary": "Update Timesheet Entry",
                "tags": [
                    "Timesheets \u00bb Entries"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "user",
                        "in": "path",
                        "required": true,
                        "description": "The user guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "work",
                        "in": "path",
                        "required": true,
                        "description": "The work guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateEntryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EntryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.timesheets.entries.delete",
                "summary": "Delete Timesheet Entry",
                "tags": [
                    "Timesheets \u00bb Entries"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "user",
                        "in": "path",
                        "required": true,
                        "description": "The user guid",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "work",
                        "in": "path",
                        "required": true,
                        "description": "The work guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Work has been deleted."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/timesheets/{user}/status": {
            "post": {
                "operationId": "v1.org.timesheets.status",
                "summary": "Update Timesheet Status",
                "tags": [
                    "Timesheets \u00bb Status"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "user",
                        "in": "path",
                        "required": true,
                        "description": "The user guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateStatusOnMultipleTimesheetsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Status has been updated for the given timesheets"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/transfers": {
            "get": {
                "operationId": "v1.org.transfers.list",
                "summary": "List Transfers",
                "tags": [
                    "Transfers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `TransferSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TransferSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.transfers.create",
                "summary": "Create Transfer",
                "tags": [
                    "Transfers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateTransferRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TransferResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TransferResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/transfers/{transfer}": {
            "get": {
                "operationId": "v1.org.transfers.show",
                "summary": "Get Transfer",
                "tags": [
                    "Transfers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "transfer",
                        "in": "path",
                        "required": true,
                        "description": "The transfer guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TransferResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TransferResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.transfers.update",
                "summary": "Update Transfer",
                "tags": [
                    "Transfers"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "transfer",
                        "in": "path",
                        "required": true,
                        "description": "The transfer guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateTransferRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`TransferResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TransferResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/work-codes": {
            "get": {
                "operationId": "v1.org.workCodes.list",
                "summary": "List Work Codes",
                "tags": [
                    "Work Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `WorkCodeSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WorkCodeSummaryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.workCodes.create",
                "summary": "Create Work Code",
                "tags": [
                    "Work Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateWorkCodeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkCodeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkCodeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/work-codes/{workCode}": {
            "get": {
                "operationId": "v1.org.workCodes.show",
                "summary": "Get Work Code",
                "tags": [
                    "Work Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workCode",
                        "in": "path",
                        "required": true,
                        "description": "The work code guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WorkCodeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkCodeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.workCodes.update",
                "summary": "Update Work Code",
                "tags": [
                    "Work Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workCode",
                        "in": "path",
                        "required": true,
                        "description": "The work code guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateWorkCodeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkCodeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkCodeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.workCodes.delete",
                "summary": "Destroy Work Code",
                "tags": [
                    "Work Codes"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workCode",
                        "in": "path",
                        "required": true,
                        "description": "The work code guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/work-code-categories": {
            "get": {
                "operationId": "v1.org.workCodeCategories.list",
                "summary": "List Work Code Categories",
                "tags": [
                    "Work Codes \u00bb Categories"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `WorkCodeCategoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WorkCodeCategoryResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "v1.org.workCodeCategories.create",
                "summary": "Create Work Code Category",
                "tags": [
                    "Work Codes \u00bb Categories"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateWorkCodeCategoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkCodeCategoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkCodeCategoryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/work-code-categories/{workCodeCategory}": {
            "get": {
                "operationId": "v1.org.workCodeCategories.show",
                "summary": "Get Work Code Category",
                "tags": [
                    "Work Codes \u00bb Categories"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workCodeCategory",
                        "in": "path",
                        "required": true,
                        "description": "The work code category guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WorkCodeCategoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkCodeCategoryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.workCodeCategories.update",
                "summary": "Update Work Code Category",
                "tags": [
                    "Work Codes \u00bb Categories"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workCodeCategory",
                        "in": "path",
                        "required": true,
                        "description": "The work code category guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateWorkCodeCategoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkCodeCategoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkCodeCategoryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.workCodeCategories.delete",
                "summary": "Delete Work Code Category",
                "tags": [
                    "Work Codes \u00bb Categories"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workCodeCategory",
                        "in": "path",
                        "required": true,
                        "description": "The work code category guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/{organisation}/work-requests": {
            "get": {
                "operationId": "v1.org.workRequests.list",
                "summary": "List Work Requests",
                "tags": [
                    "Work Requests"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `WorkRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkRequestCollection"
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.org.workRequests.create",
                "summary": "Create Work Request",
                "tags": [
                    "Work Requests"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateWorkRequestRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/work-requests/{workRequest}": {
            "get": {
                "operationId": "v1.org.workRequests.show",
                "summary": "Get Work Request",
                "tags": [
                    "Work Requests"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workRequest",
                        "in": "path",
                        "required": true,
                        "description": "The work request guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WorkRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/{organisation}/work-types": {
            "get": {
                "operationId": "v1.org.workTypes.list",
                "summary": "List Work Types",
                "tags": [
                    "Work Types"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `WorkTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WorkTypeResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "v1.org.workTypes.create",
                "summary": "Create Work Type",
                "tags": [
                    "Work Types"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateWorkTypeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkTypeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/{organisation}/work-types/{workType}": {
            "get": {
                "operationId": "v1.org.workTypes.show",
                "summary": "Get Work Type",
                "tags": [
                    "Work Types"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workType",
                        "in": "path",
                        "required": true,
                        "description": "The work type guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WorkTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkTypeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "put": {
                "operationId": "v1.org.workTypes.update",
                "summary": "Update Work Type",
                "tags": [
                    "Work Types"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workType",
                        "in": "path",
                        "required": true,
                        "description": "The work type guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateUpdateWorkTypeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkTypeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.org.workTypes.delete",
                "summary": "Delete Work Type",
                "tags": [
                    "Work Types"
                ],
                "parameters": [
                    {
                        "name": "organisation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "workType",
                        "in": "path",
                        "required": true,
                        "description": "The work type guid",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "http": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "JWT"
            }
        },
        "schemas": {
            "AlertCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "AlertCollection"
            },
            "AlertLineageVisibilityEnum": {
                "type": "string",
                "enum": [
                    "self",
                    "selfAndDescendants",
                    "bloodline",
                    "ancestorsAndSelf"
                ],
                "title": "AlertLineageVisibilityEnum"
            },
            "AlertResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/AlertTypeEnum"
                    },
                    "lineage_visibility": {
                        "$ref": "#/components/schemas/AlertLineageVisibilityEnum"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "asset": {
                        "$ref": "#/components/schemas/AssetSummaryResource"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "type",
                    "lineage_visibility",
                    "description",
                    "user",
                    "created_at",
                    "archived_at",
                    "asset"
                ],
                "title": "AlertResource"
            },
            "AlertSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/AlertTypeEnum"
                    },
                    "lineage_visibility": {
                        "$ref": "#/components/schemas/AlertLineageVisibilityEnum"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "type",
                    "lineage_visibility",
                    "description",
                    "user",
                    "created_at",
                    "archived_at"
                ],
                "title": "AlertSummaryResource"
            },
            "AlertTypeEnum": {
                "type": "string",
                "enum": [
                    "limitedAccess",
                    "information",
                    "noAccess"
                ],
                "title": "AlertTypeEnum"
            },
            "AssetActivityChangeResource": {
                "type": "object",
                "properties": {
                    "field": {
                        "type": "string"
                    },
                    "before_value": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "value": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "task": {
                        "$ref": "#/components/schemas/TaskMinimalResource"
                    },
                    "alert": {
                        "$ref": "#/components/schemas/AlertSummaryResource"
                    }
                },
                "required": [
                    "field",
                    "before_value",
                    "value"
                ],
                "title": "AssetActivityChangeResource"
            },
            "AssetActivityResource": {
                "type": "object",
                "properties": {
                    "permalink": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "data": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AssetActivityChangeResource"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "point": {
                                        "type": "object",
                                        "properties": {
                                            "lat": {
                                                "type": "string"
                                            },
                                            "lng": {
                                                "type": "string"
                                            }
                                        },
                                        "required": [
                                            "lat",
                                            "lng"
                                        ]
                                    },
                                    "address": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "point",
                                    "address"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "alert": {
                                        "$ref": "#/components/schemas/AlertSummaryResource"
                                    }
                                },
                                "required": [
                                    "alert"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "task": {
                                        "$ref": "#/components/schemas/TaskMinimalResource"
                                    }
                                },
                                "required": [
                                    "task"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "from": {
                                        "type": "object",
                                        "properties": {
                                            "site": {
                                                "$ref": "#/components/schemas/SiteSummaryResource"
                                            },
                                            "store": {
                                                "$ref": "#/components/schemas/StoreSummaryResource"
                                            },
                                            "asset": {
                                                "$ref": "#/components/schemas/AssetSummaryResource"
                                            }
                                        }
                                    },
                                    "to": {
                                        "type": "object",
                                        "properties": {
                                            "site": {
                                                "$ref": "#/components/schemas/SiteSummaryResource"
                                            },
                                            "store": {
                                                "$ref": "#/components/schemas/StoreSummaryResource"
                                            },
                                            "asset": {
                                                "$ref": "#/components/schemas/AssetSummaryResource"
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "type",
                                    "from",
                                    "to"
                                ]
                            }
                        ]
                    }
                },
                "required": [
                    "permalink",
                    "type",
                    "user",
                    "created_at",
                    "data"
                ],
                "title": "AssetActivityResource"
            },
            "AssetCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "AssetCollection"
            },
            "AssetDetailResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "serial_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "material": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MaterialSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "has_children": {
                        "type": "boolean"
                    },
                    "recursive_tasks_count": {
                        "type": "string"
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "relative_path": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "site": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/SiteSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "store": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/StoreSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "alerts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AlertResource"
                        }
                    },
                    "event_list": {
                        "$ref": "#/components/schemas/EventListResource"
                    },
                    "asset_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_warranty_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_life_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": "string"
                    },
                    "is_deletable": {
                        "type": "string"
                    },
                    "is_unarchivable": {
                        "type": "string"
                    },
                    "current_value": {
                        "type": "string"
                    },
                    "purchase_price": {
                        "type": "string"
                    },
                    "replacement_cost": {
                        "type": "string"
                    },
                    "parent": {
                        "$ref": "#/components/schemas/AssetSummaryResource"
                    },
                    "location": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "point": {
                                "type": "object",
                                "properties": {
                                    "lat": {
                                        "type": "string"
                                    },
                                    "lng": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "lat",
                                    "lng"
                                ]
                            },
                            "address": {
                                "type": "string"
                            },
                            "asset": {
                                "$ref": "#/components/schemas/AssetSummaryResource"
                            }
                        },
                        "required": [
                            "point",
                            "address"
                        ]
                    },
                    "custom_fields": {
                        "type": "string"
                    },
                    "qr_code": {
                        "$ref": "#/components/schemas/QrCodeSummaryResource"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "serial_number",
                    "type",
                    "material",
                    "alerts",
                    "asset_start_date",
                    "end_warranty_date",
                    "end_life_date",
                    "archived_at",
                    "is_deletable",
                    "is_unarchivable",
                    "custom_fields",
                    "qr_code"
                ],
                "title": "AssetDetailResource"
            },
            "AssetMetricCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "AssetMetricCollection"
            },
            "AssetReadingCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "AssetReadingCollection"
            },
            "AssetReplacementResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "material": {
                        "$ref": "#/components/schemas/MaterialSummaryResource"
                    },
                    "existing_asset": {
                        "$ref": "#/components/schemas/AssetResource"
                    },
                    "new_asset": {
                        "$ref": "#/components/schemas/AssetResource"
                    },
                    "type": {
                        "$ref": "#/components/schemas/AssetReplacementTypeEnum"
                    },
                    "processed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "from_store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "to_store": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/StoreSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "guid",
                    "material",
                    "existing_asset",
                    "new_asset",
                    "type",
                    "processed_at",
                    "from_store",
                    "to_store"
                ],
                "title": "AssetReplacementResource"
            },
            "AssetReplacementTypeEnum": {
                "type": "string",
                "enum": [
                    "replaces",
                    "child"
                ],
                "title": "AssetReplacementTypeEnum"
            },
            "AssetResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "serial_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "material": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MaterialSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "has_children": {
                        "type": "boolean"
                    },
                    "recursive_tasks_count": {
                        "type": "string"
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "relative_path": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "site": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/SiteSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "store": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/StoreSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "alerts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AlertResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "serial_number",
                    "type",
                    "material",
                    "alerts"
                ],
                "title": "AssetResource"
            },
            "AssetSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "serial_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "material": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MaterialSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "has_children": {
                        "type": "boolean"
                    },
                    "recursive_tasks_count": {
                        "type": "string"
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "relative_path": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    },
                    "timezone": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "serial_number",
                    "type",
                    "material"
                ],
                "title": "AssetSummaryResource"
            },
            "AssetTypeResource": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    }
                },
                "required": [
                    "title"
                ],
                "title": "AssetTypeResource"
            },
            "AttachOrUpdateOrderShipmentsRequest": {
                "type": "object",
                "properties": {
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 30
                    },
                    "received_time": {
                        "type": "string"
                    },
                    "freight": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 999999999999.99
                    },
                    "key": {
                        "type": "string"
                    },
                    "mark_as_complete": {
                        "type": "boolean"
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                },
                                "quantity_received": {
                                    "type": "number",
                                    "minimum": 0
                                },
                                "unit_price": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 999999999999.99
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "received_time",
                    "materials"
                ],
                "title": "AttachOrUpdateOrderShipmentsRequest"
            },
            "AttachTaskMaterialsRequest": {
                "type": "object",
                "properties": {
                    "store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                },
                                "quantity": {
                                    "type": "number",
                                    "minimum": 0
                                }
                            },
                            "required": [
                                "guid",
                                "quantity"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "store",
                    "materials"
                ],
                "title": "AttachTaskMaterialsRequest"
            },
            "AutomationCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "AutomationCollection"
            },
            "AutomationIntervalBasisEnum": {
                "type": "string",
                "enum": [
                    "fixed",
                    "floatingTrigger",
                    "floatingLatest"
                ],
                "title": "AutomationIntervalBasisEnum"
            },
            "AutomationMetricConditionEnum": {
                "type": "string",
                "enum": [
                    "greaterThan",
                    "greaterThanOrEquals",
                    "lessThan",
                    "lessThanOrEquals",
                    "equals",
                    "between",
                    "betweenInclusive",
                    "interval"
                ],
                "title": "AutomationMetricConditionEnum"
            },
            "AutomationSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "template": {
                        "$ref": "#/components/schemas/TemplateSummaryResource"
                    },
                    "is_editable": {
                        "type": "string"
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "$ref": "#/components/schemas/AutomationTypeEnum"
                    },
                    "metric": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MetricSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "metric_condition": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AutomationMetricConditionEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "metric_value": {
                        "anyOf": [
                            {},
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "metric_lower_bound": {
                        "anyOf": [
                            {},
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "metric_upper_bound": {
                        "anyOf": [
                            {},
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "metric_basis": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "template",
                    "is_editable",
                    "archived_at"
                ],
                "title": "AutomationSummaryResource"
            },
            "AutomationTimeBasisEnum": {
                "type": "string",
                "enum": [
                    "fixed",
                    "floating"
                ],
                "title": "AutomationTimeBasisEnum"
            },
            "AutomationTypeEnum": {
                "type": "string",
                "enum": [
                    "metric",
                    "time"
                ],
                "title": "AutomationTypeEnum"
            },
            "BillingCodeResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "title"
                ],
                "title": "BillingCodeResource"
            },
            "BoxResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "unit_price": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "quantity": {
                        "type": "string"
                    },
                    "material": {
                        "$ref": "#/components/schemas/MaterialSummaryResource"
                    }
                },
                "required": [
                    "guid",
                    "unit_price",
                    "quantity",
                    "material"
                ],
                "title": "BoxResource"
            },
            "BulkTaskSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "site": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/SiteSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "work_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/WorkTypeResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "approved_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "status": {
                        "type": "string"
                    },
                    "estimated_work_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_downtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "bulk_task_instruction": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "children_count": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "title",
                    "work_type",
                    "created_at",
                    "updated_at",
                    "status",
                    "estimated_work_time",
                    "estimated_downtime",
                    "reference",
                    "bulk_task_instruction"
                ],
                "title": "BulkTaskSummaryResource"
            },
            "CheckItemResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title"
                ],
                "title": "CheckItemResource"
            },
            "ChecklistResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CheckItemResource"
                        }
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "items",
                    "archived_at"
                ],
                "title": "ChecklistResource"
            },
            "CreateAssetReplacementRequest": {
                "type": "object",
                "properties": {
                    "existing_asset": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "existing_asset_serial": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/AssetReplacementTypeEnum"
                    },
                    "new_asset": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "to_store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    }
                },
                "required": [
                    "existing_asset",
                    "type",
                    "new_asset"
                ],
                "title": "CreateAssetReplacementRequest"
            },
            "CreateAssetRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "site": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "parent": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "material": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "guid": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "model": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 200
                            },
                            "manufacturer": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 255
                            }
                        }
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "event_list": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "serial_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "asset_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_warranty_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_life_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "title": "CreateAssetRequest"
            },
            "CreateChecklistRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "title": {
                                    "type": "string",
                                    "maxLength": 255
                                }
                            },
                            "required": [
                                "title"
                            ]
                        },
                        "minItems": 1,
                        "uniqueItems": true
                    }
                },
                "required": [
                    "title",
                    "items"
                ],
                "title": "CreateChecklistRequest"
            },
            "CreateCommentRequest": {
                "type": "object",
                "properties": {
                    "comment": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100000
                    },
                    "uploads": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                },
                "title": "CreateCommentRequest"
            },
            "CreateCustomFieldRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 30
                    },
                    "resource": {
                        "$ref": "#/components/schemas/CustomFieldResourceEnum"
                    },
                    "type": {
                        "$ref": "#/components/schemas/CustomFieldTypeEnum"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 80
                    }
                },
                "required": [
                    "name",
                    "resource",
                    "type"
                ],
                "title": "CreateCustomFieldRequest"
            },
            "CreateCycleCountRequest": {
                "type": "object",
                "properties": {
                    "store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    }
                },
                "required": [
                    "store"
                ],
                "title": "CreateCycleCountRequest"
            },
            "CreateDeleteSiteUserRequest": {
                "type": "object",
                "properties": {
                    "users": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "users"
                ],
                "title": "CreateDeleteSiteUserRequest"
            },
            "CreateDeleteTaskEventRequest": {
                "type": "object",
                "properties": {
                    "events": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "events"
                ],
                "title": "CreateDeleteTaskEventRequest"
            },
            "CreateEventRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "event_list": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    }
                },
                "required": [
                    "title",
                    "event_list"
                ],
                "title": "CreateEventRequest"
            },
            "CreateLocationRequest": {
                "type": "object",
                "properties": {
                    "point": {
                        "type": "object",
                        "properties": {
                            "lat": {
                                "type": "number",
                                "minimum": -90,
                                "maximum": 90
                            },
                            "lng": {
                                "type": "number",
                                "minimum": -180,
                                "maximum": 180
                            }
                        },
                        "required": [
                            "lat",
                            "lng"
                        ]
                    },
                    "address": {
                        "type": "string"
                    },
                    "place_id": {
                        "type": "string"
                    }
                },
                "required": [
                    "point"
                ],
                "title": "CreateLocationRequest"
            },
            "CreateMaterialRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "type": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "internal_reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "price": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 999999999999.99
                    },
                    "asset_model": {
                        "type": "boolean"
                    },
                    "manufacturer": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "unit_measurement": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "required": [
                    "type",
                    "asset_model"
                ],
                "title": "CreateMaterialRequest"
            },
            "CreateMetricRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "unit": {
                        "type": "string"
                    },
                    "linear": {
                        "type": "boolean"
                    },
                    "interval_unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/IntervalUnitEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "interval_quantity": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "value": {
                        "type": "number"
                    },
                    "read_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "title",
                    "unit"
                ],
                "title": "CreateMetricRequest"
            },
            "CreateOrderRequest": {
                "type": "object",
                "properties": {
                    "supplier": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "eta": {
                        "type": "string"
                    },
                    "purchasing_entity": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    }
                },
                "required": [
                    "supplier",
                    "store",
                    "eta",
                    "purchasing_entity"
                ],
                "title": "CreateOrderRequest"
            },
            "CreateReadingRequest": {
                "type": "object",
                "properties": {
                    "task": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    }
                },
                "title": "CreateReadingRequest"
            },
            "CreateResourceFileRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "show_in_tasks": {
                        "type": "boolean"
                    },
                    "key": {
                        "type": "string"
                    }
                },
                "required": [
                    "title",
                    "show_in_tasks",
                    "key"
                ],
                "title": "CreateResourceFileRequest"
            },
            "CreateTaskRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 150
                    },
                    "asset": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            },
                            "title": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "site": {
                                "type": "object",
                                "properties": {
                                    "title": {
                                        "type": "string",
                                        "maxLength": 100
                                    }
                                }
                            }
                        }
                    },
                    "estimated_work_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_downtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "planned_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "planned_start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "comment": {
                        "type": "string"
                    },
                    "work_request": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "uploads": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "work_type": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateTaskRequest"
            },
            "CreateTransferRequest": {
                "type": "object",
                "properties": {
                    "origin_store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "destination_store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "quantity": {
                                    "type": "number",
                                    "minimum": 0
                                },
                                "material": {
                                    "type": "object",
                                    "properties": {
                                        "guid": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "guid"
                                    ]
                                }
                            }
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "origin_store",
                    "destination_store",
                    "materials"
                ],
                "title": "CreateTransferRequest"
            },
            "CreateUpdateAlertRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "type": {
                        "$ref": "#/components/schemas/AlertTypeEnum"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "lineage_visibility": {
                        "$ref": "#/components/schemas/AlertLineageVisibilityEnum"
                    }
                },
                "required": [
                    "title",
                    "type"
                ],
                "title": "CreateUpdateAlertRequest"
            },
            "CreateUpdateBillingCodeRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateBillingCodeRequest"
            },
            "CreateUpdateDowntimeRequest": {
                "type": "object",
                "properties": {
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    }
                },
                "required": [
                    "start",
                    "end"
                ],
                "title": "CreateUpdateDowntimeRequest"
            },
            "CreateUpdateEntryRequest": {
                "type": "object",
                "properties": {
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    },
                    "site": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "work_code": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    }
                },
                "required": [
                    "start",
                    "end",
                    "site",
                    "work_code"
                ],
                "title": "CreateUpdateEntryRequest"
            },
            "CreateUpdateEventListRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateEventListRequest"
            },
            "CreateUpdateLabelRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateLabelRequest"
            },
            "CreateUpdateMetricAutomationRequest": {
                "type": "object",
                "properties": {
                    "template": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "metric": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "metric_condition": {
                        "$ref": "#/components/schemas/AutomationMetricConditionEnum"
                    },
                    "metric_value": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "metric_lower_bound": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "metric_upper_bound": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "metric_basis": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AutomationIntervalBasisEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "template",
                    "metric",
                    "metric_condition"
                ],
                "title": "CreateUpdateMetricAutomationRequest"
            },
            "CreateUpdateOvertimeRateRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateOvertimeRateRequest"
            },
            "CreateUpdateSiteRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "suburb": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "postcode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email"
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "fax": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateSiteRequest"
            },
            "CreateUpdateStoreRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "suburb": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "postcode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "fax": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "cycle_count_system_type": {
                        "$ref": "#/components/schemas/CycleCountSystemTypeEnum"
                    },
                    "cycle_count_system_value": {
                        "type": "number"
                    }
                },
                "required": [
                    "title",
                    "cycle_count_system_type",
                    "cycle_count_system_value"
                ],
                "title": "CreateUpdateStoreRequest"
            },
            "CreateUpdateSupplierRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "contact": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email"
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "suburb": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "postcode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateSupplierRequest"
            },
            "CreateUpdateTaskChecklistRequest": {
                "type": "object",
                "properties": {
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "title": {
                                    "type": "string",
                                    "maxLength": 255
                                }
                            },
                            "required": [
                                "title"
                            ]
                        },
                        "minItems": 1,
                        "uniqueItems": true
                    }
                },
                "required": [
                    "items"
                ],
                "title": "CreateUpdateTaskChecklistRequest"
            },
            "CreateUpdateTemplateRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 150
                    },
                    "procedure": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_work_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_downtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateTemplateRequest"
            },
            "CreateUpdateTimeAutomationRequest": {
                "type": "object",
                "properties": {
                    "template": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "time_start_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "time_end_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "time_interval_unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "daily",
                            "weekly",
                            "monthly",
                            "yearly",
                            null
                        ]
                    },
                    "time_interval_quantity": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "time_basis": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AutomationTimeBasisEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "time_back_fill_from": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "template",
                    "time_start_at"
                ],
                "title": "CreateUpdateTimeAutomationRequest"
            },
            "CreateUpdateWorkCodeCategoryRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 255
                    }
                },
                "required": [
                    "title"
                ],
                "title": "CreateUpdateWorkCodeCategoryRequest"
            },
            "CreateUpdateWorkCodeRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "work_code_category": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    },
                    "type": {
                        "$ref": "#/components/schemas/WorkCodeTypeEnum"
                    },
                    "paid": {
                        "type": "boolean"
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    }
                },
                "required": [
                    "title",
                    "work_code_category",
                    "type"
                ],
                "title": "CreateUpdateWorkCodeRequest"
            },
            "CreateUpdateWorkTypeRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 50
                    }
                },
                "required": [
                    "name"
                ],
                "title": "CreateUpdateWorkTypeRequest"
            },
            "CreateWorkRequest": {
                "type": "object",
                "properties": {
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    },
                    "users": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        },
                        "minItems": 1
                    },
                    "break": {
                        "type": "string"
                    },
                    "driving": {
                        "type": "string"
                    }
                },
                "required": [
                    "start",
                    "end",
                    "users"
                ],
                "title": "CreateWorkRequest"
            },
            "CreateWorkRequestRequest": {
                "type": "object",
                "properties": {
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "title": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string"
                    },
                    "asset": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "guid": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    },
                    "uploads": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                },
                "required": [
                    "title",
                    "description"
                ],
                "title": "CreateWorkRequestRequest"
            },
            "CustomFieldResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "resource": {
                        "$ref": "#/components/schemas/CustomFieldResourceEnum"
                    },
                    "type": {
                        "$ref": "#/components/schemas/CustomFieldTypeEnum"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "guid",
                    "name",
                    "slug",
                    "resource",
                    "type",
                    "description",
                    "archived_at"
                ],
                "title": "CustomFieldResource"
            },
            "CustomFieldResourceEnum": {
                "type": "string",
                "enum": [
                    "asset",
                    "material"
                ],
                "title": "CustomFieldResourceEnum"
            },
            "CustomFieldTypeEnum": {
                "type": "string",
                "enum": [
                    "checkbox",
                    "date",
                    "text-long",
                    "number",
                    "text"
                ],
                "title": "CustomFieldTypeEnum"
            },
            "CycleCountMaterialResource": {
                "type": "object",
                "properties": {
                    "quantity": {
                        "type": "string"
                    },
                    "system_quantity": {
                        "type": "string"
                    },
                    "locations": {
                        "type": "string"
                    },
                    "material": {
                        "$ref": "#/components/schemas/MaterialSummaryResource"
                    },
                    "counted_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "quantity",
                    "system_quantity",
                    "locations",
                    "material",
                    "counted_at"
                ],
                "title": "CycleCountMaterialResource"
            },
            "CycleCountResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "system_type": {
                        "$ref": "#/components/schemas/CycleCountSystemTypeEnum"
                    },
                    "system_value": {
                        "type": "integer"
                    },
                    "store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "materials_count": {
                        "type": "string"
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "complete_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "approve_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "approved_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CycleCountMaterialResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "system_type",
                    "system_value",
                    "store",
                    "materials_count",
                    "add_user",
                    "complete_user",
                    "approve_user",
                    "created_at",
                    "updated_at",
                    "completed_at",
                    "approved_at",
                    "materials"
                ],
                "title": "CycleCountResource"
            },
            "CycleCountSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "system_type": {
                        "$ref": "#/components/schemas/CycleCountSystemTypeEnum"
                    },
                    "system_value": {
                        "type": "integer"
                    },
                    "store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "materials_count": {
                        "type": "string"
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "complete_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "approve_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "approved_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "system_type",
                    "system_value",
                    "store",
                    "materials_count",
                    "add_user",
                    "complete_user",
                    "approve_user",
                    "created_at",
                    "updated_at",
                    "completed_at",
                    "approved_at"
                ],
                "title": "CycleCountSummaryResource"
            },
            "CycleCountSystemTypeEnum": {
                "type": "string",
                "enum": [
                    "quantity",
                    "percent"
                ],
                "title": "CycleCountSystemTypeEnum"
            },
            "DowntimeResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "start",
                    "end"
                ],
                "title": "DowntimeResource"
            },
            "EntryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "driving": {
                        "type": "string"
                    },
                    "break": {
                        "type": "string"
                    },
                    "site": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/SiteSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "work_code": {
                        "$ref": "#/components/schemas/WorkCodeSummaryResource"
                    },
                    "task": {
                        "$ref": "#/components/schemas/TaskSummaryResource"
                    },
                    "banked_hours": {
                        "type": "string"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "complete": {
                        "type": "boolean"
                    },
                    "approved": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "guid",
                    "start",
                    "end",
                    "type",
                    "driving",
                    "break",
                    "banked_hours",
                    "notes",
                    "complete",
                    "approved"
                ],
                "title": "EntryResource"
            },
            "EventListResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title"
                ],
                "title": "EventListResource"
            },
            "EventResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "event_list": {
                        "$ref": "#/components/schemas/EventListResource"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "code",
                    "event_list"
                ],
                "title": "EventResource"
            },
            "FileResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "file_name": {
                        "type": "string"
                    },
                    "mime_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "extension": {},
                    "uri": {
                        "type": "string"
                    },
                    "link": {
                        "type": "string"
                    },
                    "download_uri": {
                        "type": "string"
                    },
                    "bytes": {
                        "type": "integer"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "conversions": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "show_in_tasks": {
                        "type": [
                            "object",
                            "null"
                        ]
                    },
                    "resource_type": {
                        "type": "string"
                    },
                    "resource": {
                        "$ref": "#/components/schemas/TemplateSummaryResource"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "file_name",
                    "mime_type",
                    "extension",
                    "uri",
                    "link",
                    "download_uri",
                    "bytes",
                    "updated_at",
                    "show_in_tasks",
                    "resource_type"
                ],
                "title": "FileResource"
            },
            "IntervalUnitEnum": {
                "type": "string",
                "enum": [
                    "secondly",
                    "minutely",
                    "hourly",
                    "daily",
                    "weekly",
                    "monthly",
                    "yearly"
                ],
                "title": "IntervalUnitEnum"
            },
            "InventoryChangeResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "material": {
                        "$ref": "#/components/schemas/MaterialSummaryResource"
                    },
                    "store": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/StoreSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "type": {
                        "type": "string"
                    },
                    "quantity_difference": {
                        "type": "string"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "resource": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TransferSummaryResource"
                            },
                            {
                                "$ref": "#/components/schemas/TaskMinimalResource"
                            },
                            {
                                "$ref": "#/components/schemas/OrderSummaryResource"
                            },
                            {
                                "$ref": "#/components/schemas/CycleCountSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "guid",
                    "material",
                    "store",
                    "user",
                    "type",
                    "quantity_difference",
                    "notes",
                    "created_at",
                    "resource"
                ],
                "title": "InventoryChangeResource"
            },
            "InventorySummaryResource": {
                "type": "object",
                "properties": {
                    "store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "quantity": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "par_level": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "critical_level": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "locations": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "store",
                    "quantity",
                    "par_level",
                    "critical_level",
                    "locations"
                ],
                "title": "InventorySummaryResource"
            },
            "LabelResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "color": {
                        "type": "string"
                    },
                    "tasks_count": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "slug",
                    "description",
                    "color"
                ],
                "title": "LabelResource"
            },
            "LocationResource": {
                "type": "object",
                "properties": {
                    "point": {
                        "type": "object",
                        "properties": {
                            "lat": {
                                "type": "string"
                            },
                            "lng": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "lat",
                            "lng"
                        ]
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "asset": {
                        "$ref": "#/components/schemas/AssetSummaryResource"
                    }
                },
                "required": [
                    "point",
                    "address",
                    "user",
                    "asset"
                ],
                "title": "LocationResource"
            },
            "MaterialDetailResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "model": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "manufacturer": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "asset_model": {
                        "type": "boolean"
                    },
                    "unit_measurement": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "internal_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archive": {
                        "type": "string"
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "origin_quantity": {
                        "type": "string"
                    },
                    "destination_quantity": {
                        "type": "string"
                    },
                    "supplier_reference": {
                        "type": "string"
                    },
                    "current_quantity": {
                        "type": "string"
                    },
                    "par_level": {
                        "type": "string"
                    },
                    "critical_level": {
                        "type": "string"
                    },
                    "price": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "quantity": {
                        "type": "string"
                    },
                    "preferred": {
                        "type": "string"
                    },
                    "reference": {
                        "type": "string"
                    },
                    "is_deletable": {
                        "type": "string"
                    },
                    "inventories": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/StoreSummaryResource"
                        }
                    },
                    "suppliers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MaterialSupplierResource"
                        }
                    },
                    "custom_fields": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "code",
                    "title",
                    "type",
                    "model",
                    "manufacturer",
                    "asset_model",
                    "unit_measurement",
                    "internal_reference",
                    "archive",
                    "is_deletable",
                    "inventories",
                    "suppliers",
                    "custom_fields"
                ],
                "title": "MaterialDetailResource"
            },
            "MaterialResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "model": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "manufacturer": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "asset_model": {
                        "type": "boolean"
                    },
                    "unit_measurement": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "internal_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archive": {
                        "type": "string"
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "origin_quantity": {
                        "type": "string"
                    },
                    "destination_quantity": {
                        "type": "string"
                    },
                    "supplier_reference": {
                        "type": "string"
                    },
                    "current_quantity": {
                        "type": "string"
                    },
                    "par_level": {
                        "type": "string"
                    },
                    "critical_level": {
                        "type": "string"
                    },
                    "price": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "quantity": {
                        "type": "string"
                    },
                    "preferred": {
                        "type": "string"
                    },
                    "reference": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "code",
                    "title",
                    "type",
                    "model",
                    "manufacturer",
                    "asset_model",
                    "unit_measurement",
                    "internal_reference",
                    "archive"
                ],
                "title": "MaterialResource"
            },
            "MaterialSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "model": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "manufacturer": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "asset_model": {
                        "type": "boolean"
                    },
                    "unit_measurement": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "internal_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archive": {
                        "type": "string"
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "origin_quantity": {
                        "type": "string"
                    },
                    "destination_quantity": {
                        "type": "string"
                    },
                    "supplier_reference": {
                        "type": "string"
                    },
                    "current_quantity": {
                        "type": "string"
                    },
                    "par_level": {
                        "type": "string"
                    },
                    "critical_level": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "code",
                    "title",
                    "type",
                    "model",
                    "manufacturer",
                    "asset_model",
                    "unit_measurement",
                    "internal_reference",
                    "archive"
                ],
                "title": "MaterialSummaryResource"
            },
            "MaterialSupplierResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "suburb": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postcode": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "contact": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MaterialResource"
                        }
                    },
                    "materials_count": {
                        "type": "string"
                    },
                    "preferred": {
                        "type": "string"
                    },
                    "reference": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "address",
                    "suburb",
                    "postcode",
                    "state",
                    "country",
                    "contact",
                    "phone",
                    "email",
                    "preferred",
                    "reference"
                ],
                "title": "MaterialSupplierResource"
            },
            "MaterialWithInventoryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "model": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "manufacturer": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "asset_model": {
                        "type": "boolean"
                    },
                    "unit_measurement": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "internal_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archive": {
                        "type": "string"
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "origin_quantity": {
                        "type": "string"
                    },
                    "destination_quantity": {
                        "type": "string"
                    },
                    "supplier_reference": {
                        "type": "string"
                    },
                    "current_quantity": {
                        "type": "string"
                    },
                    "par_level": {
                        "type": "string"
                    },
                    "critical_level": {
                        "type": "string"
                    },
                    "price": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "quantity": {
                        "type": "string"
                    },
                    "preferred": {
                        "type": "string"
                    },
                    "reference": {
                        "type": "string"
                    },
                    "inventories": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/InventorySummaryResource"
                        }
                    },
                    "on_order": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "code",
                    "title",
                    "type",
                    "model",
                    "manufacturer",
                    "asset_model",
                    "unit_measurement",
                    "internal_reference",
                    "archive",
                    "inventories"
                ],
                "title": "MaterialWithInventoryResource"
            },
            "MeResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "surname": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "new_email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "permission_level": {
                        "$ref": "#/components/schemas/PermissionLevelSummaryResource"
                    },
                    "unread_notifications": {
                        "type": "string"
                    },
                    "notification_settings": {
                        "type": "object",
                        "properties": {
                            "task_emails": {
                                "type": "boolean"
                            },
                            "work_request_emails": {
                                "type": "boolean"
                            },
                            "push_notifications": {
                                "type": "boolean"
                            },
                            "do_not_disturb": {
                                "type": "boolean"
                            },
                            "start": {
                                "type": "string"
                            },
                            "end": {
                                "type": "string"
                            },
                            "email": {
                                "type": "boolean"
                            }
                        },
                        "required": [
                            "task_emails",
                            "work_request_emails",
                            "push_notifications",
                            "do_not_disturb",
                            "start",
                            "end",
                            "email"
                        ]
                    },
                    "is_super_user": {
                        "type": "boolean"
                    },
                    "security": {
                        "type": "object",
                        "properties": {
                            "two_factor_enabled": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "two_factor_enabled"
                        ]
                    },
                    "intercom": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "android": {
                                "type": "string"
                            },
                            "ios": {
                                "type": "string"
                            },
                            "jwt": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "android",
                            "ios",
                            "jwt"
                        ]
                    },
                    "export_settings": {
                        "type": "object",
                        "properties": {
                            "label": {
                                "type": "object",
                                "properties": {
                                    "width": {
                                        "type": "string"
                                    },
                                    "height": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "width",
                                    "height"
                                ]
                            }
                        },
                        "required": [
                            "label"
                        ]
                    },
                    "profiles": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProfileSummaryResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "first_name",
                    "surname",
                    "email",
                    "image",
                    "unread_notifications",
                    "notification_settings",
                    "security",
                    "intercom",
                    "export_settings",
                    "profiles"
                ],
                "title": "MeResource"
            },
            "MediaResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "file_name": {
                        "type": "string"
                    },
                    "mime_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "extension": {},
                    "uri": {
                        "type": "string"
                    },
                    "link": {
                        "type": "string"
                    },
                    "download_uri": {
                        "type": "string"
                    },
                    "bytes": {
                        "type": "integer"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "conversions": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "file_name",
                    "mime_type",
                    "extension",
                    "uri",
                    "link",
                    "download_uri",
                    "bytes",
                    "updated_at"
                ],
                "title": "MediaResource"
            },
            "MetricDetailCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "MetricDetailCollection"
            },
            "MetricDetailResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "unit": {
                        "type": "string"
                    },
                    "linear": {
                        "type": "boolean"
                    },
                    "interval_unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/IntervalUnitEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "interval_quantity": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "is_deletable": {
                        "type": "string"
                    },
                    "asset": {
                        "$ref": "#/components/schemas/AssetSummaryResource"
                    },
                    "latest_reading": {
                        "$ref": "#/components/schemas/ReadingSummaryResource"
                    },
                    "next_due": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "unit",
                    "linear",
                    "interval_unit",
                    "interval_quantity",
                    "archived_at",
                    "asset",
                    "next_due"
                ],
                "title": "MetricDetailResource"
            },
            "MetricResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "unit": {
                        "type": "string"
                    },
                    "linear": {
                        "type": "boolean"
                    },
                    "interval_unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/IntervalUnitEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "interval_quantity": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "is_deletable": {
                        "type": "string"
                    },
                    "asset": {
                        "$ref": "#/components/schemas/AssetSummaryResource"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "unit",
                    "linear",
                    "interval_unit",
                    "interval_quantity",
                    "archived_at",
                    "asset"
                ],
                "title": "MetricResource"
            },
            "MetricSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "unit": {
                        "type": "string"
                    },
                    "linear": {
                        "type": "boolean"
                    },
                    "interval_unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/IntervalUnitEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "interval_quantity": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "is_deletable": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "unit",
                    "linear",
                    "interval_unit",
                    "interval_quantity",
                    "archived_at"
                ],
                "title": "MetricSummaryResource"
            },
            "MetricUnitGroupResource": {
                "type": "object",
                "properties": {
                    "group": {
                        "type": "string"
                    },
                    "units": {
                        "type": "string"
                    }
                },
                "required": [
                    "group",
                    "units"
                ],
                "title": "MetricUnitGroupResource"
            },
            "OrderDetailResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "status": {
                        "$ref": "#/components/schemas/OrderStatusEnum"
                    },
                    "eta": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "sent_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "supplier": {
                        "$ref": "#/components/schemas/SupplierResource"
                    },
                    "store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/OrderMaterialResource"
                        }
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "change_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "sent_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "complete_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "purchasing_entity": {
                        "type": "string"
                    },
                    "reference": {
                        "type": "string"
                    },
                    "shipments": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ShipmentResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "status",
                    "eta",
                    "created_at",
                    "updated_at",
                    "sent_at",
                    "completed_at",
                    "supplier",
                    "store",
                    "materials",
                    "add_user",
                    "change_user",
                    "sent_user",
                    "complete_user",
                    "purchasing_entity",
                    "reference",
                    "shipments"
                ],
                "title": "OrderDetailResource"
            },
            "OrderMaterialResource": {
                "type": "object",
                "properties": {
                    "material": {
                        "$ref": "#/components/schemas/MaterialSummaryResource"
                    },
                    "quantity": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "unit_price": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "supplier_reference": {
                        "type": "string"
                    },
                    "received": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "shelf_reference": {
                        "type": "string"
                    }
                },
                "required": [
                    "material",
                    "quantity",
                    "unit_price",
                    "supplier_reference"
                ],
                "title": "OrderMaterialResource"
            },
            "OrderResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "status": {
                        "$ref": "#/components/schemas/OrderStatusEnum"
                    },
                    "eta": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "sent_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "supplier": {
                        "$ref": "#/components/schemas/SupplierResource"
                    },
                    "store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/OrderMaterialResource"
                        }
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "change_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "sent_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "complete_user": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UserSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "status",
                    "eta",
                    "created_at",
                    "updated_at",
                    "sent_at",
                    "completed_at",
                    "supplier",
                    "store",
                    "materials",
                    "add_user",
                    "change_user",
                    "sent_user",
                    "complete_user"
                ],
                "title": "OrderResource"
            },
            "OrderStatusEnum": {
                "type": "string",
                "enum": [
                    "pending",
                    "complete",
                    "sent"
                ],
                "title": "OrderStatusEnum"
            },
            "OrderSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "status": {
                        "$ref": "#/components/schemas/OrderStatusEnum"
                    },
                    "eta": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "sent_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "status",
                    "eta",
                    "created_at",
                    "updated_at",
                    "sent_at",
                    "completed_at"
                ],
                "title": "OrderSummaryResource"
            },
            "OrganisationResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "route_key": {},
                    "country_code": {
                        "type": "string"
                    },
                    "request_settings": {
                        "type": "object",
                        "additionalProperties": {
                            "anyOf": [
                                {
                                    "type": "boolean"
                                },
                                {
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "plan": {
                        "type": "string"
                    },
                    "add_ons": {
                        "type": "string"
                    },
                    "offline_billing": {
                        "type": "string"
                    },
                    "subscription_status": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "public_requests_enabled": {
                        "type": "boolean"
                    },
                    "test_organisation": {
                        "$ref": "#/components/schemas/OrganisationSummaryResource"
                    },
                    "is_test_organisation": {
                        "type": "boolean"
                    },
                    "live_organisation": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "current_profiles_count": {
                        "type": "integer"
                    },
                    "currency_code": {
                        "type": "string"
                    },
                    "date_start_of_week": {
                        "$ref": "#/components/schemas/OrganisationStartOfWeekEnum"
                    },
                    "all_day_length": {
                        "type": "number"
                    },
                    "default_location": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "route_key",
                    "country_code",
                    "request_settings",
                    "plan",
                    "add_ons",
                    "offline_billing",
                    "subscription_status",
                    "public_requests_enabled",
                    "currency_code",
                    "date_start_of_week",
                    "all_day_length"
                ],
                "title": "OrganisationResource"
            },
            "OrganisationStartOfWeekEnum": {
                "type": "string",
                "enum": [
                    "Sunday",
                    "Monday",
                    "Saturday"
                ],
                "title": "OrganisationStartOfWeekEnum"
            },
            "OrganisationSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "route_key": {},
                    "country_code": {
                        "type": "string"
                    },
                    "request_settings": {
                        "type": "object",
                        "additionalProperties": {
                            "anyOf": [
                                {
                                    "type": "boolean"
                                },
                                {
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "plan": {
                        "type": "string"
                    },
                    "add_ons": {
                        "type": "string"
                    },
                    "offline_billing": {
                        "type": "string"
                    },
                    "subscription_status": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "public_requests_enabled": {
                        "type": "boolean"
                    },
                    "test_organisation": {
                        "$ref": "#/components/schemas/OrganisationSummaryResource"
                    },
                    "is_test_organisation": {
                        "type": "boolean"
                    },
                    "live_organisation": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "route_key",
                    "country_code",
                    "request_settings",
                    "plan",
                    "add_ons",
                    "offline_billing",
                    "subscription_status",
                    "public_requests_enabled"
                ],
                "title": "OrganisationSummaryResource"
            },
            "OvertimeRateResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title"
                ],
                "title": "OvertimeRateResource"
            },
            "OvertimeResource": {
                "type": "object",
                "properties": {
                    "overtime_rate": {
                        "$ref": "#/components/schemas/OvertimeRateResource"
                    },
                    "time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "overtime_rate",
                    "time"
                ],
                "title": "OvertimeResource"
            },
            "PermissionLevelSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "array",
                        "items": {}
                    },
                    "description": {
                        "type": "array",
                        "items": {}
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "description"
                ],
                "title": "PermissionLevelSummaryResource"
            },
            "Profile": {
                "type": "object",
                "properties": {
                    "organisation_id": {
                        "type": "integer"
                    },
                    "guid": {
                        "type": "string"
                    },
                    "user_id": {
                        "type": "integer"
                    },
                    "permissionlevel_id": {
                        "type": "integer"
                    },
                    "company": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "add_user_id": {
                        "type": "integer"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "change_user_id": {
                        "type": "integer"
                    }
                },
                "required": [
                    "organisation_id",
                    "guid",
                    "user_id",
                    "permissionlevel_id",
                    "company",
                    "role",
                    "pr_reference",
                    "archived_at",
                    "created_at",
                    "add_user_id",
                    "updated_at",
                    "change_user_id"
                ],
                "title": "Profile"
            },
            "ProfileResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "company": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "status": {
                        "type": "string"
                    },
                    "permission_level": {
                        "$ref": "#/components/schemas/PermissionLevelSummaryResource"
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserHistoryResource"
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "change_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "organisation": {
                        "$ref": "#/components/schemas/OrganisationResource"
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "sites": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SiteSummaryResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "company",
                    "role",
                    "archived_at",
                    "status",
                    "sites"
                ],
                "title": "ProfileResource"
            },
            "ProfileSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "company": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "status": {
                        "type": "string"
                    },
                    "permission_level": {
                        "$ref": "#/components/schemas/PermissionLevelSummaryResource"
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserHistoryResource"
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "change_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "organisation": {
                        "$ref": "#/components/schemas/OrganisationResource"
                    }
                },
                "required": [
                    "guid",
                    "company",
                    "role",
                    "archived_at",
                    "status"
                ],
                "title": "ProfileSummaryResource"
            },
            "QrCodeSummaryResource": {
                "type": "object",
                "properties": {
                    "hash": {
                        "type": "string"
                    },
                    "uri": {
                        "type": "string"
                    },
                    "type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/QrCodeTypeEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "hash",
                    "uri",
                    "type"
                ],
                "title": "QrCodeSummaryResource"
            },
            "QrCodeTypeEnum": {
                "type": "string",
                "enum": [
                    "metallic",
                    "poly"
                ],
                "title": "QrCodeTypeEnum"
            },
            "ReadingResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "read_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "value": {
                        "anyOf": [
                            {},
                            {
                                "type": "string"
                            }
                        ]
                    },
                    "metric": {
                        "$ref": "#/components/schemas/MetricResource"
                    },
                    "task": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskMinimalResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "is_deletable": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "read_at",
                    "value",
                    "metric",
                    "task",
                    "is_deletable"
                ],
                "title": "ReadingResource"
            },
            "ReadingSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "read_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "value": {
                        "anyOf": [
                            {},
                            {
                                "type": "string"
                            }
                        ]
                    },
                    "metric": {
                        "$ref": "#/components/schemas/MetricSummaryResource"
                    },
                    "task": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskMinimalResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "is_deletable": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "read_at",
                    "value",
                    "task",
                    "is_deletable"
                ],
                "title": "ReadingSummaryResource"
            },
            "SetInventoryRequest": {
                "type": "object",
                "properties": {
                    "stores": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                },
                                "inventory": {
                                    "type": "object",
                                    "properties": {
                                        "quantity": {
                                            "type": "number",
                                            "pattern": "^[\\-\\+]?\\d*(\\.\\d{1,2})?$"
                                        },
                                        "critical_level": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ]
                                        },
                                        "par_level": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ]
                                        },
                                        "locations": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "quantity"
                                    ]
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        }
                    }
                },
                "title": "SetInventoryRequest"
            },
            "ShipmentResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "freight": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "received_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "delivery_document": {
                        "type": "string"
                    },
                    "boxes": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/BoxResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "reference",
                    "freight",
                    "received_time",
                    "delivery_document",
                    "boxes"
                ],
                "title": "ShipmentResource"
            },
            "SiteResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "has_children": {
                        "type": "boolean"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "users_count": {
                        "type": "string"
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "suburb": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postcode": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "fax": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "users": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/UserResource"
                        }
                    },
                    "stores": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/StoreSummaryResource"
                        }
                    },
                    "is_deletable": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "created_at",
                    "updated_at",
                    "address",
                    "suburb",
                    "postcode",
                    "state",
                    "email",
                    "phone",
                    "fax",
                    "timezone",
                    "users",
                    "stores",
                    "is_deletable"
                ],
                "title": "SiteResource"
            },
            "SiteSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "has_children": {
                        "type": "boolean"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "users_count": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "created_at",
                    "updated_at"
                ],
                "title": "SiteSummaryResource"
            },
            "StoreResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "cycle_count_system_value": {
                        "type": "integer"
                    },
                    "cycle_count_system_type": {
                        "$ref": "#/components/schemas/CycleCountSystemTypeEnum"
                    },
                    "has_children": {
                        "type": "boolean"
                    },
                    "inventory": {
                        "type": "string"
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "suburb": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postcode": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "fax": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_deletable": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "cycle_count_system_value",
                    "cycle_count_system_type",
                    "address",
                    "suburb",
                    "postcode",
                    "state",
                    "phone",
                    "fax",
                    "timezone",
                    "is_deletable"
                ],
                "title": "StoreResource"
            },
            "StoreSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "cycle_count_system_value": {
                        "type": "integer"
                    },
                    "cycle_count_system_type": {
                        "$ref": "#/components/schemas/CycleCountSystemTypeEnum"
                    },
                    "has_children": {
                        "type": "boolean"
                    },
                    "inventory": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "cycle_count_system_value",
                    "cycle_count_system_type"
                ],
                "title": "StoreSummaryResource"
            },
            "SupplierResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "suburb": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postcode": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "contact": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MaterialResource"
                        }
                    },
                    "materials_count": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "address",
                    "suburb",
                    "postcode",
                    "state",
                    "country",
                    "contact",
                    "phone",
                    "email"
                ],
                "title": "SupplierResource"
            },
            "TaskActivityResource": {
                "type": "object",
                "properties": {
                    "permalink": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "data": {
                        "type": "string"
                    }
                },
                "required": [
                    "permalink",
                    "type",
                    "user",
                    "created_at",
                    "data"
                ],
                "title": "TaskActivityResource"
            },
            "TaskCheckItemResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "checked_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "checked_at"
                ],
                "title": "TaskCheckItemResource"
            },
            "TaskChecklistResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TaskCheckItemResource"
                        }
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "guid",
                    "type",
                    "title",
                    "items",
                    "user",
                    "created_at"
                ],
                "title": "TaskChecklistResource"
            },
            "TaskMaterialResource": {
                "type": "object",
                "properties": {
                    "material": {
                        "$ref": "#/components/schemas/MaterialResource"
                    },
                    "stores": {
                        "type": "string"
                    }
                },
                "required": [
                    "material",
                    "stores"
                ],
                "title": "TaskMaterialResource"
            },
            "TaskMinimalResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/TaskTypeEnum"
                    },
                    "estimated_work_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_downtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "notification_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "due_date": {
                        "type": "null"
                    },
                    "planned_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "planned_start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "approved_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "locked_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "title",
                    "status",
                    "type",
                    "estimated_work_time",
                    "estimated_downtime",
                    "reference",
                    "notification_number",
                    "due_date",
                    "planned_start_date",
                    "planned_start_time",
                    "created_at",
                    "updated_at",
                    "locked_at"
                ],
                "title": "TaskMinimalResource"
            },
            "TaskResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/TaskTypeEnum"
                    },
                    "estimated_work_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_downtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "notification_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "due_date": {
                        "type": "null"
                    },
                    "planned_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "planned_start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "approved_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "locked_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "asset": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AssetResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "path",
                                    "site",
                                    "store"
                                ]
                            }
                        ]
                    },
                    "assignees": {
                        "type": "object",
                        "properties": {
                            "count": {
                                "type": "string"
                            },
                            "users": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/UserSummaryResource"
                                }
                            }
                        },
                        "required": [
                            "count",
                            "users"
                        ]
                    },
                    "comments_count": {
                        "type": "string"
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/LabelResource"
                        }
                    },
                    "items_count": {
                        "type": "string"
                    },
                    "checked_items_count": {
                        "type": "string"
                    },
                    "automation_type": {
                        "type": "string"
                    },
                    "work_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/WorkTypeResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "billing_code": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/BillingCodeResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "downtimes": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DowntimeResource"
                        }
                    },
                    "event": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EventResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EventResource"
                        }
                    },
                    "works": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/WorkResource"
                        }
                    },
                    "activities": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TaskActivityResource"
                        }
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TaskMaterialResource"
                        }
                    },
                    "asset_replacements": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AssetReplacementResource"
                        }
                    },
                    "parent": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/BulkTaskSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "work_request": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/WorkRequestResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "is_subscribed": {
                        "type": "string"
                    },
                    "template": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TemplateResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "assignees_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "reading": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ReadingSummaryResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "metric"
                                ]
                            }
                        ]
                    },
                    "checklists": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TaskChecklistResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "title",
                    "status",
                    "type",
                    "estimated_work_time",
                    "estimated_downtime",
                    "reference",
                    "notification_number",
                    "due_date",
                    "planned_start_date",
                    "planned_start_time",
                    "created_at",
                    "updated_at",
                    "locked_at",
                    "asset",
                    "comments_count",
                    "labels",
                    "items_count",
                    "checked_items_count",
                    "automation_type",
                    "work_type",
                    "billing_code",
                    "downtimes",
                    "event",
                    "events",
                    "works",
                    "activities",
                    "materials",
                    "asset_replacements",
                    "parent",
                    "work_request",
                    "add_user",
                    "is_subscribed",
                    "template",
                    "assignees_count",
                    "reading",
                    "checklists"
                ],
                "title": "TaskResource"
            },
            "TaskStatusEnum": {
                "type": "string",
                "enum": [
                    "open",
                    "closed"
                ],
                "title": "TaskStatusEnum"
            },
            "TaskSummaryCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "TaskSummaryCollection"
            },
            "TaskSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/TaskTypeEnum"
                    },
                    "estimated_work_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_downtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "notification_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "due_date": {
                        "type": "null"
                    },
                    "planned_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "planned_start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "approved_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "locked_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "asset": {
                        "$ref": "#/components/schemas/AssetSummaryResource"
                    },
                    "assignees": {
                        "type": "object",
                        "properties": {
                            "count": {
                                "type": "string"
                            },
                            "users": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/UserSummaryResource"
                                }
                            }
                        },
                        "required": [
                            "count",
                            "users"
                        ]
                    },
                    "comments_count": {
                        "type": "string"
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/LabelResource"
                        }
                    },
                    "items_count": {
                        "type": "string"
                    },
                    "checked_items_count": {
                        "type": "string"
                    },
                    "automation_type": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "title",
                    "status",
                    "type",
                    "estimated_work_time",
                    "estimated_downtime",
                    "reference",
                    "notification_number",
                    "due_date",
                    "planned_start_date",
                    "planned_start_time",
                    "created_at",
                    "updated_at",
                    "locked_at",
                    "asset",
                    "comments_count",
                    "labels",
                    "items_count",
                    "checked_items_count",
                    "automation_type"
                ],
                "title": "TaskSummaryResource"
            },
            "TaskTypeEnum": {
                "type": "string",
                "enum": [
                    "reactive",
                    "scheduled",
                    "bulk"
                ],
                "title": "TaskTypeEnum"
            },
            "TemplateResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "procedure": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_work_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "estimated_downtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MaterialResource"
                        }
                    },
                    "is_deletable": {
                        "type": "string"
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "procedure",
                    "estimated_work_time",
                    "estimated_downtime",
                    "materials",
                    "is_deletable",
                    "archived_at"
                ],
                "title": "TemplateResource"
            },
            "TemplateSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title"
                ],
                "title": "TemplateSummaryResource"
            },
            "TimesheetActivityStatusResource": {
                "type": "object",
                "properties": {
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    }
                },
                "required": [
                    "user",
                    "created_at",
                    "status"
                ],
                "title": "TimesheetActivityStatusResource"
            },
            "TimesheetListResource": {
                "type": "object",
                "properties": {
                    "timesheets": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TimesheetResource"
                        }
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EntryResource"
                        }
                    }
                },
                "required": [
                    "timesheets",
                    "entries"
                ],
                "title": "TimesheetListResource"
            },
            "TimesheetResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "date": {
                        "type": "string"
                    },
                    "allowances": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/WorkCodeSummaryResource"
                        }
                    },
                    "work_code": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/WorkCodeSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "overtimes": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/OvertimeResource"
                        }
                    },
                    "site": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/SiteSummaryResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "banked_hours": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "complete": {
                        "type": "boolean"
                    },
                    "approved": {
                        "type": "boolean"
                    },
                    "activities": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TimesheetActivityStatusResource"
                        }
                    }
                },
                "required": [
                    "guid",
                    "date",
                    "allowances",
                    "work_code",
                    "overtimes",
                    "site",
                    "banked_hours",
                    "notes",
                    "complete",
                    "approved",
                    "activities"
                ],
                "title": "TimesheetResource"
            },
            "TimesheetStatusEnum": {
                "type": "string",
                "enum": [
                    "pending",
                    "complete",
                    "approved"
                ],
                "title": "TimesheetStatusEnum"
            },
            "TransferMaterialResource": {
                "type": "object",
                "properties": {
                    "material": {
                        "$ref": "#/components/schemas/MaterialSummaryResource"
                    },
                    "quantity": {
                        "type": "string"
                    },
                    "origin_quantity": {
                        "type": "string"
                    },
                    "destination_quantity": {
                        "type": "string"
                    }
                },
                "required": [
                    "material",
                    "quantity"
                ],
                "title": "TransferMaterialResource"
            },
            "TransferResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "origin_store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "destination_store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferMaterialResource"
                        }
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "origin_store",
                    "destination_store",
                    "materials",
                    "add_user",
                    "created_at",
                    "notes"
                ],
                "title": "TransferResource"
            },
            "TransferSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "origin_store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "destination_store": {
                        "$ref": "#/components/schemas/StoreSummaryResource"
                    },
                    "materials": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferMaterialResource"
                        }
                    },
                    "add_user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "guid",
                    "number",
                    "origin_store",
                    "destination_store",
                    "materials",
                    "add_user",
                    "created_at",
                    "notes"
                ],
                "title": "TransferSummaryResource"
            },
            "UpcomingTaskCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "UpcomingTaskCollection"
            },
            "UpdateAssetRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "site": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "store": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "parent": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "material": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "guid": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "model": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 200
                            },
                            "manufacturer": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 255
                            }
                        }
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "event_list": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        }
                    },
                    "serial_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "asset_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_warranty_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_life_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "title": "UpdateAssetRequest"
            },
            "UpdateAssignmentRequest": {
                "type": "object",
                "properties": {
                    "users": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        }
                    }
                },
                "title": "UpdateAssignmentRequest"
            },
            "UpdateChecklistRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "title": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "guid": {
                                    "type": "string",
                                    "format": "uuid"
                                }
                            },
                            "required": [
                                "title"
                            ]
                        },
                        "minItems": 1,
                        "uniqueItems": true
                    }
                },
                "required": [
                    "title",
                    "items"
                ],
                "title": "UpdateChecklistRequest"
            },
            "UpdateCommentRequest": {
                "type": "object",
                "properties": {
                    "comment": {
                        "type": "string",
                        "maxLength": 100000
                    }
                },
                "required": [
                    "comment"
                ],
                "title": "UpdateCommentRequest"
            },
            "UpdateCustomFieldRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 30
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 80
                    }
                },
                "required": [
                    "name"
                ],
                "title": "UpdateCustomFieldRequest"
            },
            "UpdateCycleCountRequest": {
                "type": "object",
                "properties": {
                    "quantity": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "pattern": "^[\\-\\+]?\\d{0,9}(\\.\\d{1,2})?$"
                    }
                },
                "required": [
                    "quantity"
                ],
                "title": "UpdateCycleCountRequest"
            },
            "UpdateCycleCountStatusRequest": {
                "type": "object",
                "properties": {
                    "status": {
                        "type": "string",
                        "enum": [
                            "approved",
                            "complete"
                        ]
                    }
                },
                "required": [
                    "status"
                ],
                "title": "UpdateCycleCountStatusRequest"
            },
            "UpdateDueDateOnMultipleTasksRequest": {
                "type": "object",
                "properties": {
                    "filter": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "due_date": {
                        "type": "string"
                    }
                },
                "required": [
                    "due_date"
                ],
                "title": "UpdateDueDateOnMultipleTasksRequest"
            },
            "UpdateEventRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "event_list": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    }
                },
                "required": [
                    "title",
                    "event_list"
                ],
                "title": "UpdateEventRequest"
            },
            "UpdateInventoryRequest": {
                "type": "object",
                "properties": {
                    "quantity": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "pattern": "^[\\-\\+]?\\d{0,9}(\\.\\d{1,2})?$"
                    },
                    "critical_level": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "par_level": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "locations": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "title": "UpdateInventoryRequest"
            },
            "UpdateMetricRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "unit": {
                        "type": "string"
                    },
                    "linear": {
                        "type": "string"
                    },
                    "interval_unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/IntervalUnitEnum"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "interval_quantity": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    }
                },
                "required": [
                    "title"
                ],
                "title": "UpdateMetricRequest"
            },
            "UpdateOrderMaterialRequest": {
                "type": "object",
                "properties": {
                    "quantity": {
                        "type": "number",
                        "minimum": 0
                    },
                    "unit_price": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 999999999999.99
                    }
                },
                "required": [
                    "quantity"
                ],
                "title": "UpdateOrderMaterialRequest"
            },
            "UpdateOrderRequest": {
                "type": "object",
                "properties": {
                    "eta": {
                        "type": "string"
                    },
                    "purchasing_entity": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "status": {
                        "$ref": "#/components/schemas/OrderStatusEnum"
                    }
                },
                "required": [
                    "eta",
                    "purchasing_entity",
                    "status"
                ],
                "title": "UpdateOrderRequest"
            },
            "UpdatePlannedStartDateOnMultipleTasksRequest": {
                "type": "object",
                "properties": {
                    "filter": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "planned_start_date": {
                        "type": "string"
                    },
                    "planned_start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "planned_start_date"
                ],
                "title": "UpdatePlannedStartDateOnMultipleTasksRequest"
            },
            "UpdateReadingRequest": {
                "type": "object",
                "properties": {
                    "value": {
                        "type": "number"
                    },
                    "read_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "value"
                ],
                "title": "UpdateReadingRequest"
            },
            "UpdateResourceFileRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "show_in_tasks": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "title",
                    "show_in_tasks"
                ],
                "title": "UpdateResourceFileRequest"
            },
            "UpdateStatusOnMultipleTasksRequest": {
                "type": "object",
                "properties": {
                    "filter": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "$ref": "#/components/schemas/TaskStatusEnum"
                    }
                },
                "required": [
                    "status"
                ],
                "title": "UpdateStatusOnMultipleTasksRequest"
            },
            "UpdateStatusOnMultipleTimesheetsRequest": {
                "type": "object",
                "properties": {
                    "dates": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "minItems": 1
                    },
                    "status": {
                        "$ref": "#/components/schemas/TimesheetStatusEnum"
                    }
                },
                "required": [
                    "dates",
                    "status"
                ],
                "title": "UpdateStatusOnMultipleTimesheetsRequest"
            },
            "UpdateSupplierRequest": {
                "type": "object",
                "properties": {
                    "reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "preferred": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateSupplierRequest"
            },
            "UpdateTaskAssetRequest": {
                "type": "object",
                "properties": {
                    "asset": {
                        "type": "object",
                        "properties": {
                            "guid": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "guid"
                        ]
                    }
                },
                "required": [
                    "asset"
                ],
                "title": "UpdateTaskAssetRequest"
            },
            "UpdateTaskDueDateRequest": {
                "type": "object",
                "properties": {
                    "due_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "title": "UpdateTaskDueDateRequest"
            },
            "UpdateTaskLabelsRequest": {
                "type": "object",
                "properties": {
                    "attach": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        }
                    },
                    "detach": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "guid"
                            ]
                        }
                    }
                },
                "title": "UpdateTaskLabelsRequest"
            },
            "UpdateTaskMaterialRequest": {
                "type": "object",
                "properties": {
                    "stores": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "guid": {
                                    "type": "string"
                                },
                                "quantity": {
                                    "type": "number",
                                    "minimum": 0
                                }
                            },
                            "required": [
                                "guid",
                                "quantity"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "stores"
                ],
                "title": "UpdateTaskMaterialRequest"
            },
            "UpdateTaskPlannedStartRequest": {
                "type": "object",
                "properties": {
                    "planned_start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "planned_start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "title": "UpdateTaskPlannedStartRequest"
            },
            "UpdateTaskTitleRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 150
                    }
                },
                "required": [
                    "title"
                ],
                "title": "UpdateTaskTitleRequest"
            },
            "UpdateTransferRequest": {
                "type": "object",
                "properties": {
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "title": "UpdateTransferRequest"
            },
            "UpdateUserRequest": {
                "type": "object",
                "properties": {
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "surname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    }
                },
                "required": [
                    "email"
                ],
                "title": "UpdateUserRequest"
            },
            "UpdateWorkRequest": {
                "type": "object",
                "properties": {
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    },
                    "break": {
                        "type": "string"
                    },
                    "driving": {
                        "type": "string"
                    }
                },
                "required": [
                    "start",
                    "end"
                ],
                "title": "UpdateWorkRequest"
            },
            "UserHistoryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "surname": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "last_activity_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "two_factor_enabled": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "first_name",
                    "surname",
                    "email",
                    "image",
                    "last_activity_at",
                    "two_factor_enabled"
                ],
                "title": "UserHistoryResource"
            },
            "UserResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "surname": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "new_email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "permission_level": {
                        "$ref": "#/components/schemas/PermissionLevelSummaryResource"
                    }
                },
                "required": [
                    "guid",
                    "first_name",
                    "surname",
                    "email",
                    "image"
                ],
                "title": "UserResource"
            },
            "UserSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "surname": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MediaResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "guid",
                    "first_name",
                    "surname",
                    "email",
                    "image"
                ],
                "title": "UserSummaryResource"
            },
            "WorkCodeCategoryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "title"
                ],
                "title": "WorkCodeCategoryResource"
            },
            "WorkCodeResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/WorkCodeTypeEnum"
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "paid": {
                        "type": "boolean"
                    },
                    "work_code_category": {
                        "$ref": "#/components/schemas/WorkCodeCategoryResource"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "type",
                    "paid",
                    "work_code_category"
                ],
                "title": "WorkCodeResource"
            },
            "WorkCodeSummaryResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/WorkCodeTypeEnum"
                    },
                    "pr_reference": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "paid": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "type",
                    "paid"
                ],
                "title": "WorkCodeSummaryResource"
            },
            "WorkCodeTypeEnum": {
                "type": "string",
                "enum": [
                    "normal",
                    "allDay",
                    "allowance"
                ],
                "title": "WorkCodeTypeEnum"
            },
            "WorkRequestCollection": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "title": "WorkRequestCollection"
            },
            "WorkRequestResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "asset": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AssetResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": "string"
                    },
                    "rejected_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "files": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MediaResource"
                        }
                    },
                    "task": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskMinimalResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "guid",
                    "title",
                    "status",
                    "location",
                    "asset",
                    "name",
                    "email",
                    "phone",
                    "description",
                    "rejected_at",
                    "created_at",
                    "files",
                    "task"
                ],
                "title": "WorkRequestResource"
            },
            "WorkResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "break": {
                        "type": "string"
                    },
                    "driving": {
                        "type": "string"
                    },
                    "user": {
                        "$ref": "#/components/schemas/UserSummaryResource"
                    }
                },
                "required": [
                    "guid",
                    "start",
                    "end",
                    "type",
                    "notes",
                    "break",
                    "driving",
                    "user"
                ],
                "title": "WorkResource"
            },
            "WorkTypeResource": {
                "type": "object",
                "properties": {
                    "guid": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    }
                },
                "required": [
                    "guid",
                    "name"
                ],
                "title": "WorkTypeResource"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            },
            "ModelNotFoundException": {
                "description": "Not found",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            },
            "AuthorizationException": {
                "description": "Authorization error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            }
        }
    }
}