{
  "openapi": "3.0.4",
  "info": {
    "title": "Intelliplan API",
    "description": "Welcome to the Intelliplan External API. Use the API to securely retrieve data from Intelliplan and build customer-specific integrations. The API is continuously evolving, with new endpoints and capabilities released on an ongoing basis. Contact your Intelliplan representative for questions about specific use cases and API access.\n\n## Authentication\n\nTo authenticate, generate an OAuth 2.0 bearer token and include it together with your API key in each request. Generate the token using **https://{{tenant-id}}.idp.intelliplan.eu/connect/token** with the scope **omaha**. Contact your Intelliplan representative to obtain your **client_id**, **client_secret**, and **X-API-Key**.\n\n### Scopes\n\nEach endpoint also requires an area scope, such as **omaha.personal.read**, and each operation lists the scopes it needs. An administrator grants your API user its scopes in Intelliplan, and a token requested with the scope **omaha** carries every scope you have been granted. A request whose token lacks a scope the endpoint requires is refused with 403 insufficient_scope, and requiredScope in the response names the missing scope.\n\nSome fields hold sensitive data, such as national identity numbers, salaries, invoice amounts and document text. They are null unless the token carries the scope that releases them; the description of each such field names its scope.\n\nA change to your scopes applies to tokens issued from about 2 minutes later. A token you already have keeps the scopes it was issued with until it expires, which takes at least an hour.\n\n## Pagination\n\nList endpoints use pagination. To retrieve the next page, pass the nextPageToken from the previous response as the pageToken in your next request. A null value for nextPageToken indicates that you have reached the final page.\n\n## Dates and times\n\nAll dates and times are the agency's local Swedish time without a UTC offset, in responses and in requests: for example 2026-10-26T10:00:00, or 2026-10-26 for a date. This deliberately differs from the strict RFC 3339 date-time format, which requires an offset. A date or time sent with an offset (Z or +hh:mm) is rejected with 400 validation_failed.\n\n## Errors\nErrors follow the RFC 9457 Problem Details standard and include a stable, machine-readable errorCode. The exceptions are authentication failures (401/403), which have no body, apart from an ended sign-in (401 session_ended: the sign-in has ended, sign in again) and a missing scope (403 insufficient_scope), and requests with a value that cannot be parsed (400), which list the problems under errors instead. See the ProblemDetails schema for the complete list of possible error codes.",
    "version": "1.0.0"
  },
  "paths": {
    "/v1/workplaces/{id}": {
      "get": {
        "tags": [
          "Workplace"
        ],
        "summary": "Get a workplace",
        "description": "Returns a single workplace by its Intelliplan id. A workplace represents a customer site where staff are placed — the unit that orders, employments, and contacts attach to.",
        "operationId": "GetWorkplace",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the workplace.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workplace"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.customers.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/workplaces": {
      "get": {
        "tags": [
          "Workplace"
        ],
        "summary": "Get workplaces",
        "description": "Returns a paged list of workplaces. Use search to find a workplace by the start of its name, or filter by active status or parent workplace. A workplace is the customer site that customers, contacts, orders and employments attach to.",
        "operationId": "GetWorkplaces",
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "description": "Free-text search over a workplace's name and phone number (word starts-with, not contains, case-insensitive, for example 'ikea malm'), or exactly its id or customer key. Results are ordered by relevance.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "description": "Filter by whether the workplace is active.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ParentId",
            "in": "query",
            "description": "Filter by parent workplace id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfWorkplaceListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.customers.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/teams": {
      "get": {
        "tags": [
          "Team"
        ],
        "summary": "Get teams",
        "description": "Returns a paged list of the staffing organisation's own teams, with id and name. The ids are the values the teamId filter on persons, contacts, customers, orders and other lists accepts.",
        "operationId": "GetTeams",
        "parameters": [
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfTeam"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.organisation.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/shifts/{id}": {
      "get": {
        "tags": [
          "Shift"
        ],
        "summary": "Get a shift",
        "description": "Returns a single shift by its Intelliplan id. A shift is one working day on an assignment, either staffed by a person or left vacant.",
        "operationId": "GetShift",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the shift.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shift"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.assignments.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/shifts": {
      "get": {
        "tags": [
          "Shift"
        ],
        "summary": "Get shifts",
        "description": "Returns a paged list of shifts. Shifts can be filtered by person, assignment and period. The list is ordered by start time and then id.",
        "operationId": "GetShifts",
        "parameters": [
          {
            "name": "PersonId",
            "in": "query",
            "description": "Filter shifts by the id of the staffed person.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "CustomerId",
            "in": "query",
            "description": "Filter shifts by customer id. A shift belongs to the customer (sales account) of its order.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "AssignmentId",
            "in": "query",
            "description": "Filter shifts by assignment (order) id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "CancellationStatus",
            "in": "query",
            "description": "Filter shifts by cancellation state. Supported values: None, Partial and Total. This is the shift's own state and the same value the response returns as cancellationStatus; shifts have no generic status.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FromDate",
            "in": "query",
            "description": "Include shifts that start at or after this date and time. Both date filters apply to the shift's start: a shift that started earlier is not included, even if it is still running. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ToDate",
            "in": "query",
            "description": "Include shifts that start strictly before this date and time (exclusive). For a whole month, pass the first moment of the next month. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return shifts changed at or after this date and time. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of shifts to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IncludeDeleted",
            "in": "query",
            "description": "Include deleted shifts. Deleted shifts are left out by default. Cancelled shifts are a separate concept and are always included; filter those with cancellationStatus.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort the results by. Not supported: shifts are always returned ordered by start time and then id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Not supported: shifts are always returned in ascending order.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter shifts by the brand of the shift's order.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter shifts by the legal entity of the shift's order.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter shifts by the office of the shift's order.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter shifts by the team of the shift's order.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfShiftListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.assignments.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/shifts/{id}/articles": {
      "get": {
        "tags": [
          "Shift"
        ],
        "summary": "Get the articles on a shift",
        "description": "Returns the article rows reported on a shift — the financial rows that drive cost and revenue. The collection is returned in full; it is not paged.",
        "operationId": "GetShiftArticles",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the shift.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ShiftArticle"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.assignments.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/pools/{id}": {
      "get": {
        "tags": [
          "Pool"
        ],
        "summary": "Get a pool",
        "description": "Returns a single pool by its Intelliplan id. A pool is a group of consultants at a workplace that orders can be connected to. The counts are the values Intelliplan keeps on the pool.",
        "operationId": "GetPool",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the pool.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pool"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.pools.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/pools": {
      "get": {
        "tags": [
          "Pool"
        ],
        "summary": "Get pools",
        "description": "Returns a paged list of pools. Pools can be filtered by workplace, by the order they are connected to and by a search on the pool name. Every filter is applied by Intelliplan, so totalCount and nextPageToken always describe the filtered result. Sorting is by id (sortBy=id), ascending or descending, and can be combined with search.",
        "operationId": "GetPools",
        "parameters": [
          {
            "name": "WorkplaceId",
            "in": "query",
            "description": "Filter pools by workplace id. Only pools of exactly this workplace are returned.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OrderId",
            "in": "query",
            "description": "Filter pools by order id: the pools the order is connected to. An order you are not allowed to read returns no pools.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Search on the pool name (word starts-with, not contains, case-insensitive, for example 'lager natt'; every word must match). Can be combined with sortBy and sortDirection.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of pools to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort the results by. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction: asc or desc. Defaults to asc.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPool"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.pools.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/pool-consultants/{id}": {
      "get": {
        "tags": [
          "PoolConsultant"
        ],
        "summary": "Get a pool membership",
        "description": "Returns a single pool membership by its Intelliplan id: a consultant's membership of a pool, with whether the consultant is blocked from the pool and can express interest in its open shifts.",
        "operationId": "GetPoolConsultant",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the pool membership.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolConsultant"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.pools.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/pool-consultants": {
      "get": {
        "tags": [
          "PoolConsultant"
        ],
        "summary": "Get pool memberships",
        "description": "Returns a paged list of pool memberships. Memberships can be filtered by pool and by person. Every filter is applied by Intelliplan, so totalCount and nextPageToken always describe the filtered result. Sorting is by id (sortBy=id), ascending or descending.",
        "operationId": "GetPoolConsultants",
        "parameters": [
          {
            "name": "PoolId",
            "in": "query",
            "description": "Filter memberships by pool id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PersonId",
            "in": "query",
            "description": "Filter memberships by person id, the id the persons endpoints return.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of memberships to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort the results by. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction: asc or desc. Defaults to asc.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPoolConsultant"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.pools.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/persons/{id}": {
      "get": {
        "tags": [
          "Person"
        ],
        "summary": "Get a person",
        "description": "Returns a single person by their Intelliplan id. A person is anyone known to the system — a candidate, a consultant on assignment, or an internal user.",
        "operationId": "GetPerson",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the person.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Person"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/persons": {
      "get": {
        "tags": [
          "Person"
        ],
        "summary": "Get persons",
        "description": "Returns a paged list of persons, optionally filtered by type, status, organisational unit, user group, or assignment. Pages are fetched with the pageToken from the previous response's nextPageToken; a null nextPageToken means the last page.",
        "operationId": "GetPersons",
        "parameters": [
          {
            "name": "PersonType",
            "in": "query",
            "description": "Filter by person type. Supported values: consultant, internal, candidate. The types exclude each other: consultant leaves out persons who are also internal users or candidates, and internal and candidate leave out persons who are or were consultants. Case insensitive; other values return 400. Cannot be combined with brandId, legalEntityId, officeId or teamId.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "description": "Filter by person status. Supported values: Active, Inactive, Deleted. Case insensitive; other values return 400.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrgUnitId",
            "in": "query",
            "description": "Filter by organisational unit id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "UserGroupId",
            "in": "query",
            "description": "Filter by user group id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "AssignmentId",
            "in": "query",
            "description": "Filter by assignment (order) id: persons with any shift or other row on the order. An order with no person on any row returns no persons. Must be a positive integer.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return persons updated on or after this date and time. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "IncludeDeleted",
            "in": "query",
            "description": "Include persons with Deleted status.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter by brand id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter by legal entity id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter by office id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter by team id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Free-text search over a person's first name, last name, e-mail address, phone number and employee number. Each word is matched against the start of a name or e-mail (word starts-with, not contains: 'ann' finds Anna, 'son' does not find Johnson), case-insensitive, for example 'anna sv'. Inactive persons are included but ranked lower. Results are ordered by relevance, so search cannot be combined with sortBy, sortDirection, brandId, legalEntityId, officeId or teamId.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Email",
            "in": "query",
            "description": "Filter by exact e-mail address (case-insensitive). Use search to find by the start of an e-mail address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort field. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported values: asc, desc.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPersonListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/organisations/{id}": {
      "get": {
        "tags": [
          "Organisation"
        ],
        "summary": "Get an organisation",
        "description": "Returns a single organisation by its Intelliplan id. An organisation is a node in the organisational tree, grouping sales accounts, customer orders, opportunities, and employees.",
        "operationId": "GetOrganisation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the organisation.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organisation"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.organisation.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/organisations": {
      "get": {
        "tags": [
          "Organisation"
        ],
        "summary": "Get organisations",
        "description": "Returns a paged list of organisations. Organisations are nodes in the organisational tree and can be filtered by brand, legal entity, office, and team.",
        "operationId": "GetOrganisations",
        "parameters": [
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return organisations updated since this date and time. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of organisations to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token used to retrieve the next page of results.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort the results by. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported value: asc (organisation units cannot be sorted descending).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter organisations by brand id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter organisations by legal entity id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter organisations by office id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter organisations by team id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfOrganisationListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.organisation.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/orders/{id}": {
      "get": {
        "tags": [
          "Order"
        ],
        "summary": "Get an order",
        "description": "Returns a single order by its Intelliplan id. An order is a customer's request for staffing or recruitment services.",
        "operationId": "GetOrder",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the order.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.assignments.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/orders": {
      "get": {
        "tags": [
          "Order"
        ],
        "summary": "Get orders",
        "description": "Returns a paged list of orders. Orders can be filtered by customer, order type, assignment type, staffing service, business area, sales person, delivery manager and change time (updatedSince), and by the organisational dimensions brand, legal entity, office and team. Every filter is applied by Intelliplan, so totalCount and nextPageToken always describe the filtered result. Sorting is by id (sortBy=id), ascending or descending;",
        "operationId": "GetOrders",
        "parameters": [
          {
            "name": "CustomerId",
            "in": "query",
            "description": "Filter orders by customer (sales account) id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OrderType",
            "in": "query",
            "description": "Filter orders by order type. Supported values: Template and Regular.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AssignmentType",
            "in": "query",
            "description": "Filter orders by assignment type, the kind of the order's business area. Supported values: Staffing, Recruitment, Entreprenad, Outplacement and Other.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StaffingStatus",
            "in": "query",
            "description": "Filter orders by staffing status. Supported values: None, Intended, Active and Archived (case insensitive; other values return 400). Independent of the result's active field: an order that is not archived can have staffing status Archived, and the other way round.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StaffingServiceId",
            "in": "query",
            "description": "Filter orders by staffing service id, the id returned as staffingServiceId.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "BusinessAreaId",
            "in": "query",
            "description": "Filter orders by business area id, the id returned as businessAreaId.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "SalesPersonId",
            "in": "query",
            "description": "Filter orders by sales person id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "DeliveryManagerId",
            "in": "query",
            "description": "Filter orders by delivery manager id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return orders changed at or after this date and time. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of orders to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort the results by. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction: asc or desc. Defaults to desc (newest first).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter orders by brand id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter orders by legal entity id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter orders by office id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter orders by team id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfOrderListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.assignments.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/offices/{id}": {
      "get": {
        "tags": [
          "Office"
        ],
        "summary": "Get an office",
        "description": "Returns a single office by its Intelliplan id. An office is one of the staffing organisation's own branch locations, with its contact details and address.",
        "operationId": "GetOffice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the office.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Office"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.organisation.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/offices": {
      "get": {
        "tags": [
          "Office"
        ],
        "summary": "Get offices",
        "description": "Returns a paged list of the staffing organisation's own offices. The office ids are the values the officeId filter on persons, contacts, customers, orders and other lists accepts.",
        "operationId": "GetOffices",
        "parameters": [
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfOffice"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.organisation.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/legal-entities": {
      "get": {
        "tags": [
          "LegalEntity"
        ],
        "summary": "Get legal entities",
        "description": "Returns a paged list of the staffing organisation's own legal entities (its own companies, not the customers'), with id and name. The ids are the values the legalEntityId filter on persons, contacts, customers, orders and other lists accepts.",
        "operationId": "GetLegalEntities",
        "parameters": [
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfLegalEntity"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.organisation.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/employments/{id}": {
      "get": {
        "tags": [
          "Employment"
        ],
        "summary": "Get an employment",
        "description": "Returns a single employment by its Intelliplan id. An employment is a person's employment contract — the period, extent, salary, and cost terms under which they work.",
        "operationId": "GetEmployment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the employment.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Employment"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/employments": {
      "get": {
        "tags": [
          "Employment"
        ],
        "summary": "Get employments",
        "description": "Returns a paged list of employments, optionally filtered by person, date range, type, category, organisational unit, boss, or staffing service. Pages are fetched with the pageToken from the previous response's nextPageToken; a null nextPageToken means the last page.",
        "operationId": "GetEmployments",
        "parameters": [
          {
            "name": "PersonId",
            "in": "query",
            "description": "Filter by person id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "DateFrom",
            "in": "query",
            "description": "Include employments still running after this date: employments that ended on or before it are left out. Together with dateTo this selects the employments that overlap the period. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "DateTo",
            "in": "query",
            "description": "Include employments that start before this date (exclusive). For one day D, pass dateFrom D and dateTo the day after D. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EmploymentTypeId",
            "in": "query",
            "description": "Filter by employment type id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "EmploymentCategoryId",
            "in": "query",
            "description": "Filter by employment category id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OrgUnitId",
            "in": "query",
            "description": "Filter by organisational unit id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "BossId",
            "in": "query",
            "description": "Filter by the person's manager (person id). This is the person's manager, which can differ from the bossId returned on the employment.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "StaffingServiceId",
            "in": "query",
            "description": "Filter by a staffing service the person is registered for (staffing service id). This is the person's registered services, which can differ from the staffingServiceId returned on the employment.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter by the brand of the employment's organisational unit.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter by the legal entity of the employment's organisational unit.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter by the office of the employment's organisational unit.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter by the team of the employment's organisational unit.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return employments updated on or after this date and time. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort field. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported values: asc, desc.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfEmploymentListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/documents/{id}": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Get a document",
        "description": "Returns a single document by its Intelliplan id. A document is a file stored in Intelliplan and attached to a person, an order, a workplace, a customer or a piece of configuration; documentType says which. The file itself is served by GET /v1/documents/{id}/content.",
        "operationId": "GetDocument",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the document.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.documents.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/documents": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Get documents",
        "description": "Returns a paged list of documents. Filter by the person, order, workplace or customer a document is attached to, or by documentType. The extracted text of each document is left out unless includeText is set, because it is a whole document's text per row.",
        "operationId": "GetDocuments",
        "parameters": [
          {
            "name": "PersonId",
            "in": "query",
            "description": "Filter documents by person id: the person's picture, the documents on their skills and certificates, and the documents on their activities.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OrderId",
            "in": "query",
            "description": "Filter documents by order id: documents uploaded on the order, the logotypes of its job ads, and the documents on its activities.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "WorkplaceId",
            "in": "query",
            "description": "Filter documents by workplace id: documents uploaded on the workplace and the logotypes of its job ads.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "CustomerId",
            "in": "query",
            "description": "Filter documents by customer (sales account) id: the documents on the sales account's activities.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "DocumentType",
            "in": "query",
            "description": "Filter documents by what they are attached to. Supported values: EmployeePicture, JobAdLogotype, TradeMarkLogotype, WordTemplate, PortalDocument, ActivityDocument, CustomerDocument, OrderDocument, PersonDocument, CmsEmailBatchDocument and OrganisationDocument (case insensitive; other values return 400).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IncludeText",
            "in": "query",
            "description": "Return the text extracted from each document in docAsText. Defaults to false, which leaves docAsText null: the extracted text is a whole document per row.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return documents changed at or after this date and time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of documents to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort the results by. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction: asc or desc. Defaults to desc (newest first).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfDocumentListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.documents.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/documents/{id}/content": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Get the content of a document",
        "description": "Returns the document itself as a file, under its own media type and file name. Word documents are converted to PDF unless convertWordToPdf is set to false. The file is sent as a download unless displayInline is set to true.",
        "operationId": "GetDocumentContent",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the document.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "convertWordToPdf",
            "in": "query",
            "description": "Convert a Word document to PDF before serving it. Defaults to true.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "displayInline",
            "in": "query",
            "description": "Serve the file for display in the browser instead of as a download. Defaults to false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "$ref": "#/components/schemas/IFormFile"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.documents.read",
              "omaha.documents.content.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/customers/{id}": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Get a customer",
        "description": "Returns a single customer by its Intelliplan id.",
        "operationId": "GetCustomer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.customers.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/customers": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Get customers",
        "description": "Returns a paged list of customers. Pages are fetched with the pageToken from the previous response.",
        "operationId": "GetCustomers",
        "parameters": [
          {
            "name": "State",
            "in": "query",
            "description": "Filter by customer state. Supported values: ex-buyer, inactive, ex-prospect, prospect, sales, buyer.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "description": "Filter by workplace active status.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Blocked",
            "in": "query",
            "description": "Filter by sales account blocked status.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "OrgUnitId",
            "in": "query",
            "description": "Filter by organisational unit id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "WorkplaceId",
            "in": "query",
            "description": "Filter by workplace id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "ParentId",
            "in": "query",
            "description": "Filter by parent workplace id: customers whose workplace is a direct child of this workplace.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "Responsible",
            "in": "query",
            "description": "Filter by responsible person id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "AccountManager",
            "in": "query",
            "description": "Filter by key account manager id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "CustomerCode",
            "in": "query",
            "description": "Filter by customer code, matched exactly and case-sensitively. The code is alphanumeric, so letters and digits are both accepted.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Filter by customers modified on or after this timestamp. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Free-text search over a customer's name, visiting city, description and organisation number (word starts-with, not contains, case-insensitive, for example 'ikea malm') or exactly its id. It does not search e-mail addresses. Results are ordered by relevance, so search cannot be combined with sortBy or sortDirection.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort field. Supported values: id, name, modifiedDate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported values: asc, desc.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter by brand id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter by legal entity id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter by office id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter by team id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfCustomerListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.customers.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/contacts/{id}": {
      "get": {
        "tags": [
          "Contact"
        ],
        "summary": "Get a contact",
        "description": "Returns a single contact by their Intelliplan id. A contact is a contact person at a customer workplace, such as an order or invoice reference.",
        "operationId": "GetContact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the contact.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.customers.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/contacts": {
      "get": {
        "tags": [
          "Contact"
        ],
        "summary": "Get contacts",
        "description": "Returns a paged list of contacts. The result can be filtered by contact-specific and common list parameters.",
        "operationId": "GetContacts",
        "parameters": [
          {
            "name": "CustomerId",
            "in": "query",
            "description": "Filter by customer id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "WorkplaceId",
            "in": "query",
            "description": "Filter by workplace id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "Archived",
            "in": "query",
            "description": "Filter by archived: true returns only archived contacts, false only contacts in use. Matches the result's archived field.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "description": "The archived filter in other words, kept for existing clients: Active = not archived (archived false), Inactive = archived (archived true). It is not the marketing status. Prefer archived; sending both with contradicting values returns 400.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return contacts modified at or after this timestamp. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of contacts returned per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Free-text search over a contact's first name, last name, title, e-mail address and phone number. Each word is matched against the start of a name or e-mail (word starts-with, not contains), case-insensitive, for example 'anna sv'. Inactive contacts are included but ranked lower. Results are ordered by relevance, so search cannot be combined with sortBy or sortDirection.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort field. Supported values: id, firstName, lastName, createdDate, modifiedDate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported values: asc, desc.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter by brand id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter by legal entity id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter by office id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter by team id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfContactListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.customers.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/brands": {
      "get": {
        "tags": [
          "Brand"
        ],
        "summary": "Get brands",
        "description": "Returns a paged list of the staffing organisation's own brands (Shuffler's internal trademarks), with id and name. The ids are the values the brandId filter on persons, contacts, customers, orders and other lists accepts.",
        "operationId": "GetBrands",
        "parameters": [
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfBrand"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.organisation.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/availabilities/{id}": {
      "get": {
        "tags": [
          "Availability"
        ],
        "summary": "Get an availability",
        "description": "Returns a single availability by its Intelliplan id. An availability is a block of time a person has marked as available or not available for work.",
        "operationId": "GetAvailability",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the availability.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Availability"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.pools.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/availabilities": {
      "get": {
        "tags": [
          "Availability"
        ],
        "summary": "Get availabilities",
        "description": "Returns a paged list of availabilities, ordered by start time and then id. At least one filter other than type is required. dateFrom and dateTo select the availabilities that overlap the period.",
        "operationId": "GetAvailabilities",
        "parameters": [
          {
            "name": "PersonId",
            "in": "query",
            "description": "Filter availabilities by person id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "DateFrom",
            "in": "query",
            "description": "Include availabilities that end after this date and time. Together with dateTo this selects the availabilities that overlap the period. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "DateTo",
            "in": "query",
            "description": "Include availabilities that start before this date and time (exclusive). For one day D, pass dateFrom D and dateTo the day after D. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Type",
            "in": "query",
            "description": "Filter by availability type. Supported values: Available, NotAvailable. Case insensitive; other values return 400. Both types are returned when omitted.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return availabilities updated on or after this date and time. Availabilities last changed before May 2026 carry no update time and are never returned by this filter. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ResponsiblePersonId",
            "in": "query",
            "description": "Filter by the person's responsible person (person id): the same value GET /v1/persons/{id} returns as responsiblePersonId.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OrgUnitId",
            "in": "query",
            "description": "Filter by the person's organisational unit id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "UserGroupId",
            "in": "query",
            "description": "Filter by the person's user group id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter by the person's brand id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter by the person's legal entity id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter by the person's office id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter by the person's team id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of availabilities to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfAvailability"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.pools.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/absences/{id}": {
      "get": {
        "tags": [
          "Absence"
        ],
        "summary": "Get an absence",
        "description": "Returns a single absence by its Intelliplan id. An absence is a contiguous period during which a person is not working, together with the absence days that make up the period.",
        "operationId": "GetAbsence",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the absence.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Absence"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/absences": {
      "get": {
        "tags": [
          "Absence"
        ],
        "summary": "Get absences",
        "description": "Returns a paged list of absences. Absences can be filtered by person and by period. The list items omit the absence days; fetch a single absence to get them.",
        "operationId": "GetAbsences",
        "parameters": [
          {
            "name": "PersonId",
            "in": "query",
            "description": "Filter absences by person id.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "AbsenceType",
            "in": "query",
            "description": "Filter absences by absence type: the PAXML-compatible absence code category (for example SJK, SEM, VAB), tenant independent, case insensitive. Unknown values return 400.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FromDate",
            "in": "query",
            "description": "Return absences starting on or after this date. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ToDate",
            "in": "query",
            "description": "Return absences starting on or before this date. The whole day is included; a time part is ignored. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ActiveFrom",
            "in": "query",
            "description": "Return absences still going on after this date and time: absences that ended at or before it are left out, and absences that started earlier are included. Together with activeTo this selects the absences that overlap the period. Cannot be combined with fromDate or toDate. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ActiveTo",
            "in": "query",
            "description": "Return absences that start before this date and time (exclusive). For one day D, pass activeFrom D and activeTo the day after D. Cannot be combined with fromDate or toDate. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "description": "Return absences updated at or after this date and time. An absence counts as updated when the period itself or any of its absence days changed. Swedish local time, no UTC offset (no Z or +hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of absences to return per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort the results by. Supported value: id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported values: asc and desc.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BrandId",
            "in": "query",
            "description": "Filter absences by the brand of the absent person.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "LegalEntityId",
            "in": "query",
            "description": "Filter absences by the legal entity of the absent person.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "OfficeId",
            "in": "query",
            "description": "Filter absences by the office of the absent person.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "TeamId",
            "in": "query",
            "description": "Filter absences by the team of the absent person.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfAbsenceListItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/absence-codes/{id}": {
      "get": {
        "tags": [
          "AbsenceCode"
        ],
        "summary": "Get an absence code",
        "description": "Returns a single absence code by its Intelliplan id. An absence code classifies reported absence and controls how it is treated in time reporting and payroll.",
        "operationId": "GetAbsenceCode",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the absence code.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbsenceCode"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "AbsenceCode"
        ],
        "summary": "Update an absence code",
        "description": "Partially updates an absence code and returns the updated resource. Only the fields present in the request body are changed; at least one field must be provided.",
        "operationId": "PatchAbsenceCode",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Intelliplan id of the absence code.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAbsenceCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAbsenceCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAbsenceCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbsenceCode"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.write"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    },
    "/v1/absence-codes": {
      "get": {
        "tags": [
          "AbsenceCode"
        ],
        "summary": "Get absence codes",
        "description": "Returns a paged list of absence codes, ordered by name, with the same fields as a single absence code. Use it to find the id for an absence code's name, or to list the codes in use (isArchived=false). Consultants only see absence codes they can plan, and only codes in use unless isArchived is sent.",
        "operationId": "GetAbsenceCodes",
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "description": "Free-text search over the absence code's name and description. Each word is matched against the start of the name or of a word in the description, case-insensitive, for example 'sick'.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IsArchived",
            "in": "query",
            "description": "Filter by isArchived: true returns only archived absence codes, false only codes in use. Matches the result's isArchived field.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum number of items per page. Minimum 1, maximum 1000.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageToken",
            "in": "query",
            "description": "Token for the next page, taken from the previous response's nextPageToken.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfAbsenceCode"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "omaha",
              "omaha.personal.read"
            ],
            "ApiKey": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Absence": {
        "required": [
          "id",
          "personId",
          "personName",
          "absenceType",
          "absenceCodeId",
          "absenceCodeName",
          "absenceCodeDescription",
          "dateFrom",
          "dateTo",
          "absenceDegree",
          "description",
          "createdDate",
          "modifiedDate",
          "absenceDays"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Absence id.",
            "format": "int32"
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person the absence belongs to.",
            "format": "int32",
            "nullable": true
          },
          "personName": {
            "type": "string",
            "description": "First name and surname of that person. Null when the user may not read the person, or when no name is stored for the person.",
            "nullable": true
          },
          "absenceType": {
            "type": "string",
            "description": "Absence type. The PAXML-compatible category of the underlying absence code (for example SJK, SEM, VAB); tenant independent.",
            "nullable": true
          },
          "absenceCodeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the absence code the absence uses, for GET /v1/absence-codes/{id}. Tenant specific; several absence codes can share one absenceType.",
            "format": "int32",
            "nullable": true
          },
          "absenceCodeName": {
            "type": "string",
            "description": "Display name of that absence code, as GET /v1/absence-codes/{id} returns it in name.",
            "nullable": true
          },
          "absenceCodeDescription": {
            "type": "string",
            "description": "Free-text description of that absence code, as GET /v1/absence-codes/{id} returns it in description. Not the description of the absence itself.",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "description": "First day of the absence period.",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "description": "Last day of the absence period.",
            "format": "date-time",
            "nullable": true
          },
          "absenceDegree": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Absence degree as a share of full time, from 0 to 1: 1 is a full-time absence, 0.49 is 49 %. The Intelliplan web client shows it as a percentage.",
            "format": "double",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Free-text description of the absence.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the absence was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the absence was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "absenceDays": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbsenceDay"
            },
            "description": "The absence days that make up the absence period."
          }
        }
      },
      "AbsenceCode": {
        "required": [
          "id",
          "name",
          "description",
          "category",
          "ruleType",
          "refWeeksQty",
          "isArchived",
          "allowConsultantTimeReport",
          "dayToArticle1",
          "dayToArticle2",
          "exportCode",
          "allowForMonthlySalary",
          "allowForGuaranteeSalary",
          "allowForHourlySalary",
          "allowForSubContractor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the absence code.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Display name of the absence code.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Free-text description.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "Category of the absence code.",
            "nullable": true
          },
          "ruleType": {
            "type": "string",
            "description": "Rule type of the absence code.",
            "nullable": true
          },
          "refWeeksQty": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Reference period in weeks.",
            "format": "int32",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean",
            "description": "Whether the absence code is archived.",
            "nullable": true
          },
          "allowConsultantTimeReport": {
            "type": "boolean",
            "description": "Whether consultants may report time on the absence code.",
            "nullable": true
          },
          "dayToArticle1": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Last absence day covered by the first article (999 means no end).",
            "format": "int32",
            "nullable": true
          },
          "dayToArticle2": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Last absence day covered by the second article (999 means no end).",
            "format": "int32",
            "nullable": true
          },
          "exportCode": {
            "type": "string",
            "description": "Code used when exporting to external systems.",
            "nullable": true
          },
          "allowForMonthlySalary": {
            "type": "boolean",
            "description": "Whether the absence code can be used with monthly salary.",
            "nullable": true
          },
          "allowForGuaranteeSalary": {
            "type": "boolean",
            "description": "Whether the absence code can be used with guarantee salary.",
            "nullable": true
          },
          "allowForHourlySalary": {
            "type": "boolean",
            "description": "Whether the absence code can be used with hourly salary.",
            "nullable": true
          },
          "allowForSubContractor": {
            "type": "boolean",
            "description": "Whether the absence code can be used for subcontractors.",
            "nullable": true
          }
        }
      },
      "AbsenceDay": {
        "required": [
          "id",
          "dateFrom",
          "dateTo",
          "breakMinutes",
          "hours",
          "bossConfirmed",
          "invoiced",
          "salaryCalculated",
          "flagged",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Absence day id.",
            "format": "int32"
          },
          "dateFrom": {
            "type": "string",
            "description": "Start of the absence day.",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "description": "End of the absence day.",
            "format": "date-time",
            "nullable": true
          },
          "breakMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Unpaid break in minutes.",
            "format": "int32",
            "nullable": true
          },
          "hours": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Number of absent hours.",
            "format": "double",
            "nullable": true
          },
          "bossConfirmed": {
            "type": "boolean",
            "description": "Whether the absence day has been confirmed by the boss.",
            "nullable": true
          },
          "invoiced": {
            "type": "boolean",
            "description": "Whether the absence day has been invoiced.",
            "nullable": true
          },
          "salaryCalculated": {
            "type": "boolean",
            "description": "Whether the absence day has been included in a salary calculation.",
            "nullable": true
          },
          "flagged": {
            "type": "boolean",
            "description": "Whether the absence day is flagged for attention.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the absence day was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the absence day was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "AbsenceListItem": {
        "required": [
          "id",
          "personId",
          "personName",
          "absenceType",
          "absenceCodeId",
          "absenceCodeName",
          "absenceCodeDescription",
          "dateFrom",
          "dateTo",
          "absenceDegree",
          "description",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Absence id.",
            "format": "int32"
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person the absence belongs to.",
            "format": "int32",
            "nullable": true
          },
          "personName": {
            "type": "string",
            "description": "First name and surname of that person. Null when the user may not read the person, or when no name is stored for the person.",
            "nullable": true
          },
          "absenceType": {
            "type": "string",
            "description": "Absence type. The PAXML-compatible category of the underlying absence code (for example SJK, SEM, VAB); tenant independent.",
            "nullable": true
          },
          "absenceCodeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the absence code the absence uses, for GET /v1/absence-codes/{id}. Tenant specific; several absence codes can share one absenceType.",
            "format": "int32",
            "nullable": true
          },
          "absenceCodeName": {
            "type": "string",
            "description": "Display name of that absence code, as GET /v1/absence-codes/{id} returns it in name.",
            "nullable": true
          },
          "absenceCodeDescription": {
            "type": "string",
            "description": "Free-text description of that absence code, as GET /v1/absence-codes/{id} returns it in description. Not the description of the absence itself.",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "description": "First day of the absence period.",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "description": "Last day of the absence period.",
            "format": "date-time",
            "nullable": true
          },
          "absenceDegree": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Absence degree as a share of full time, from 0 to 1: 1 is a full-time absence, 0.49 is 49 %. The Intelliplan web client shows it as a percentage.",
            "format": "double",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Free-text description of the absence.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the absence was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the absence was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Availability": {
        "required": [
          "id",
          "personId",
          "dateFrom",
          "dateTo",
          "type",
          "comment",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Availability id.",
            "format": "int32"
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person the availability belongs to.",
            "format": "int32",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "description": "Start of the availability block, inclusive (local Swedish time, no UTC offset).",
            "format": "date-time"
          },
          "dateTo": {
            "type": "string",
            "description": "End of the availability block, exclusive: a block that lasts the whole of a day ends at 00:00 the next day (local Swedish time, no UTC offset).",
            "format": "date-time"
          },
          "type": {
            "type": "string",
            "description": "Availability type: Available (the person can work) or NotAvailable (the person has marked the time as unavailable).",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "description": "Latest comment on the availability block.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the availability block was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the availability block was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Brand": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the brand: the value the brandId filter on other lists accepts.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Display name of the brand.",
            "nullable": true
          }
        }
      },
      "Contact": {
        "required": [
          "id",
          "firstName",
          "lastName",
          "email",
          "fixedPhone",
          "mobilePhone",
          "linkedInUrl",
          "role",
          "contactRoleId",
          "workplaceId",
          "customerId",
          "externalId",
          "archived",
          "portalAccess",
          "marketingStatus",
          "marketingStatusDate",
          "leadSource",
          "note",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the contact.",
            "format": "int32"
          },
          "firstName": {
            "type": "string",
            "description": "First name.",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name.",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Primary email address.",
            "nullable": true
          },
          "fixedPhone": {
            "type": "string",
            "description": "Fixed phone number.",
            "nullable": true
          },
          "mobilePhone": {
            "type": "string",
            "description": "Mobile phone number.",
            "nullable": true
          },
          "linkedInUrl": {
            "type": "string",
            "description": "LinkedIn profile URL.",
            "nullable": true
          },
          "role": {
            "type": "string",
            "description": "Name of the contact's role.",
            "nullable": true
          },
          "contactRoleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Intelliplan id of the contact role.",
            "format": "int32",
            "nullable": true
          },
          "workplaceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Intelliplan id of the workplace the contact belongs to.",
            "format": "int32",
            "nullable": true
          },
          "customerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Intelliplan id of the customer the contact is connected to.",
            "format": "int32",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "description": "External system identifier.",
            "nullable": true
          },
          "archived": {
            "type": "boolean",
            "description": "Whether the contact is archived."
          },
          "portalAccess": {
            "type": "string",
            "description": "Portal access level for the contact.",
            "nullable": true
          },
          "marketingStatus": {
            "type": "string",
            "description": "Marketing status of the contact.",
            "nullable": true
          },
          "marketingStatusDate": {
            "type": "string",
            "description": "Date when the marketing status was last changed.",
            "format": "date-time",
            "nullable": true
          },
          "leadSource": {
            "type": "string",
            "description": "Lead source of the contact.",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Free-text note.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "Date when the contact was created.",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "Date when the contact was last modified.",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ContactListItem": {
        "required": [
          "id",
          "firstName",
          "lastName",
          "email",
          "mobilePhone",
          "fixedPhone",
          "role",
          "contactRoleId",
          "customerId",
          "workplaceId",
          "archived",
          "externalId",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the contact.",
            "format": "int32"
          },
          "firstName": {
            "type": "string",
            "description": "First name.",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name.",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Primary email address.",
            "nullable": true
          },
          "mobilePhone": {
            "type": "string",
            "description": "Mobile phone number.",
            "nullable": true
          },
          "fixedPhone": {
            "type": "string",
            "description": "Fixed phone number.",
            "nullable": true
          },
          "role": {
            "type": "string",
            "description": "Name of the contact's role.",
            "nullable": true
          },
          "contactRoleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Intelliplan id of the contact role.",
            "format": "int32",
            "nullable": true
          },
          "customerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Intelliplan id of the customer the contact is connected to.",
            "format": "int32",
            "nullable": true
          },
          "workplaceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Intelliplan id of the workplace the contact belongs to.",
            "format": "int32",
            "nullable": true
          },
          "archived": {
            "type": "boolean",
            "description": "Whether the contact is archived."
          },
          "externalId": {
            "type": "string",
            "description": "External system identifier.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "Date when the contact was created.",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "Date when the contact was last modified.",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Customer": {
        "required": [
          "id",
          "name",
          "orgNumber",
          "customerCode",
          "note",
          "active",
          "state",
          "blocked",
          "phone",
          "webpage",
          "orgUnitId",
          "workplaceId",
          "customerTreeLevel",
          "parentId",
          "responsibleId",
          "responsibleName",
          "accountManagerId",
          "accountManagerName",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the customer.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Customer name.",
            "nullable": true
          },
          "orgNumber": {
            "type": "string",
            "description": "Organisation number.",
            "nullable": true
          },
          "customerCode": {
            "type": "string",
            "description": "Customer code from the workplace behind the customer (CustKey in Intelliplan). Alphanumeric: letters and digits both occur.",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "General customer note.",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the customer's workplace is active, i.e. not archived. Not the sales state; see state."
          },
          "state": {
            "type": "string",
            "description": "Customer state.",
            "nullable": true
          },
          "blocked": {
            "type": "boolean",
            "description": "Whether the customer is blocked."
          },
          "phone": {
            "type": "string",
            "description": "Customer phone number.",
            "nullable": true
          },
          "webpage": {
            "type": "string",
            "description": "Customer webpage.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit.",
            "format": "int32",
            "nullable": true
          },
          "workplaceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the workplace.",
            "format": "int32",
            "nullable": true
          },
          "customerTreeLevel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Level in the customer tree.",
            "format": "int32",
            "nullable": true
          },
          "parentId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the parent workplace in the customer's workplace tree: a workplace id (GET /v1/workplaces/{id}), not a customer id. Null at the top of the tree.",
            "format": "int32",
            "nullable": true
          },
          "responsibleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the internal person responsible for the customer.",
            "format": "int32",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "description": "First name and surname of the responsible person. Null when the user may not read the person.",
            "nullable": true
          },
          "accountManagerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the key account manager.",
            "format": "int32",
            "nullable": true
          },
          "accountManagerName": {
            "type": "string",
            "description": "First name and surname of the key account manager. Null when the user may not read the person.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the customer was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the customer was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "CustomerListItem": {
        "required": [
          "id",
          "name",
          "orgNumber",
          "customerCode",
          "active",
          "state",
          "blocked",
          "phone",
          "webpage",
          "orgUnitId",
          "workplaceId",
          "customerTreeLevel",
          "parentId",
          "responsibleId",
          "responsibleName",
          "accountManagerId",
          "accountManagerName",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the customer.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Customer name.",
            "nullable": true
          },
          "orgNumber": {
            "type": "string",
            "description": "Organisation number.",
            "nullable": true
          },
          "customerCode": {
            "type": "string",
            "description": "Customer code from the workplace behind the customer (CustKey in Intelliplan). Alphanumeric: letters and digits both occur.",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the customer's workplace is active, i.e. not archived. Not the sales state; see state."
          },
          "state": {
            "type": "string",
            "description": "Customer state.",
            "nullable": true
          },
          "blocked": {
            "type": "boolean",
            "description": "Whether the customer is blocked."
          },
          "phone": {
            "type": "string",
            "description": "Customer phone number.",
            "nullable": true
          },
          "webpage": {
            "type": "string",
            "description": "Customer webpage.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit.",
            "format": "int32",
            "nullable": true
          },
          "workplaceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the workplace.",
            "format": "int32",
            "nullable": true
          },
          "customerTreeLevel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Level in the customer tree.",
            "format": "int32",
            "nullable": true
          },
          "parentId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the parent workplace in the customer's workplace tree: a workplace id (GET /v1/workplaces/{id}), not a customer id. Null at the top of the tree.",
            "format": "int32",
            "nullable": true
          },
          "responsibleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the internal person responsible for the customer.",
            "format": "int32",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "description": "First name and surname of the responsible person. Null when the user may not read the person.",
            "nullable": true
          },
          "accountManagerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the key account manager.",
            "format": "int32",
            "nullable": true
          },
          "accountManagerName": {
            "type": "string",
            "description": "First name and surname of the key account manager. Null when the user may not read the person.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the customer was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the customer was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Document": {
        "required": [
          "id",
          "fileName",
          "fileType",
          "mimeType",
          "documentType",
          "docAsText",
          "docAsTextDate",
          "docHash",
          "modifiedDate",
          "links"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the document.",
            "format": "int32"
          },
          "fileName": {
            "type": "string",
            "description": "File name of the document, as it was uploaded.",
            "nullable": true
          },
          "fileType": {
            "type": "string",
            "description": "File type of the document, almost always the same as the file ending.",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "description": "Media type of the document, derived from its file type and file name.",
            "nullable": true
          },
          "documentType": {
            "type": "string",
            "description": "What the document is attached to. Supported values: EmployeePicture, JobAdLogotype, TradeMarkLogotype, WordTemplate, PortalDocument, ActivityDocument, CustomerDocument, OrderDocument, PersonDocument, CmsEmailBatchDocument and OrganisationDocument.",
            "nullable": true
          },
          "docAsText": {
            "type": "string",
            "description": "The text extracted from the document. Null when the document has not been converted to text. Withheld (null) unless the token carries the scope omaha.documents.content.read.",
            "nullable": true
          },
          "docAsTextDate": {
            "type": "string",
            "description": "When the text was extracted from the document (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "docHash": {
            "type": "string",
            "description": "SHA256 hash of the document, Base64 encoded.",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the document was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentLink"
            },
            "description": "The persons, orders, customers, workplaces and job ads the document is linked to, one link per entity: several of the same type when the document is linked to several (a job ad logotype can be shared by several orders). Only entities you may read are listed. Always an array on GET /v1/documents/{id}: empty when there are none.",
            "nullable": true
          }
        }
      },
      "DocumentLink": {
        "required": [
          "type",
          "id"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Type of the linked entity: person, order, customer, workplace or jobAd."
          },
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Id of the linked entity, the id its own endpoint uses (for example GET /v1/orders/{id} for an order).",
            "format": "int32"
          }
        }
      },
      "DocumentListItem": {
        "required": [
          "id",
          "fileName",
          "fileType",
          "mimeType",
          "documentType",
          "docAsText",
          "docAsTextDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the document.",
            "format": "int32"
          },
          "fileName": {
            "type": "string",
            "description": "File name of the document, as it was uploaded.",
            "nullable": true
          },
          "fileType": {
            "type": "string",
            "description": "File type of the document, almost always the same as the file ending.",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "description": "Media type of the document, derived from its file type and file name.",
            "nullable": true
          },
          "documentType": {
            "type": "string",
            "description": "What the document is attached to. Supported values: EmployeePicture, JobAdLogotype, TradeMarkLogotype, WordTemplate, PortalDocument, ActivityDocument, CustomerDocument, OrderDocument, PersonDocument, CmsEmailBatchDocument and OrganisationDocument.",
            "nullable": true
          },
          "docAsText": {
            "type": "string",
            "description": "The text extracted from the document. Null unless the request asked for it with includeText, and null when the document has not been converted to text. Withheld (null) unless the token carries the scope omaha.documents.content.read.",
            "nullable": true
          },
          "docAsTextDate": {
            "type": "string",
            "description": "When the text was extracted from the document (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the document was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Employment": {
        "required": [
          "id",
          "note",
          "personId",
          "employmentNumber",
          "dateFrom",
          "dateTo",
          "periodDateFrom",
          "periodDateTo",
          "employmentPercentage",
          "employmentExtent",
          "bookable",
          "salaryType",
          "guaranteePercentage",
          "hourlySalary",
          "monthlySalary",
          "useStandardCost",
          "vacationCostFactor",
          "pensionCostFactor",
          "otherCostFactor",
          "unemploymentInsurance",
          "ongoingHolidayPay",
          "labourMarketRule",
          "labourMarketRuleId",
          "employmentType",
          "employmentTypeId",
          "employmentCategory",
          "employmentCategoryId",
          "terminationReason",
          "terminationReasonId",
          "staffingService",
          "staffingServiceId",
          "orgUnitId",
          "bossId",
          "salaryGroupId",
          "subContractorCompanyId",
          "scheduleId",
          "exportCategoryId",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the employment.",
            "format": "int32"
          },
          "note": {
            "type": "string",
            "description": "Free-text note.",
            "nullable": true
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Id of the person the employment belongs to.",
            "format": "int32"
          },
          "employmentNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Employment number of the person.",
            "format": "int32",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "description": "Date this employment period starts. One employment can be stored as several periods that follow each other; periodDateFrom is the start of the whole employment.",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "description": "End of this employment period, exclusive: the day after the last employed day (dateTo 1 April means the last day is 31 March). Null when the period has no end date. periodDateTo is the end of the whole employment.",
            "format": "date-time",
            "nullable": true
          },
          "periodDateFrom": {
            "type": "string",
            "description": "Start of the whole employment: the dateFrom of the first of the adjacent periods this period belongs to (each one starts where the previous one ends). Equal to dateFrom when the employment is a single period.",
            "format": "date-time",
            "nullable": true
          },
          "periodDateTo": {
            "type": "string",
            "description": "End of the whole employment: the dateTo of the last of the adjacent periods, with the same meaning as dateTo. Equal to dateTo when the employment is a single period; null when the last period has no end date (left out of MCP results, where a missing field means no value).",
            "format": "date-time",
            "nullable": true
          },
          "employmentPercentage": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Employment extent as a percentage of full time.",
            "format": "double",
            "nullable": true
          },
          "employmentExtent": {
            "type": "string",
            "description": "Employment extent.",
            "nullable": true
          },
          "bookable": {
            "type": "boolean",
            "description": "Whether the employment is bookable.",
            "nullable": true
          },
          "salaryType": {
            "type": "string",
            "description": "Salary type.",
            "nullable": true
          },
          "guaranteePercentage": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Guarantee salary percentage.",
            "format": "double",
            "nullable": true
          },
          "hourlySalary": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Hourly salary. Withheld (null) unless the token carries the scope omaha.personal.salary.read.",
            "format": "double",
            "nullable": true
          },
          "monthlySalary": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Monthly salary. Withheld (null) unless the token carries the scope omaha.personal.salary.read.",
            "format": "double",
            "nullable": true
          },
          "useStandardCost": {
            "type": "boolean",
            "description": "Whether standard cost is applied. Withheld (null) unless the token carries the scope omaha.personal.salary.read.",
            "nullable": true
          },
          "vacationCostFactor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Cost factor for vacation. Withheld (null) unless the token carries the scope omaha.personal.salary.read.",
            "format": "double",
            "nullable": true
          },
          "pensionCostFactor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Cost factor for pension. Withheld (null) unless the token carries the scope omaha.personal.salary.read.",
            "format": "double",
            "nullable": true
          },
          "otherCostFactor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Cost factor for other costs. Withheld (null) unless the token carries the scope omaha.personal.salary.read.",
            "format": "double",
            "nullable": true
          },
          "unemploymentInsurance": {
            "type": "boolean",
            "description": "Whether the employment includes unemployment insurance.",
            "nullable": true
          },
          "ongoingHolidayPay": {
            "type": "boolean",
            "description": "Whether holiday pay is paid out on an ongoing basis.",
            "nullable": true
          },
          "labourMarketRule": {
            "type": "string",
            "description": "Labour market rule.",
            "nullable": true
          },
          "labourMarketRuleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the labour market rule that applies to the employment.",
            "format": "int32",
            "nullable": true
          },
          "employmentType": {
            "type": "string",
            "description": "Employment type.",
            "nullable": true
          },
          "employmentTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the employment type.",
            "format": "int32",
            "nullable": true
          },
          "employmentCategory": {
            "type": "string",
            "description": "Employment category.",
            "nullable": true
          },
          "employmentCategoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the employment category.",
            "format": "int32",
            "nullable": true
          },
          "terminationReason": {
            "type": "string",
            "description": "Termination reason.",
            "nullable": true
          },
          "terminationReasonId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the termination reason.",
            "format": "int32",
            "nullable": true
          },
          "staffingService": {
            "type": "string",
            "description": "Staffing service.",
            "nullable": true
          },
          "staffingServiceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the staffing service.",
            "format": "int32",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit the employment belongs to.",
            "format": "int32",
            "nullable": true
          },
          "bossId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person's boss.",
            "format": "int32",
            "nullable": true
          },
          "salaryGroupId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the salary group.",
            "format": "int32",
            "nullable": true
          },
          "subContractorCompanyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the subcontractor company.",
            "format": "int32",
            "nullable": true
          },
          "scheduleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the schedule.",
            "format": "int32",
            "nullable": true
          },
          "exportCategoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the export category.",
            "format": "int32",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the employment was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the employment was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "EmploymentListItem": {
        "required": [
          "id",
          "personId",
          "employmentNumber",
          "dateFrom",
          "dateTo",
          "periodDateFrom",
          "periodDateTo",
          "employmentPercentage",
          "employmentType",
          "employmentTypeId",
          "labourMarketRule",
          "labourMarketRuleId",
          "orgUnitId",
          "bossId",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the employment.",
            "format": "int32"
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Id of the person the employment belongs to.",
            "format": "int32"
          },
          "employmentNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Employment number of the person.",
            "format": "int32",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "description": "Date this employment period starts. One employment can be stored as several periods that follow each other; periodDateFrom is the start of the whole employment.",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "description": "End of this employment period, exclusive: the day after the last employed day (dateTo 1 April means the last day is 31 March). Null when the period has no end date. periodDateTo is the end of the whole employment.",
            "format": "date-time",
            "nullable": true
          },
          "periodDateFrom": {
            "type": "string",
            "description": "Start of the whole employment: the dateFrom of the first of the adjacent periods this period belongs to (each one starts where the previous one ends). Equal to dateFrom when the employment is a single period.",
            "format": "date-time",
            "nullable": true
          },
          "periodDateTo": {
            "type": "string",
            "description": "End of the whole employment: the dateTo of the last of the adjacent periods, with the same meaning as dateTo. Equal to dateTo when the employment is a single period; null when the last period has no end date (left out of MCP results, where a missing field means no value).",
            "format": "date-time",
            "nullable": true
          },
          "employmentPercentage": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Employment extent as a percentage of full time.",
            "format": "double",
            "nullable": true
          },
          "employmentType": {
            "type": "string",
            "description": "Employment type.",
            "nullable": true
          },
          "employmentTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the employment type.",
            "format": "int32",
            "nullable": true
          },
          "labourMarketRule": {
            "type": "string",
            "description": "Labour market rule.",
            "nullable": true
          },
          "labourMarketRuleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the labour market rule.",
            "format": "int32",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit the employment belongs to.",
            "format": "int32",
            "nullable": true
          },
          "bossId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person's boss.",
            "format": "int32",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the employment was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the employment was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "LegalEntity": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the legal entity: the value the legalEntityId filter on other lists accepts.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Display name of the legal entity.",
            "nullable": true
          }
        }
      },
      "Office": {
        "required": [
          "id",
          "name",
          "fixedPhone",
          "preStreetAddress",
          "streetAddress",
          "postStreetAddress",
          "zipCode",
          "city",
          "countryCode"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the office.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Display name of the office.",
            "nullable": true
          },
          "fixedPhone": {
            "type": "string",
            "description": "Fixed phone number.",
            "nullable": true
          },
          "preStreetAddress": {
            "type": "string",
            "description": "Care-of (c/o) address line.",
            "nullable": true
          },
          "streetAddress": {
            "type": "string",
            "description": "Street address.",
            "nullable": true
          },
          "postStreetAddress": {
            "type": "string",
            "description": "Additional address line.",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "description": "Postal code.",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City.",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "ISO country code.",
            "nullable": true
          }
        }
      },
      "Order": {
        "required": [
          "id",
          "name",
          "orderType",
          "assignmentType",
          "active",
          "flagged",
          "description",
          "customerId",
          "workplaceId",
          "workplaceName",
          "orgUnitId",
          "staffingServiceId",
          "businessAreaId",
          "labourMarketRuleId",
          "salesPersonId",
          "salesPersonName",
          "deliveryManagerId",
          "deliveryManagerName",
          "buyerContactId",
          "deliveryContactId",
          "invoiceContactId",
          "numberToFill",
          "recruitmentEnabled",
          "staffingStatus",
          "customerReferenceCode",
          "externalId",
          "createdFromOrderId",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the order.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Name of the order, as Intelliplan shows it: the order's staffing service alias, or the staffing service's name when the order has no alias.",
            "nullable": true
          },
          "orderType": {
            "type": "string",
            "description": "Type of the order. Supported values: Template and Regular.",
            "nullable": true
          },
          "assignmentType": {
            "type": "string",
            "description": "Assignment type. The business area's system logic type (for example Staffing or Recruitment).",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the order is active (not archived).",
            "nullable": true
          },
          "flagged": {
            "type": "boolean",
            "description": "Whether the order is flagged as urgent.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Free-text description of the order.",
            "nullable": true
          },
          "customerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the customer (sales account) the order belongs to.",
            "format": "int32",
            "nullable": true
          },
          "workplaceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the workplace the order is delivered to.",
            "format": "int32",
            "nullable": true
          },
          "workplaceName": {
            "type": "string",
            "description": "Name of that workplace. Null when the user may not read the workplace.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit that owns the order.",
            "format": "int32",
            "nullable": true
          },
          "staffingServiceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the staffing service the order uses.",
            "format": "int32",
            "nullable": true
          },
          "businessAreaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the business area the order belongs to.",
            "format": "int32",
            "nullable": true
          },
          "labourMarketRuleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the labour market rule applied to the order.",
            "format": "int32",
            "nullable": true
          },
          "salesPersonId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the internal person who is sales person on the order.",
            "format": "int32",
            "nullable": true
          },
          "salesPersonName": {
            "type": "string",
            "description": "First name and surname of the sales person. Null when the user may not read the person.",
            "nullable": true
          },
          "deliveryManagerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the internal person who is delivery manager on the order.",
            "format": "int32",
            "nullable": true
          },
          "deliveryManagerName": {
            "type": "string",
            "description": "First name and surname of the delivery manager. Null when the user may not read the person.",
            "nullable": true
          },
          "buyerContactId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the buyer contact.",
            "format": "int32",
            "nullable": true
          },
          "deliveryContactId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the delivery contact.",
            "format": "int32",
            "nullable": true
          },
          "invoiceContactId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the invoice contact.",
            "format": "int32",
            "nullable": true
          },
          "numberToFill": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Number of positions to fill on the order.",
            "format": "int32",
            "nullable": true
          },
          "recruitmentEnabled": {
            "type": "boolean",
            "description": "Whether recruitment is enabled for the order.",
            "nullable": true
          },
          "staffingStatus": {
            "type": "string",
            "description": "Staffing status of the order. Supported values: None, Intended, Active and Archived.",
            "nullable": true
          },
          "customerReferenceCode": {
            "type": "string",
            "description": "The customer's own reference code for the order.",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "description": "External system identifier.",
            "nullable": true
          },
          "createdFromOrderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the order this order was created from.",
            "format": "int32",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the order was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the order was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "OrderListItem": {
        "required": [
          "id",
          "name",
          "orderType",
          "assignmentType",
          "active",
          "description",
          "customerId",
          "workplaceId",
          "workplaceName",
          "orgUnitId",
          "staffingServiceId",
          "businessAreaId",
          "salesPersonId",
          "salesPersonName",
          "deliveryManagerId",
          "deliveryManagerName",
          "numberToFill",
          "staffingStatus",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the order.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Name of the order, as Intelliplan shows it: the order's staffing service alias, or the staffing service's name when the order has no alias.",
            "nullable": true
          },
          "orderType": {
            "type": "string",
            "description": "Type of the order. Supported values: Template and Regular.",
            "nullable": true
          },
          "assignmentType": {
            "type": "string",
            "description": "Assignment type. The business area's system logic type (for example Staffing or Recruitment).",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the order is active (not archived).",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Free-text description of the order.",
            "nullable": true
          },
          "customerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the customer (sales account) the order belongs to.",
            "format": "int32",
            "nullable": true
          },
          "workplaceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the workplace the order is delivered to.",
            "format": "int32",
            "nullable": true
          },
          "workplaceName": {
            "type": "string",
            "description": "Name of that workplace. Null when the user may not read the workplace.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit that owns the order.",
            "format": "int32",
            "nullable": true
          },
          "staffingServiceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the staffing service the order uses.",
            "format": "int32",
            "nullable": true
          },
          "businessAreaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the business area the order belongs to.",
            "format": "int32",
            "nullable": true
          },
          "salesPersonId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the internal person who is sales person on the order.",
            "format": "int32",
            "nullable": true
          },
          "salesPersonName": {
            "type": "string",
            "description": "First name and surname of the sales person. Null when the user may not read the person.",
            "nullable": true
          },
          "deliveryManagerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the internal person who is delivery manager on the order.",
            "format": "int32",
            "nullable": true
          },
          "deliveryManagerName": {
            "type": "string",
            "description": "First name and surname of the delivery manager. Null when the user may not read the person.",
            "nullable": true
          },
          "numberToFill": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Number of positions to fill on the order.",
            "format": "int32",
            "nullable": true
          },
          "staffingStatus": {
            "type": "string",
            "description": "Staffing status of the order. Supported values: None, Intended, Active and Archived. Independent of the result's active field: an order that is not archived can have staffing status Archived, and the other way round.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the order was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the order was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Organisation": {
        "required": [
          "id",
          "name",
          "treeLevel",
          "parentOrganisationId",
          "parentOrganisationName",
          "legalEntityId",
          "legalEntityName",
          "officeId",
          "officeName",
          "teamId",
          "teamName",
          "brandId",
          "brandName",
          "responsiblePersonId",
          "responsiblePersonName",
          "profitCentre",
          "costCentre",
          "invoiceOurRef",
          "canContainSalesAccount",
          "canContainOrder",
          "canContainCustomer",
          "canContainOpportunity",
          "canContainEmployee",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Organisation id.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Organisation name.",
            "nullable": true
          },
          "treeLevel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Organisation tree level. Zero is root.",
            "format": "int32",
            "nullable": true
          },
          "parentOrganisationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Parent organisation id.",
            "format": "int32",
            "nullable": true
          },
          "parentOrganisationName": {
            "type": "string",
            "description": "Parent organisation name.",
            "nullable": true
          },
          "legalEntityId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Legal entity id.",
            "format": "int32",
            "nullable": true
          },
          "legalEntityName": {
            "type": "string",
            "description": "Legal entity name.",
            "nullable": true
          },
          "officeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Office id.",
            "format": "int32",
            "nullable": true
          },
          "officeName": {
            "type": "string",
            "description": "Office name.",
            "nullable": true
          },
          "teamId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Team id.",
            "format": "int32",
            "nullable": true
          },
          "teamName": {
            "type": "string",
            "description": "Team name.",
            "nullable": true
          },
          "brandId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Brand id.",
            "format": "int32",
            "nullable": true
          },
          "brandName": {
            "type": "string",
            "description": "Brand name.",
            "nullable": true
          },
          "responsiblePersonId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Responsible person id.",
            "format": "int32",
            "nullable": true
          },
          "responsiblePersonName": {
            "type": "string",
            "description": "Responsible person name.",
            "nullable": true
          },
          "profitCentre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Profit centre.",
            "format": "int32",
            "nullable": true
          },
          "costCentre": {
            "type": "string",
            "description": "Cost centre.",
            "nullable": true
          },
          "invoiceOurRef": {
            "type": "string",
            "description": "Invoice reference.",
            "nullable": true
          },
          "canContainSalesAccount": {
            "type": "boolean",
            "description": "Whether the organisation can contain sales accounts.",
            "nullable": true
          },
          "canContainOrder": {
            "type": "boolean",
            "description": "Whether the organisation can contain orders.",
            "nullable": true
          },
          "canContainCustomer": {
            "type": "boolean",
            "description": "Whether the organisation can contain customers.",
            "nullable": true
          },
          "canContainOpportunity": {
            "type": "boolean",
            "description": "Whether the organisation can contain opportunities.",
            "nullable": true
          },
          "canContainEmployee": {
            "type": "boolean",
            "description": "Whether the organisation can contain employees.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "Always null: Intelliplan keeps no creation date for an organisation unit.",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the organisation unit was last modified (local Swedish time, no UTC offset). Often null: most units have never been stamped, and those are never returned by updatedSince.",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "OrganisationListItem": {
        "required": [
          "id",
          "name",
          "treeLevel",
          "parentOrganisationId",
          "parentOrganisationName",
          "legalEntityId",
          "legalEntityName",
          "officeId",
          "officeName",
          "teamId",
          "teamName",
          "brandId",
          "brandName",
          "responsiblePersonId",
          "responsiblePersonName",
          "profitCentre",
          "costCentre",
          "invoiceOurRef",
          "canContainSalesAccount",
          "canContainOrder",
          "canContainCustomer",
          "canContainOpportunity",
          "canContainEmployee",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Organisation id.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Organisation name.",
            "nullable": true
          },
          "treeLevel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Organisation tree level. Zero is root.",
            "format": "int32",
            "nullable": true
          },
          "parentOrganisationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Parent organisation id.",
            "format": "int32",
            "nullable": true
          },
          "parentOrganisationName": {
            "type": "string",
            "description": "Parent organisation name.",
            "nullable": true
          },
          "legalEntityId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Legal entity id.",
            "format": "int32",
            "nullable": true
          },
          "legalEntityName": {
            "type": "string",
            "description": "Legal entity name.",
            "nullable": true
          },
          "officeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Office id.",
            "format": "int32",
            "nullable": true
          },
          "officeName": {
            "type": "string",
            "description": "Office name.",
            "nullable": true
          },
          "teamId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Team id.",
            "format": "int32",
            "nullable": true
          },
          "teamName": {
            "type": "string",
            "description": "Team name.",
            "nullable": true
          },
          "brandId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Brand id.",
            "format": "int32",
            "nullable": true
          },
          "brandName": {
            "type": "string",
            "description": "Brand name.",
            "nullable": true
          },
          "responsiblePersonId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Responsible person id.",
            "format": "int32",
            "nullable": true
          },
          "responsiblePersonName": {
            "type": "string",
            "description": "Responsible person name.",
            "nullable": true
          },
          "profitCentre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Profit centre.",
            "format": "int32",
            "nullable": true
          },
          "costCentre": {
            "type": "string",
            "description": "Cost centre.",
            "nullable": true
          },
          "invoiceOurRef": {
            "type": "string",
            "description": "Invoice reference.",
            "nullable": true
          },
          "canContainSalesAccount": {
            "type": "boolean",
            "description": "Whether the organisation can contain sales accounts.",
            "nullable": true
          },
          "canContainOrder": {
            "type": "boolean",
            "description": "Whether the organisation can contain orders.",
            "nullable": true
          },
          "canContainCustomer": {
            "type": "boolean",
            "description": "Whether the organisation can contain customers.",
            "nullable": true
          },
          "canContainOpportunity": {
            "type": "boolean",
            "description": "Whether the organisation can contain opportunities.",
            "nullable": true
          },
          "canContainEmployee": {
            "type": "boolean",
            "description": "Whether the organisation can contain employees.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "Always null: Intelliplan keeps no creation date for an organisation unit.",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the organisation unit was last modified (local Swedish time, no UTC offset). Often null: most units have never been stamped, and those are never returned by updatedSince.",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "PagedResultOfAbsenceCode": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbsenceCode"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfAbsenceListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbsenceListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfAvailability": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Availability"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfBrand": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Brand"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfContactListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfCustomerListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfDocumentListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfEmploymentListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmploymentListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfLegalEntity": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LegalEntity"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfOffice": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Office"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfOrderListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfOrganisationListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganisationListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfPersonListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PersonListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfPool": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Pool"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfPoolConsultant": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PoolConsultant"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfShiftListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShiftListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfTeam": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Team"
            },
            "description": "The items on this page."
          }
        }
      },
      "PagedResultOfWorkplaceListItem": {
        "required": [
          "pageSize",
          "nextPageToken",
          "totalCount",
          "items"
        ],
        "type": "object",
        "properties": {
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Maximum number of items per page, as requested.",
            "format": "int32"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page; null on the last page.",
            "nullable": true
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Total number of items matching the query, across all pages. Null when the total is not available: for shifts and absences on every page but the first.",
            "format": "int32",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkplaceListItem"
            },
            "description": "The items on this page."
          }
        }
      },
      "Person": {
        "required": [
          "id",
          "firstName",
          "lastName",
          "note",
          "active",
          "userGroupId",
          "orgUnitId",
          "responsiblePersonId",
          "internalUser",
          "consultant",
          "activeEmployment",
          "candidate",
          "email",
          "phone",
          "mobilePhone",
          "workPhone",
          "otherPhone",
          "linkedinUrl",
          "title",
          "nationalIdentityNumber",
          "birthDate",
          "gender",
          "department",
          "createdDate",
          "modifiedDate",
          "modifiedBy",
          "careOf",
          "streetAddress",
          "addressLine2",
          "postalCode",
          "city",
          "countryCode",
          "pictureUrl",
          "thumbnailUrl",
          "pendingDeletion"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the person.",
            "format": "int32"
          },
          "firstName": {
            "type": "string",
            "description": "First name.",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name.",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Free-text note.",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the person's login account is enabled, i.e. the person can sign in. Not whether the person is employed; see activeEmployment."
          },
          "userGroupId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the user group the person belongs to.",
            "format": "int32",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit the person belongs to.",
            "format": "int32",
            "nullable": true
          },
          "responsiblePersonId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person responsible for this person.",
            "format": "int32",
            "nullable": true
          },
          "internalUser": {
            "type": "boolean",
            "description": "Whether the person is an internal user of the system."
          },
          "consultant": {
            "type": "boolean",
            "description": "Whether the person is a consultant."
          },
          "activeEmployment": {
            "type": "boolean",
            "description": "True when the person has an employment that is current, starts in the future, or ended less than 3 months ago. Not the same as employed today: check the person's employments for the dates."
          },
          "candidate": {
            "type": "boolean",
            "description": "Whether the person is a candidate."
          },
          "email": {
            "type": "string",
            "description": "Primary email address.",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Home phone number.",
            "nullable": true
          },
          "mobilePhone": {
            "type": "string",
            "description": "Mobile phone number.",
            "nullable": true
          },
          "workPhone": {
            "type": "string",
            "description": "Work phone number.",
            "nullable": true
          },
          "otherPhone": {
            "type": "string",
            "description": "Alternative phone number.",
            "nullable": true
          },
          "linkedinUrl": {
            "type": "string",
            "description": "LinkedIn profile URL.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title.",
            "nullable": true
          },
          "nationalIdentityNumber": {
            "type": "string",
            "description": "National identity number. Withheld (null) unless the token carries the scope omaha.personal.identity.read.",
            "nullable": true
          },
          "birthDate": {
            "type": "string",
            "description": "Date of birth. Withheld (null) unless the token carries the scope omaha.personal.identity.read.",
            "format": "date-time",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "description": "Gender. Withheld (null) unless the token carries the scope omaha.personal.identity.read.",
            "nullable": true
          },
          "department": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the department the person belongs to.",
            "format": "int32",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the person was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the person was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedBy": {
            "type": "string",
            "description": "Who last modified the person.",
            "nullable": true
          },
          "careOf": {
            "type": "string",
            "description": "Care-of (c/o) address line. Withheld (null) unless the token carries the scope omaha.personal.identity.read.",
            "nullable": true
          },
          "streetAddress": {
            "type": "string",
            "description": "Street address. Withheld (null) unless the token carries the scope omaha.personal.identity.read.",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "description": "Additional address line. Withheld (null) unless the token carries the scope omaha.personal.identity.read.",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "description": "Postal code. Withheld (null) unless the token carries the scope omaha.personal.identity.read.",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City.",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "ISO country code.",
            "nullable": true
          },
          "pictureUrl": {
            "type": "string",
            "description": "URL of the person's profile picture.",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "description": "URL of the person's profile picture thumbnail.",
            "nullable": true
          },
          "pendingDeletion": {
            "type": "boolean",
            "description": "Whether the person is queued for deletion."
          }
        }
      },
      "PersonListItem": {
        "required": [
          "id",
          "firstName",
          "lastName",
          "title",
          "email",
          "mobilePhone",
          "active",
          "internalUser",
          "consultant",
          "activeEmployment",
          "candidate",
          "managerId",
          "orgUnitId",
          "userGroupId",
          "modifiedDate",
          "pendingDeletion"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the person.",
            "format": "int32"
          },
          "firstName": {
            "type": "string",
            "description": "First name.",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title.",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Primary email address.",
            "nullable": true
          },
          "mobilePhone": {
            "type": "string",
            "description": "Mobile phone number.",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the person's login account is enabled, i.e. the person can sign in. Not whether the person is employed; see activeEmployment."
          },
          "internalUser": {
            "type": "boolean",
            "description": "Whether the person is an internal user of the system."
          },
          "consultant": {
            "type": "boolean",
            "description": "Whether the person is a consultant."
          },
          "activeEmployment": {
            "type": "boolean",
            "description": "True when the person has an employment that is current, starts in the future, or ended less than 3 months ago. Not the same as employed today: check the person's employments for the dates."
          },
          "candidate": {
            "type": "boolean",
            "description": "Whether the person is a candidate."
          },
          "managerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person's manager.",
            "format": "int32",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit the person belongs to.",
            "format": "int32",
            "nullable": true
          },
          "userGroupId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the user group the person belongs to.",
            "format": "int32",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the person was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "pendingDeletion": {
            "type": "boolean",
            "description": "Whether the person is queued for deletion."
          }
        }
      },
      "Pool": {
        "required": [
          "id",
          "name",
          "workplaceId",
          "consultantCount",
          "restrictionCount",
          "activeOrderCount"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the pool.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Name of the pool.",
            "nullable": true
          },
          "workplaceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the workplace the pool belongs to.",
            "format": "int32",
            "nullable": true
          },
          "consultantCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Number of consultants in the pool who are not blocked from it.",
            "format": "int32"
          },
          "restrictionCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Number of consultants blocked from the pool.",
            "format": "int32"
          },
          "activeOrderCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Number of open orders connected to the pool: regular orders that are not archived.",
            "format": "int32"
          }
        }
      },
      "PoolConsultant": {
        "required": [
          "id",
          "poolId",
          "personId",
          "restricted",
          "canExpressInterest",
          "comment"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the pool membership.",
            "format": "int32"
          },
          "poolId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the pool the consultant is a member of.",
            "format": "int32",
            "nullable": true
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the consultant, the same id as in the persons endpoints.",
            "format": "int32",
            "nullable": true
          },
          "restricted": {
            "type": "boolean",
            "description": "Whether the consultant is blocked from the pool."
          },
          "canExpressInterest": {
            "type": "boolean",
            "description": "Whether the consultant can express interest in the pool's open shifts, when the order allows it."
          },
          "comment": {
            "type": "string",
            "description": "Free-text comment on the membership.",
            "nullable": true
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "description": "RFC 9457 problem-details error body. Omaha's error responses carry two extensions: `errorCode`, a stable machine-readable code from the catalogue below, and `traceId` for support correlation. The `errorCode` values are part of the public contract and safe to key on; `title` and `detail` are human-readable and may change without notice. Two responses carry no `errorCode`: `401`/`403` authentication failures, which have no body (a `401` with a body is `session_ended`, a `403` with a body is `access_denied` or `insufficient_scope`), and `400` model-binding failures (a value that cannot be converted to its type, or a body that is not valid JSON), which return the default validation problem body with `errors`.\n\n| errorCode | HTTP status | Meaning |\n| --- | --- | --- |\n| `validation_failed` | 400 | The request failed Omaha's validation rules. |\n| `api_key_required` | 400 | The request is missing the X-Api-Key header required on business endpoints. |\n| `malformed_request` | 400 | The HTTP request could not be parsed or processed. |\n| `session_ended` | 401 | The signed-in user's session has ended; sign in again. |\n| `access_denied` | 403 | The signed-in user is not allowed to read or change this. |\n| `insufficient_scope` | 403 | The access token lacks a scope the endpoint requires; requiredScope names it. |\n| `resource_not_found` | 404 | The requested resource does not exist. |\n| `request_too_large` | 413 | The request body exceeds the maximum allowed size. |\n| `rate_limit_exceeded` | 429 | The client exceeded its request rate limit; retry after the number of seconds in the Retry-After header. |\n| `internal_error` | 500 | An unexpected error occurred inside Omaha. |\n| `dependency_failure` | 502 | A downstream service returned an unexpected response. |\n| `dependency_unavailable` | 503 | A downstream service is temporarily unavailable. |\n| `dependency_timeout` | 504 | A downstream service did not respond in time. |\n"
      },
      "Shift": {
        "required": [
          "id",
          "orderId",
          "personId",
          "personName",
          "customerId",
          "customerName",
          "orgUnitId",
          "dateFrom",
          "dateTo",
          "originalDateFrom",
          "originalDateTo",
          "breakMinutes",
          "cancellationStatus",
          "consultantConfirmed",
          "bossConfirmed",
          "allowDoubleBooking",
          "invoiced",
          "salaryCalculated",
          "punchInDateFrom",
          "punchOutDateTo",
          "note",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the shift.",
            "format": "int32"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the order (assignment) the shift belongs to.",
            "format": "int32",
            "nullable": true
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person staffed on the shift. Null for a vacancy.",
            "format": "int32",
            "nullable": true
          },
          "personName": {
            "type": "string",
            "description": "First name and surname of that person. Null for a vacancy, and when the user may not read the person.",
            "nullable": true
          },
          "customerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the customer (sales account) of the shift's order: the value the customerId filter matches.",
            "format": "int32",
            "nullable": true
          },
          "customerName": {
            "type": "string",
            "description": "Name of that customer. Null when the user may not read the customer.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Organisation unit of the shift's order: the unit the brandId, legalEntityId, officeId and teamId filters match. Its brand, legal entity, office and team are on GET /v1/organisations/{id}.",
            "format": "int32",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "description": "Start of the shift.",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "description": "End of the shift.",
            "format": "date-time",
            "nullable": true
          },
          "originalDateFrom": {
            "type": "string",
            "description": "Originally booked start of the shift.",
            "format": "date-time",
            "nullable": true
          },
          "originalDateTo": {
            "type": "string",
            "description": "Originally booked end of the shift.",
            "format": "date-time",
            "nullable": true
          },
          "breakMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Unpaid break in minutes.",
            "format": "int32",
            "nullable": true
          },
          "cancellationStatus": {
            "type": "string",
            "description": "Cancellation state. Supported values: None, Partial and Total.",
            "nullable": true
          },
          "consultantConfirmed": {
            "type": "boolean",
            "description": "Whether the consultant has confirmed the shift.",
            "nullable": true
          },
          "bossConfirmed": {
            "type": "boolean",
            "description": "Whether the boss has confirmed the shift.",
            "nullable": true
          },
          "allowDoubleBooking": {
            "type": "boolean",
            "description": "Whether double booking is allowed. Not populated yet; always null.",
            "nullable": true
          },
          "invoiced": {
            "type": "boolean",
            "description": "Whether the shift has been invoiced.",
            "nullable": true
          },
          "salaryCalculated": {
            "type": "boolean",
            "description": "Whether the shift has been included in a salary calculation.",
            "nullable": true
          },
          "punchInDateFrom": {
            "type": "string",
            "description": "Punch-in time reported by the consultant.",
            "format": "date-time",
            "nullable": true
          },
          "punchOutDateTo": {
            "type": "string",
            "description": "Punch-out time reported by the consultant.",
            "format": "date-time",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Internal note on the shift.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the shift was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the shift was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ShiftArticle": {
        "required": [
          "id",
          "articleId",
          "articleName",
          "articleType",
          "quantity",
          "quantityAdjustedSalary",
          "quantityAdjustedDebiting",
          "salaryAmount",
          "debitingAmount",
          "note",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the financial row.",
            "format": "int32"
          },
          "articleId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the article.",
            "format": "int32",
            "nullable": true
          },
          "articleName": {
            "type": "string",
            "description": "Code of the article: its article number, or for a collective-agreement article its time-type code. Not a descriptive name.",
            "nullable": true
          },
          "articleType": {
            "type": "string",
            "description": "Type of the article: Time, Absence, Fee, Salary or Material.",
            "nullable": true
          },
          "quantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Reported quantity.",
            "format": "double",
            "nullable": true
          },
          "quantityAdjustedSalary": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Quantity adjustment on the salary (cost) side.",
            "format": "double",
            "nullable": true
          },
          "quantityAdjustedDebiting": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Quantity adjustment on the debiting (income) side.",
            "format": "double",
            "nullable": true
          },
          "salaryAmount": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Salary amount per quantity, the cost side. Requires cost authorisation in Intelliplan. Withheld (null) unless the token carries the scope omaha.personal.salary.read.",
            "format": "double",
            "nullable": true
          },
          "debitingAmount": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Debiting amount per quantity, the income side. Requires income authorisation in Intelliplan. Withheld (null) unless the token carries the scope omaha.assignments.invoice.read.",
            "format": "double",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Internal note on the row.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the row was created (local Swedish time, no UTC offset). Always null: Shuffler does not return a creation timestamp for a financial row.",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the row was last modified (local Swedish time, no UTC offset). Always null: Shuffler does not return a modification timestamp for a financial row.",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ShiftListItem": {
        "required": [
          "id",
          "orderId",
          "personId",
          "personName",
          "customerId",
          "customerName",
          "orgUnitId",
          "dateFrom",
          "dateTo",
          "breakMinutes",
          "cancellationStatus",
          "consultantConfirmed",
          "bossConfirmed",
          "invoiced",
          "salaryCalculated",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the shift.",
            "format": "int32"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the order (assignment) the shift belongs to.",
            "format": "int32",
            "nullable": true
          },
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the person staffed on the shift. Null for a vacancy.",
            "format": "int32",
            "nullable": true
          },
          "personName": {
            "type": "string",
            "description": "First name and surname of that person. Null for a vacancy, and when the user may not read the person.",
            "nullable": true
          },
          "customerId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the customer (sales account) of the shift's order: the value the customerId filter matches.",
            "format": "int32",
            "nullable": true
          },
          "customerName": {
            "type": "string",
            "description": "Name of that customer. Null when the user may not read the customer.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Organisation unit of the shift's order: the unit the brandId, legalEntityId, officeId and teamId filters match. Its brand, legal entity, office and team are on GET /v1/organisations/{id}.",
            "format": "int32",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "description": "Start of the shift.",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "description": "End of the shift.",
            "format": "date-time",
            "nullable": true
          },
          "breakMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Unpaid break in minutes.",
            "format": "int32",
            "nullable": true
          },
          "cancellationStatus": {
            "type": "string",
            "description": "Cancellation state. Supported values: None, Partial and Total.",
            "nullable": true
          },
          "consultantConfirmed": {
            "type": "boolean",
            "description": "Whether the consultant has confirmed the shift.",
            "nullable": true
          },
          "bossConfirmed": {
            "type": "boolean",
            "description": "Whether the boss has confirmed the shift.",
            "nullable": true
          },
          "invoiced": {
            "type": "boolean",
            "description": "Whether the shift has been invoiced.",
            "nullable": true
          },
          "salaryCalculated": {
            "type": "boolean",
            "description": "Whether the shift has been included in a salary calculation.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the shift was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the shift was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Team": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the team: the value the teamId filter on other lists accepts.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Display name of the team.",
            "nullable": true
          }
        }
      },
      "UpdateAbsenceCodeRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name of the absence code.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Free-text description.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "Category of the absence code.",
            "nullable": true
          },
          "ruleType": {
            "type": "string",
            "description": "Rule type of the absence code.",
            "nullable": true
          },
          "refWeeksQty": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Reference period in weeks.",
            "format": "int32",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean",
            "description": "Whether the absence code is archived.",
            "nullable": true
          },
          "allowConsultantTimeReport": {
            "type": "boolean",
            "description": "Whether consultants may report time on the absence code.",
            "nullable": true
          },
          "dayToArticle1": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Last absence day covered by the first article (999 means no end).",
            "format": "int32",
            "nullable": true
          },
          "dayToArticle2": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Last absence day covered by the second article (999 means no end).",
            "format": "int32",
            "nullable": true
          },
          "exportCode": {
            "type": "string",
            "description": "Code used when exporting to external systems.",
            "nullable": true
          },
          "allowForMonthlySalary": {
            "type": "boolean",
            "description": "Whether the absence code can be used with monthly salary.",
            "nullable": true
          },
          "allowForGuaranteeSalary": {
            "type": "boolean",
            "description": "Whether the absence code can be used with guarantee salary.",
            "nullable": true
          },
          "allowForHourlySalary": {
            "type": "boolean",
            "description": "Whether the absence code can be used with hourly salary.",
            "nullable": true
          },
          "allowForSubContractor": {
            "type": "boolean",
            "description": "Whether the absence code can be used for subcontractors.",
            "nullable": true
          }
        }
      },
      "Workplace": {
        "required": [
          "id",
          "name",
          "orgNumber",
          "active",
          "headquarter",
          "supplier",
          "orgUnitId",
          "customerGroupId",
          "legalCompanyId",
          "parentId",
          "phone",
          "note",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the workplace.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Display name of the workplace.",
            "nullable": true
          },
          "orgNumber": {
            "type": "string",
            "description": "Organisation number (company registration number).",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the workplace is active.",
            "nullable": true
          },
          "headquarter": {
            "type": "boolean",
            "description": "Whether this workplace is the organisation's headquarter.",
            "nullable": true
          },
          "supplier": {
            "type": "boolean",
            "description": "Whether the workplace acts as a supplier.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit the workplace belongs to.",
            "format": "int32",
            "nullable": true
          },
          "customerGroupId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the customer group the workplace belongs to.",
            "format": "int32",
            "nullable": true
          },
          "legalCompanyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the legal company the workplace is registered under.",
            "format": "int32",
            "nullable": true
          },
          "parentId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the parent workplace, when part of a hierarchy.",
            "format": "int32",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Main phone number.",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Free-text note.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the workplace was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the workplace was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "WorkplaceListItem": {
        "required": [
          "id",
          "name",
          "orgNumber",
          "active",
          "headquarter",
          "supplier",
          "orgUnitId",
          "legalCompanyId",
          "parentId",
          "phone",
          "createdDate",
          "modifiedDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "Unique Intelliplan id of the workplace.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Display name of the workplace.",
            "nullable": true
          },
          "orgNumber": {
            "type": "string",
            "description": "Organisation number (company registration number).",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the workplace is active.",
            "nullable": true
          },
          "headquarter": {
            "type": "boolean",
            "description": "Whether this workplace is the organisation's headquarter.",
            "nullable": true
          },
          "supplier": {
            "type": "boolean",
            "description": "Whether the workplace acts as a supplier.",
            "nullable": true
          },
          "orgUnitId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the organisational unit the workplace belongs to.",
            "format": "int32",
            "nullable": true
          },
          "legalCompanyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the legal company the workplace is registered under.",
            "format": "int32",
            "nullable": true
          },
          "parentId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "enum": [
                  null
                ],
                "nullable": true
              }
            ],
            "description": "Id of the parent workplace, when part of a hierarchy.",
            "format": "int32",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Main phone number.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "description": "When the workplace was created (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "description": "When the workplace was last modified (local Swedish time, no UTC offset).",
            "format": "date-time",
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://900497.idp.intelliplan.eu/connect/authorize",
            "tokenUrl": "https://900497.idp.intelliplan.eu/connect/token",
            "scopes": {
              "omaha": "Access Omaha API",
              "omaha.personal.read": "Read persons, employments, absences and absence codes.",
              "omaha.personal.write": "Change absence codes.",
              "omaha.personal.identity.read": "Include national identity number, date of birth, gender and home address.",
              "omaha.personal.salary.read": "Include salary and cost amounts.",
              "omaha.customers.read": "Read customers, contacts and workplaces.",
              "omaha.assignments.read": "Read orders, shifts and shift articles.",
              "omaha.assignments.invoice.read": "Include invoice and income amounts.",
              "omaha.organisation.read": "Read organisations, offices, teams, brands and legal entities.",
              "omaha.documents.read": "Read document details.",
              "omaha.documents.content.read": "Include document text and download document files.",
              "omaha.pools.read": "Read consultant pools, pool consultants and availability."
            }
          }
        }
      },
      "ApiKey": {
        "type": "apiKey",
        "description": "Required for Omaha business API calls.",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Workplace"
    },
    {
      "name": "Team"
    },
    {
      "name": "Shift"
    },
    {
      "name": "Pool"
    },
    {
      "name": "PoolConsultant"
    },
    {
      "name": "Person"
    },
    {
      "name": "Organisation"
    },
    {
      "name": "Order"
    },
    {
      "name": "Office"
    },
    {
      "name": "LegalEntity"
    },
    {
      "name": "Employment"
    },
    {
      "name": "Document"
    },
    {
      "name": "Customer"
    },
    {
      "name": "Contact"
    },
    {
      "name": "Brand"
    },
    {
      "name": "Availability"
    },
    {
      "name": "Absence"
    },
    {
      "name": "AbsenceCode"
    }
  ]
}