{
  "openapi": "3.0.1",
  "info": {
    "title": "Popdock API V2",
    "description": "RESTful API for the Popdock business intelligence and data management platform.",
    "termsOfService": "https://www.popdock.com/terms",
    "contact": {
      "name": "eOne Solutions",
      "url": "https://www.popdock.com"
    },
    "license": {
      "name": "Proprietary"
    },
    "version": "2"
  },
  "paths": {
    "/api/v2/account": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get a list of accounts (v2, bare array)",
        "description": "Kept for the Excel add-in, which labels the signed-in account with the first item. The directory behind the v3\r\nlisting needs a forwarded Login token that a legacy GUID-token session does not have, so this answer always\r\nstarts with the session's own account and only adds the directory's list when it is reachable. A directory\r\nfailure is deliberately not reported: it is the expected outcome for those sessions, not a fault.",
        "responses": {
          "200": {
            "description": "The session's account first, followed by any other accounts the directory lists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccountResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/exchange-token": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Exchanges Basic authentication credentials for an API token for the current account and application.",
        "description": "Reuses an existing token for the same user and application when one exists; otherwise issues a new one. When multi-factor authentication is required, the response flags this instead of returning a token.",
        "responses": {
          "200": {
            "description": "A token for the authenticated user, or a flag indicating that MFA is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExchangeTokenResponse"
                }
              }
            }
          },
          "500": {
            "description": "An error occurred while issuing the token."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/connector": {
      "get": {
        "tags": [
          "Connectors"
        ],
        "summary": "Get a list of connectors (v2, bare array)",
        "description": "Kept for the Excel add-in: the v3 list without the paging envelope, and without paging.",
        "responses": {
          "200": {
            "description": "Every connector available to the authenticated user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConnectorResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/connector/{id}/entity": {
      "get": {
        "tags": [
          "Connectors"
        ],
        "summary": "Get a list of lists for a connector (v2, bare array)",
        "description": "Kept for the Excel add-in: the v3 list without the paging envelope, and without paging.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every entity of the connector.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EntityResponseModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The id is missing or invalid."
          },
          "404": {
            "description": "No connector exists with that id, or it belongs to another account."
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/connector/{id}/entity-group": {
      "get": {
        "tags": [
          "Connectors"
        ],
        "summary": "Get a list of groups for a connector (v2, bare array)",
        "description": "Kept for the Excel add-in: the v3 list without the paging envelope, and without paging.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every entity group of the connector.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EntityGroupResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The id is missing or invalid."
          },
          "404": {
            "description": "No connector exists with that id, or it belongs to another account."
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/connector/{id}/company": {
      "get": {
        "tags": [
          "Connectors"
        ],
        "summary": "Get a list of companies for a connector (v2, bare array)",
        "description": "Kept for the Excel add-in: the v3 list without the paging envelope, and without paging.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every company of the connector.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The id is missing or invalid."
          },
          "404": {
            "description": "No connector exists with that id, or it belongs to another account."
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/entity/{id}/field": {
      "get": {
        "tags": [
          "Entities"
        ],
        "summary": "Get a list of fields for an entity (v2, bare array)",
        "description": "Kept for the Excel add-in: the v3 list without the paging envelope, without paging or filters.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The entity's unique identifier (GUID).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every field of the entity.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EntityFieldResponse"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No entity exists with that id, or the caller cannot access it."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/entity/{id}/default-field": {
      "get": {
        "tags": [
          "Entities"
        ],
        "summary": "Get a list of default fields for an entity, as a bare array",
        "description": "The legacy v2 shape the Excel add-in reads: an unpaged array rather than the v3 list envelope.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The entity's unique identifier (GUID).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The entity's default fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EntityFieldResponse"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No entity exists with that id, or the caller cannot access it."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/entity/{id}/favorite": {
      "get": {
        "tags": [
          "Entities"
        ],
        "summary": "Get a list of favorites for an entity (v2, bare array)",
        "description": "Kept for the Excel add-in: the v3 list without the paging envelope, each favorite carrying its entity as production v2 does.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The entity's unique identifier (GUID).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every favorite of the entity visible to the caller.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FavoriteResponse"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No entity exists with that id, or the caller cannot access it."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/entity/{id}/data": {
      "get": {
        "tags": [
          "Entities"
        ],
        "summary": "Runs a query against an entity and returns its data.",
        "description": "Queries the entity's default fields, honoring `company`/`company-id`, `max-records`, `format` and any entity variables supplied as query-string parameters. Requires the connector's query-data permission.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The entity's unique identifier (GUID).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The query results in the requested format."
          },
          "204": {
            "description": "The query succeeded but returned no content."
          },
          "400": {
            "description": "The query could not be executed."
          },
          "401": {
            "description": "The caller is not authorized to query this entity or connector."
          },
          "402": {
            "description": "The account has spent its plan's monthly task allowance."
          },
          "404": {
            "description": "No entity exists with that id."
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/favorite/{id}": {
      "get": {
        "tags": [
          "Favorites"
        ],
        "summary": "Gets a single favorite (v2)",
        "description": "Kept for the Excel add-in: the v3 favorite with its Entity populated, which the add-in reads to know which list to query. Published endpoint URLs resolve to their data as on v3: Power BI, SmartConnect and other integrations call them on v2.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The favorite's unique identifier (GUID), or a published endpoint URL slug.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The requested favorite.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FavoriteResponse"
                }
              }
            }
          },
          "400": {
            "description": "The favorite id is missing or invalid."
          },
          "401": {
            "description": "The caller is not authorized to view this favorite."
          },
          "402": {
            "description": "The account has spent its plan's monthly task allowance."
          },
          "404": {
            "description": "No favorite exists with that id."
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/favorite/{id}/column": {
      "get": {
        "tags": [
          "Favorites"
        ],
        "summary": "Get a list of columns for a favorite, as a bare array",
        "description": "The legacy v2 shape: an unpaged array rather than the v3 list envelope.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The favorite's unique identifier (GUID).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The favorite's columns.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FavoriteColumnResponse"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No favorite exists with that id, or the caller cannot access its entity."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/favorite/{id}/data": {
      "get": {
        "tags": [
          "Favorites"
        ],
        "summary": "Runs a favorite's query and returns its data.",
        "description": "Honors `company`/`company-id`, `max-records`, `format` and the favorite's variables as query-string parameters. Requires the connector's query-data permission.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The favorite's unique identifier (GUID).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The query results in the requested format."
          },
          "204": {
            "description": "The query succeeded but returned no content."
          },
          "400": {
            "description": "The query could not be executed."
          },
          "401": {
            "description": "The caller is not authorized to query this connector."
          },
          "402": {
            "description": "The account has spent its plan's monthly task allowance."
          },
          "404": {
            "description": "No favorite exists with that id, or the caller cannot access its entity."
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/entity-group/{id}/entity": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Get a list of entities for an entity group (v2, bare array)",
        "description": "Kept for the Excel add-in: the v3 list without the paging envelope, and without paging.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every entity in the group.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EntityResponseModel"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No entity group exists with that id, or it belongs to another account."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/odata": {
      "get": {
        "tags": [
          "Query"
        ],
        "summary": "Returns the OData service document listing the account's endpoints as entity sets.",
        "responses": {
          "200": {
            "description": "The OData v4 service document."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/odata/$metadata": {
      "get": {
        "tags": [
          "Query"
        ],
        "summary": "Returns the OData $metadata document describing each endpoint's entity type and fields.",
        "responses": {
          "200": {
            "description": "The OData v4 EDMX metadata document."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/odata/{id}": {
      "get": {
        "tags": [
          "Query"
        ],
        "summary": "Runs an endpoint as an OData entity set and returns its data, honoring OData query options.",
        "description": "Supports `$filter`, `$select`, `$top` and `$orderby`, plus entity variables passed as query-string parameters.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The endpoint URL slug (entity set name).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint's data in OData JSON format."
          },
          "400": {
            "description": "No endpoint exists with that URL slug."
          },
          "402": {
            "description": "The account has spent its plan's monthly task allowance."
          },
          "403": {
            "description": "The caller does not have access to the endpoint."
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/query": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Run a query (v2)",
        "description": "Kept for the Excel add-in: takes the pre-v3 body ({Id, Query:{Companies, Fields, Restrictions, OrderBy, MaxRecords}}) and, unless Format says otherwise, answers in the Popdock row format ({Rows:[{Fields:[{EntityFieldId,Value}]}]}) the add-in parses. Same access and plan checks as v3.",
        "requestBody": {
          "description": "The query to run. Id (the entity) and Query.Fields are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunQueryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunQueryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunQueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The query results."
          },
          "400": {
            "description": "The request body is missing or has no Query."
          },
          "401": {
            "description": "The caller is not authorized to query this entity or connector."
          },
          "402": {
            "description": "The account has spent its plan's monthly task allowance."
          },
          "404": {
            "description": "No entity exists with that id."
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/me": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets the current user's profile, display preferences and active account.",
        "description": "Returns user details (or the name, for API users) along with display preferences such as paging, theme, locale and time zone, plus the currently selected account.",
        "responses": {
          "200": {
            "description": "The authenticated user's profile and preferences.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/eOne.Microservice.Shared.Response.ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountResponse": {
        "type": "object",
        "properties": {
          "AccountId": {
            "type": "string",
            "description": "The account's unique identifier.",
            "format": "uuid",
            "example": "9b1c3f4a-2d6e-4a8b-9c0d-1e2f3a4b5c6d"
          },
          "Name": {
            "type": "string",
            "description": "The account's display name.",
            "nullable": true,
            "example": "Contoso Ltd"
          },
          "Currency": {
            "type": "string",
            "description": "The account's currency code.",
            "nullable": true,
            "example": "USD"
          }
        },
        "additionalProperties": false
      },
      "CalculatedFieldLanguage": {
        "enum": [
          "Popdock",
          "Sql",
          "CSharp"
        ],
        "type": "string",
        "description": "Language a calculated field's `Script` is written in.\n\n- `Popdock` — Popdock expression language\n- `Sql` — SQL (dialect resolved from the connector)\n- `CSharp` — C#\n\nLegacy integer values are also accepted.",
        "x-enumDescriptions": {
          "Popdock": "Popdock expression language",
          "Sql": "SQL (dialect resolved from the connector)",
          "CSharp": "C#"
        }
      },
      "ChartSettingsModel": {
        "type": "object",
        "properties": {
          "Type": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ValueFieldId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "CategoryFieldId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "SummaryMethod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "MaxCategories": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ShowOthersCategory": {
            "type": "boolean",
            "nullable": true
          },
          "ShowCategoryLabels": {
            "type": "boolean",
            "nullable": true
          },
          "ShowValueLabels": {
            "type": "boolean",
            "nullable": true
          },
          "ShowLegend": {
            "type": "boolean",
            "nullable": true
          },
          "SortBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ColorPaletteId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ColorPalette": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompanyResponse": {
        "type": "object",
        "properties": {
          "CompanyId": {
            "type": "string",
            "description": "The company's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Name": {
            "type": "string",
            "description": "The company's display name.",
            "nullable": true,
            "example": "Contoso Ltd"
          },
          "DatabaseName": {
            "type": "string",
            "description": "Name of the underlying database the company's data is read from.",
            "nullable": true,
            "example": "CONTOSO_PROD"
          },
          "Currency": {
            "type": "string",
            "description": "The company's currency code, used to interpret its monetary values.",
            "nullable": true,
            "example": "USD"
          },
          "Hidden": {
            "type": "boolean",
            "description": "Whether the company is hidden from selection.",
            "nullable": true,
            "example": false
          },
          "Website": {
            "type": "string",
            "description": "The company's website address.",
            "nullable": true,
            "example": "https://www.contoso.com"
          },
          "Locale": {
            "type": "string",
            "description": "The company's locale or culture code.",
            "nullable": true,
            "example": "en-US"
          },
          "Default": {
            "type": "boolean",
            "description": "Whether this company is the default selection in its context: for a top-level company, whether it is the connector's default company; for a child company, whether it is its parent's default child company.",
            "nullable": true,
            "example": true
          },
          "Connector": {
            "$ref": "#/components/schemas/SimpleConnectorResponse"
          },
          "Children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyResponse"
            },
            "description": "Child companies nested under this company.",
            "nullable": true
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources and actions for this company.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConnectorCompany": {
        "type": "object",
        "properties": {
          "CompanyId": {
            "type": "string",
            "description": "Identifier of the company to query.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A company to scope a query to when it is run."
      },
      "ConnectorField": {
        "type": "object",
        "properties": {
          "EntityFieldId": {
            "type": "string",
            "description": "Identifier of the entity field being referenced.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A reference to an entity field used within a query (as a column, sort, restriction field or value)."
      },
      "ConnectorQuery": {
        "type": "object",
        "properties": {
          "Companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorCompany"
            },
            "description": "Companies to scope the query to. When omitted, all accessible companies are queried.",
            "nullable": true
          },
          "Fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorField"
            },
            "description": "The fields to return as columns. When omitted, the entity's default columns are used.",
            "nullable": true
          },
          "Variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorVariable"
            },
            "description": "Values supplied for the entity's query variables.",
            "nullable": true
          },
          "Restrictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorRestriction"
            },
            "description": "Filter conditions (the WHERE clause) applied to the query.",
            "nullable": true
          },
          "OrderBy": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorQuerySort"
            },
            "description": "Sort order (the ORDER BY clause) applied to the results.",
            "nullable": true
          },
          "MaxRecords": {
            "type": "integer",
            "description": "Maximum number of rows to return.",
            "format": "int64",
            "nullable": true
          },
          "UserId": {
            "type": "string",
            "description": "The user the query is run as.",
            "format": "uuid"
          },
          "AccountId": {
            "type": "string",
            "description": "The account the query is run within.",
            "format": "uuid"
          },
          "Context": {
            "type": "string",
            "description": "An optional context identifier passed through to the connector when the query is run.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The definition of a query to run against an entity: the columns, companies, filters, variables and sort to apply."
      },
      "ConnectorQuerySort": {
        "type": "object",
        "properties": {
          "Field": {
            "$ref": "#/components/schemas/ConnectorField"
          },
          "Direction": {
            "$ref": "#/components/schemas/eOne.Microservice.Shared.Enums.SortDirection"
          }
        },
        "additionalProperties": false,
        "description": "A single sort instruction (one clause of the ORDER BY) applied when running a query."
      },
      "ConnectorResponse": {
        "type": "object",
        "properties": {
          "ConnectorId": {
            "type": "string",
            "description": "The connector's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "ConnectorType": {
            "type": "integer",
            "description": "Integer code identifying the connector's data source type — the kind of system it connects to.",
            "format": "int32",
            "example": 1
          },
          "ConnectorSetupId": {
            "type": "string",
            "description": "Identifier of the connector setup (the template that defines this connector's type and the data it exposes).",
            "format": "uuid",
            "example": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
          },
          "Name": {
            "type": "string",
            "description": "The connector's display name.",
            "nullable": true,
            "example": "Salesforce Production"
          },
          "DefaultCompanyId": {
            "type": "string",
            "description": "Identifier of the company used by default when querying this connector, if one is set.",
            "format": "uuid",
            "nullable": true,
            "example": "a1b2c3d4-1111-2222-3333-444455556666"
          },
          "CompanyPrompt": {
            "type": "string",
            "description": "Singular label this connector uses for a \"company\" (some sources call it a database, organization, and so on).",
            "nullable": true,
            "example": "Company"
          },
          "CompanyPluralPrompt": {
            "type": "string",
            "description": "Plural form of the company label.",
            "nullable": true,
            "example": "Companies"
          },
          "CreatedDate": {
            "type": "string",
            "description": "Date the connector was created.",
            "format": "date-time",
            "nullable": true,
            "example": "2024-03-12"
          },
          "Locale": {
            "type": "string",
            "description": "Locale/culture the connector uses when formatting values.",
            "nullable": true,
            "example": "en-US"
          },
          "Currency": {
            "type": "string",
            "description": "Default currency code (ISO 4217) for monetary values returned by this connector.",
            "nullable": true,
            "example": "USD"
          },
          "NumberOfCompanies": {
            "type": "integer",
            "description": "Number of companies available in this connector. Populated only on endpoints that include counts.",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "NumberOfGroups": {
            "type": "integer",
            "description": "Number of entity groups defined in this connector. Populated only on endpoints that include counts.",
            "format": "int32",
            "nullable": true,
            "example": 8
          },
          "ChildConnectors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorResponse"
            },
            "description": "Child connectors nested under this connector when it is a parent; otherwise omitted.",
            "nullable": true
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related collections (entities, entity groups, and companies).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConnectorRestriction": {
        "type": "object",
        "properties": {
          "Field": {
            "$ref": "#/components/schemas/ConnectorField"
          },
          "Operator": {
            "$ref": "#/components/schemas/eOne.Microservice.Shared.Enums.RestrictionType"
          },
          "Values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorValue"
            },
            "description": "The values to compare against. Single-value operators use the first value; multi-value operators (between, one-of) use several.",
            "nullable": true
          },
          "Conjunctive": {
            "$ref": "#/components/schemas/RestrictionConjunctive"
          }
        },
        "additionalProperties": false,
        "description": "A single filter condition applied to a query (one clause of the WHERE)."
      },
      "ConnectorValue": {
        "type": "object",
        "properties": {
          "ValueType": {
            "$ref": "#/components/schemas/RestrictionValueType"
          },
          "ConstantValue": {
            "type": "string",
            "description": "The literal value to compare against, used when the value type is constant.",
            "nullable": true
          },
          "Field": {
            "$ref": "#/components/schemas/ConnectorField"
          },
          "DateValueType": {
            "$ref": "#/components/schemas/DateValue"
          }
        },
        "additionalProperties": false,
        "description": "A value used in a restriction or variable, interpreted according to its value type."
      },
      "ConnectorVariable": {
        "type": "object",
        "properties": {
          "VariableId": {
            "type": "string",
            "description": "The entity variable being supplied.",
            "format": "uuid"
          },
          "Name": {
            "type": "string",
            "description": "The variable's name.",
            "nullable": true
          },
          "FieldType": {
            "type": "integer",
            "description": "Integer code for the variable's data type: 1 = String, 2 = Date, 3 = Currency, 4 = Number, 5 = Phone, 6 = List, 7 = Percentage, 8 = Yes/No, 9 = Time, 10 = Quantity, 11 = Email, 12 = Website, 13 = Image, 14 = Skype, 15 = Twitter, 16 = Color, 17 = Address, 18 = Text, 19 = GUID, 20 = Icon, 21 = Duration, 24 = File, 25 = Dimension, 26 = Date and time.",
            "format": "int32"
          },
          "Required": {
            "type": "boolean",
            "description": "Whether a value must be supplied for this variable."
          },
          "Value": {
            "$ref": "#/components/schemas/ConnectorValue"
          },
          "Values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorValue"
            },
            "description": "Multiple values supplied for the variable, when it accepts more than one.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A value supplied for one of the entity's query variables when the query is run."
      },
      "CustomEntityMergeEntity": {
        "type": "object",
        "properties": {
          "EntityId": {
            "type": "string",
            "description": "Identifier of the entity included in the merge.",
            "format": "uuid",
            "nullable": true,
            "example": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
          },
          "CompanyIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Identifiers of the companies from this entity that are included in the merge.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DateValue": {
        "enum": [
          "Today",
          "Yesterday",
          "Tomorrow",
          "StartOfWeek",
          "EndOfWeek",
          "StartOfMonth",
          "EndOfMonth",
          "StartOfQuarter",
          "EndOfQuarter",
          "StartOfYear",
          "EndOfYear",
          "StartOfThisFiscalPeriod",
          "EndOfThisFiscalPeriod",
          "StartOfLastWeek",
          "EndOfLastWeek",
          "StartOfLastMonth",
          "EndOfLastMonth",
          "StartOfLastQuarter",
          "EndOfLastQuarter",
          "StartOfLastYear",
          "EndOfLastYear",
          "StartOfLastFiscalPeriod",
          "EndOfLastFiscalPeriod",
          "StartOfNextWeek",
          "EndOfNextWeek",
          "StartOfNextMonth",
          "EndOfNextMonth",
          "StartOfNextQuarter",
          "EndOfNextQuarter",
          "StartOfNextYear",
          "EndOfNextYear",
          "StartOfNextFiscalPeriod",
          "EndOfNextFiscalPeriod",
          "ThisWeek",
          "LastWeek",
          "NextWeek",
          "ThisMonth",
          "LastMonth",
          "NextMonth",
          "ThisQuarter",
          "LastQuarter",
          "NextQuarter",
          "ThisYear",
          "LastYear",
          "NextYear",
          "ThisFiscalPeriod",
          "LastFiscalPeriod",
          "NextFiscalPeriod",
          "StartOfNextFiscalYear",
          "EndOfNextFiscalYear",
          "NextFiscalYear",
          "StartOfThisFiscalYear",
          "EndOfThisFiscalYear",
          "ThisFiscalYear",
          "StartOfLastFiscalYear",
          "EndOfLastFiscalYear",
          "LastFiscalYear"
        ],
        "type": "string"
      },
      "DbCustomEntityJoinEntity": {
        "type": "object",
        "properties": {
          "CustomJoinEntityId": {
            "type": "string",
            "format": "uuid"
          },
          "CustomEntityId": {
            "type": "string",
            "format": "uuid"
          },
          "EntityId": {
            "type": "string",
            "format": "uuid"
          },
          "JoinToEntityId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "JoinType": {
            "type": "integer",
            "format": "int32"
          },
          "CompanyId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "Alias": {
            "type": "string",
            "nullable": true
          },
          "Summary": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntityFieldResponse": {
        "type": "object",
        "properties": {
          "EntityFieldId": {
            "type": "string",
            "description": "The field's unique identifier.",
            "format": "uuid",
            "example": "6a1b2c3d-4e5f-4081-9a2b-3c4d5e6f7081"
          },
          "EntityId": {
            "type": "string",
            "description": "Identifier of the entity this field belongs to.",
            "format": "uuid",
            "example": "2c4e6a8b-1d3f-4509-a7b2-9c0d1e2f3a4b"
          },
          "FieldNumber": {
            "type": "integer",
            "description": "The field's position number within the entity.",
            "format": "int32",
            "example": 3
          },
          "Name": {
            "type": "string",
            "description": "The field's internal name.",
            "nullable": true,
            "example": "CustomerName"
          },
          "Type": {
            "type": "integer",
            "description": "Integer code for the field's data type: 1 = String, 2 = Date, 3 = Currency, 4 = Number, 5 = Phone, 6 = List, 7 = Percentage, 8 = Yes/No, 9 = Time, 10 = Quantity, 11 = Email, 12 = Website, 13 = Image, 14 = Skype, 15 = Twitter, 16 = Color, 17 = Address, 18 = Text, 19 = GUID, 20 = Icon, 21 = Duration, 24 = File, 25 = Dimension, 26 = Date and time.",
            "format": "int32",
            "example": 1
          },
          "DefaultField": {
            "type": "boolean",
            "description": "Whether the field is shown by default.",
            "nullable": true,
            "example": true
          },
          "ColumnNumber": {
            "type": "integer",
            "description": "The field's display order among the entity's columns.",
            "format": "int32",
            "nullable": true,
            "example": 2
          },
          "SortNumber": {
            "type": "integer",
            "description": "The order in which this field is applied when sorting, lowest first.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "SortDirection": {
            "type": "integer",
            "description": "Integer code for the sort direction: 0 = Ascending, 1 = Descending.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "ColumnWidth": {
            "type": "integer",
            "description": "The display width of the field's column, in pixels.",
            "format": "int32",
            "nullable": true,
            "example": 150
          },
          "DisplayName": {
            "type": "string",
            "description": "The field's display name.",
            "nullable": true,
            "example": "Customer Name"
          },
          "Description": {
            "type": "boolean",
            "description": "Whether this field is used as the record's description.",
            "nullable": true,
            "example": false
          },
          "KeyNumber": {
            "type": "integer",
            "description": "The field's position among the entity's key fields.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "GroupName": {
            "type": "string",
            "description": "Name of the group this field is displayed under.",
            "nullable": true,
            "example": "Address"
          },
          "GroupFieldName": {
            "type": "string",
            "description": "Internal name of the grouping field.",
            "nullable": true,
            "example": "AddressGroup"
          },
          "DecimalPlaces": {
            "type": "integer",
            "description": "Number of decimal places shown for numeric values.",
            "format": "int32",
            "nullable": true,
            "example": 2
          },
          "TableName": {
            "type": "string",
            "description": "Name of the source table the field is read from.",
            "nullable": true,
            "example": "Customer"
          },
          "ReadOnly": {
            "type": "boolean",
            "description": "Whether the field is read-only.",
            "nullable": true,
            "example": false
          },
          "CurrencyFieldId": {
            "type": "string",
            "description": "Identifier of the field that supplies the currency code for this value.",
            "format": "uuid",
            "nullable": true,
            "example": "4d8c2f1a-9b3e-4a70-8c5d-1e6f0a2b3c4d"
          },
          "DecimalFieldId": {
            "type": "string",
            "description": "Identifier of the field that supplies the number of decimal places for this value.",
            "format": "uuid",
            "nullable": true,
            "example": "5e9d3a2b-0c4f-4b81-9d6e-2f7a1b3c4d5e"
          },
          "Hidden": {
            "type": "boolean",
            "description": "Whether the field is hidden from display.",
            "nullable": true,
            "example": false
          },
          "FieldsRequired": {
            "type": "string",
            "description": "Comma-separated list of field names required to evaluate this calculated field.",
            "nullable": true,
            "example": "Quantity,UnitPrice"
          },
          "ApiName": {
            "type": "string",
            "description": "The field's name as exposed through the API.",
            "nullable": true,
            "example": "customerName"
          },
          "SummaryMethod": {
            "type": "integer",
            "description": "Integer code for the aggregation applied to the field: 0 = None, 1 = Sum, 2 = Maximum, 3 = Minimum, 4 = Average, 5 = Count, 6 = Group by, 7 = Rank, 8 = Rank without ties, 9 = Median, 10 = Mode, 11 = Standard deviation, 12 = Variance, 13 = Distinct count, 14 = Distinct value, 15 = First, 16 = Last, 17 = Concatenate.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "BaseTimespanUnit": {
            "type": "integer",
            "description": "Integer code for the unit a duration value is stored in: 1 = Seconds, 2 = Minutes, 3 = Hours, 4 = Days, 5 = Minutes and seconds, 6 = Hours and minutes, 7 = Hours, minutes and seconds.",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "DisplayTimespanUnit": {
            "type": "integer",
            "description": "Integer code for the unit a duration value is displayed in: 1 = Seconds, 2 = Minutes, 3 = Hours, 4 = Days, 5 = Minutes and seconds, 6 = Hours and minutes, 7 = Hours, minutes and seconds.",
            "format": "int32",
            "nullable": true,
            "example": 6
          },
          "FieldsRequiredForCalculation": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The field names required to evaluate this calculated field, split into a list.",
            "nullable": true
          },
          "Script": {
            "type": "string",
            "description": "Expression used to compute the field's value. Populated only for calculated fields.",
            "nullable": true,
            "example": "[Quantity] * [UnitPrice]"
          },
          "ScriptLanguage": {
            "$ref": "#/components/schemas/CalculatedFieldLanguage"
          },
          "DimensionField": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "DimensionId": {
            "type": "string",
            "description": "Identifier of the dimension this field is based on.",
            "nullable": true,
            "example": "0d8a1b2c-3e4f-4506-a7b8-9c0d1e2f3a4b"
          },
          "UseLookupForListItems": {
            "type": "boolean",
            "description": "Whether list item values are resolved by looking them up in another entity.",
            "nullable": true,
            "example": false
          },
          "ListItemEntity": {
            "$ref": "#/components/schemas/SimpleEntityResponse"
          },
          "ListItemValueField": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "ListItemDisplayField": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "ListItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldListItemResponseModel"
            },
            "description": "The fixed list items defined for this field.",
            "nullable": true
          },
          "ListItemRestrictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListItemRestriction"
            },
            "description": "Restrictions that limit which list items are available.",
            "nullable": true
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources for this field.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntityGroupResponse": {
        "type": "object",
        "properties": {
          "EntityGroupId": {
            "type": "string",
            "description": "The entity group's unique identifier.",
            "format": "uuid",
            "example": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
          },
          "Name": {
            "type": "string",
            "description": "The entity group's display name.",
            "nullable": true,
            "example": "Sales"
          }
        },
        "additionalProperties": false
      },
      "EntityResponseModel": {
        "type": "object",
        "properties": {
          "EntityId": {
            "type": "string",
            "description": "The entity's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Name": {
            "type": "string",
            "description": "The entity's display name.",
            "nullable": true,
            "example": "Sales Orders"
          },
          "ApiName": {
            "type": "string",
            "description": "The entity's API name, used to reference it in API calls and queries.",
            "nullable": true,
            "example": "sales_orders"
          },
          "EntityGroupId": {
            "type": "string",
            "description": "Identifier of the entity group (folder) this entity belongs to, if any.",
            "format": "uuid",
            "nullable": true,
            "example": "a1b2c3d4-e5f6-4789-abcd-ef0123456789"
          },
          "Type": {
            "type": "integer",
            "description": "Internal integer code classifying the entity. No published code-to-label mapping is available; treat as an opaque value.",
            "format": "int32",
            "example": 0
          },
          "ConnectorId": {
            "type": "string",
            "description": "Identifier of the connector this entity belongs to.",
            "format": "uuid",
            "example": "6f9619ff-8b86-4d01-b42d-00cf4fc964ff"
          },
          "ImageFieldId": {
            "type": "string",
            "description": "Identifier of the field whose value supplies the row image, if configured.",
            "format": "uuid",
            "nullable": true,
            "example": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
          },
          "ColorFieldId": {
            "type": "string",
            "description": "Identifier of the field whose value supplies the row color, if configured.",
            "format": "uuid",
            "nullable": true,
            "example": "2b1a3c4d-5e6f-4071-8293-a4b5c6d7e8f9"
          },
          "AddressFieldId": {
            "type": "string",
            "description": "Identifier of the field treated as the address, if configured.",
            "format": "uuid",
            "nullable": true,
            "example": "9d8c7b6a-5f4e-4321-9876-543210fedcba"
          },
          "CurrencyFieldId": {
            "type": "string",
            "description": "Identifier of the field treated as the currency value, if configured.",
            "format": "uuid",
            "nullable": true,
            "example": "0fa1b2c3-d4e5-4678-9abc-def012345678"
          },
          "DecimalFieldId": {
            "type": "string",
            "description": "Identifier of the field treated as the decimal value, if configured.",
            "format": "uuid",
            "nullable": true,
            "example": "5e4d3c2b-1a09-4f8e-b7c6-d5e4f3a2b1c0"
          },
          "HasStartEndDates": {
            "type": "boolean",
            "description": "Whether the entity supports start and end dates for date-range filtering.",
            "nullable": true,
            "example": true
          },
          "DefaultStartDays": {
            "type": "integer",
            "description": "Default number of days back from today used for the start date when querying.",
            "format": "int32",
            "nullable": true,
            "example": 30
          },
          "ItemName": {
            "type": "string",
            "description": "Plural label for the entity's rows (for example the name shown for a list of items).",
            "nullable": true,
            "example": "Orders"
          },
          "ItemSingular": {
            "type": "string",
            "description": "Singular label for a single row of the entity.",
            "nullable": true,
            "example": "Order"
          },
          "Hidden": {
            "type": "boolean",
            "description": "Whether the entity is hidden from listings.",
            "nullable": true,
            "example": false
          },
          "QueryBuilder": {
            "type": "boolean",
            "description": "Whether the entity was built with Query Builder rather than installed by its connector.",
            "example": false
          },
          "CustomEntityType": {
            "type": "integer",
            "description": "Integer code for the custom entity type when the entity is custom: 1 = Summary, 2 = Joined, 3 = Merged, 4 = Comparison, 5 = Restriction, 6 = Matrix, 7 = AI prompt. Null for standard entities.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "BaseEntityId": {
            "type": "string",
            "description": "For comparison custom entities, the identifier of the base entity being compared from.",
            "format": "uuid",
            "nullable": true,
            "example": "c3d4e5f6-a7b8-4901-bcde-f01234567890"
          },
          "CompareEntityId": {
            "type": "string",
            "description": "For comparison custom entities, the identifier of the entity being compared to.",
            "format": "uuid",
            "nullable": true,
            "example": "d4e5f6a7-b8c9-4012-cdef-012345678901"
          },
          "ComparisonMethod": {
            "type": "integer",
            "description": "For comparison custom entities, the integer code for the comparison method: 1 = Difference, 2 = Similarity.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "NumberOfFavorites": {
            "type": "integer",
            "description": "Number of saved favorites associated with the entity.",
            "format": "int32",
            "nullable": true,
            "example": 4
          },
          "Tables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntityTableResponse"
            },
            "description": "The tables (and their fields) that make up the entity. Populated only when the endpoint includes table detail.",
            "nullable": true
          },
          "MergeEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomEntityMergeEntity"
            },
            "description": "For merged custom entities, the source entities being merged together. Populated only for merged entities.",
            "nullable": true
          },
          "JoinEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DbCustomEntityJoinEntity"
            },
            "description": "For joined custom entities, the source entities being joined together. Populated only for joined entities.",
            "nullable": true
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources such as fields, favorites, details, and data.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntityRestrictionValueResponse": {
        "type": "object",
        "properties": {
          "ValueNumber": {
            "type": "integer",
            "description": "Ordinal position of this value within the restriction (for example to order the two bounds of a Between restriction).",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "ValueType": {
            "type": "integer",
            "description": "Integer code for the kind of value supplied: 0 = Constant, 1 = Field, 2 = Calculation, 3 = Date, 4 = Variable, 5 = Parent field, 6 = Fiscal period, 7 = Fiscal year, 8 = Parameter, 100 = Default. Determines which of the value properties below is populated.",
            "format": "int32",
            "example": 0
          },
          "ConstantValue": {
            "type": "string",
            "description": "The literal constant the field is compared against. Populated when the value type is Constant.",
            "nullable": true,
            "example": "Active"
          },
          "DateValue": {
            "type": "integer",
            "description": "Relative-date code the field is compared against, drawn from the product's relative-date set (for example 0 = Today, 1 = Yesterday, 2 = Tomorrow, 5 = Start of month, 6 = End of month, 9 = Start of year, 10 = End of year; valid codes run 0 through 56). Populated when the value type is Date.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "Field": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "Variable": {
            "$ref": "#/components/schemas/SimpleVariableResponse"
          }
        },
        "additionalProperties": false
      },
      "EntityTableJoinResponse": {
        "type": "object",
        "properties": {
          "EntityTableJoinId": {
            "type": "string",
            "description": "Unique identifier of the table join.",
            "format": "uuid",
            "example": "16fd2706-8baf-433b-82eb-8c7fada847da"
          },
          "FromFieldId": {
            "type": "string",
            "description": "Identifier of the source field (on this table) used to match the joined table.",
            "nullable": true,
            "example": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
          },
          "ToFieldId": {
            "type": "string",
            "description": "Identifier of the target field (on the joined table) matched against the source field.",
            "nullable": true,
            "example": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"
          }
        },
        "additionalProperties": false
      },
      "EntityTableResponse": {
        "type": "object",
        "properties": {
          "EntityTableId": {
            "type": "string",
            "description": "Unique identifier of the table.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Name": {
            "type": "string",
            "description": "The table's display name.",
            "nullable": true,
            "example": "Sales Orders"
          },
          "DatabaseName": {
            "type": "string",
            "description": "The underlying database table name.",
            "nullable": true,
            "example": "SOP10100"
          },
          "Script": {
            "type": "string",
            "description": "Custom SQL script used as the table's data source, when defined instead of a plain table.",
            "nullable": true,
            "example": "select * from SOP10100 where SOPTYPE = 2"
          },
          "Alias": {
            "type": "string",
            "description": "Short alias used to reference the table in the generated query.",
            "nullable": true,
            "example": "so"
          },
          "JoinToTableId": {
            "type": "string",
            "description": "Identifier of the table this table joins to, when it is a joined table.",
            "format": "uuid",
            "nullable": true,
            "example": "16fd2706-8baf-433b-82eb-8c7fada847da"
          },
          "JoinType": {
            "type": "integer",
            "description": "Integer code for the join method used to relate this table to the table it joins to (for example inner or outer join).",
            "format": "int32",
            "nullable": true,
            "example": 2
          },
          "TableNumber": {
            "type": "integer",
            "description": "Ordinal position of the table within the entity's set of tables.",
            "format": "int32",
            "example": 1
          },
          "JoinFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntityTableJoinResponse"
            },
            "description": "The field pairs that define how this table joins to another table.",
            "nullable": true
          },
          "Restrictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntityTableRestrictionResponse"
            },
            "description": "The filters applied to this table's rows.",
            "nullable": true
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources for this table.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntityTableRestrictionResponse": {
        "type": "object",
        "properties": {
          "EntityTableRestrictionId": {
            "type": "string",
            "description": "Unique identifier of the table restriction.",
            "format": "uuid",
            "example": "16fd2706-8baf-433b-82eb-8c7fada847da"
          },
          "EntityTableId": {
            "type": "string",
            "description": "Identifier of the table this restriction applies to.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "EntityFieldId": {
            "type": "string",
            "description": "Identifier of the field the restriction filters on.",
            "format": "uuid",
            "example": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
          },
          "Type": {
            "type": "integer",
            "description": "Integer code for the comparison operator: 0 = Does not equal, 1 = Equals, 2 = Greater than, 3 = Less than, 4 = Greater than or equal to, 5 = Less than or equal to, 6 = Contains, 7 = Starts with, 8 = Ends with, 9 = Does not contain, 10 = Does not start with, 11 = Does not end with, 12 = Between, 13 = Not between, 14 = One of, 15 = Not one of, 22 = Is null, 23 = Is not null.",
            "format": "int32",
            "example": 1
          },
          "Field": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "Value": {
            "$ref": "#/components/schemas/EntityRestrictionValueResponse"
          },
          "Values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntityRestrictionValueResponse"
            },
            "description": "The comparison values, for operators that take multiple values such as Between or One of.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExchangeTokenResponse": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "The authentication token issued for the session.",
            "nullable": true,
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "api": {
            "type": "string",
            "description": "The base URL of the API region the token is valid for.",
            "nullable": true,
            "example": "https://api.popdock.com"
          },
          "requiresMfa": {
            "type": "boolean",
            "description": "Whether multi-factor authentication is still required to complete sign-in.",
            "nullable": true,
            "example": false
          }
        },
        "additionalProperties": false
      },
      "FavoriteColumnResponse": {
        "type": "object",
        "properties": {
          "FavoriteColumnId": {
            "type": "string",
            "description": "The favorite column's unique identifier.",
            "format": "uuid",
            "example": "1d2e3f4a-5b6c-7d8e-9f0a-1b2c3d4e5f6a"
          },
          "Field": {
            "$ref": "#/components/schemas/FavoriteFieldResponse"
          },
          "ColumnNumber": {
            "type": "integer",
            "description": "The column's position in the list, left to right.",
            "format": "int32",
            "example": 1
          },
          "ColumnWidth": {
            "type": "integer",
            "description": "The column's display width in pixels.",
            "format": "int32",
            "nullable": true,
            "example": 120
          },
          "SortNumber": {
            "type": "integer",
            "description": "The column's position in the sort order, lowest first.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "SortDirection": {
            "type": "integer",
            "description": "Integer code for the sort direction: 0 = Ascending, 1 = Descending.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "GroupNumber": {
            "type": "integer",
            "description": "The column's position in the grouping order, lowest first.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "GroupDirection": {
            "type": "integer",
            "description": "Integer code for the grouping direction: 0 = Ascending, 1 = Descending.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "SummaryMethod": {
            "type": "integer",
            "description": "Integer code for the aggregation applied to the column: 0 = None, 1 = Sum, 2 = Maximum, 3 = Minimum, 4 = Average, 5 = Count, 6 = Group by, 7 = Rank, 8 = Rank no ties, 9 = Median, 10 = Mode, 11 = Standard deviation, 12 = Variance, 13 = Distinct count, 14 = Distinct value, 15 = First, 16 = Last, 17 = Concatenate.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "ConversionType": {
            "type": "integer",
            "description": "Integer code for the value conversion applied to the column, such as a currency or unit conversion. Null when no conversion is applied.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "PivotValueNumber": {
            "type": "integer",
            "description": "The column's position among the value fields in a pivot layout.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "PivotColumnNumber": {
            "type": "integer",
            "description": "The column's position among the column fields in a pivot layout.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "PivotRowNumber": {
            "type": "integer",
            "description": "The column's position among the row fields in a pivot layout.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources for the column.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FavoriteFieldResponse": {
        "type": "object",
        "properties": {
          "EntityFieldId": {
            "type": "string",
            "description": "The entity field's unique identifier.",
            "format": "uuid",
            "example": "0f8fad5b-d9cb-469f-a165-70867728950e"
          },
          "Name": {
            "type": "string",
            "description": "The field's internal name.",
            "nullable": true,
            "example": "OrderTotal"
          },
          "DisplayName": {
            "type": "string",
            "description": "The field's display name shown to the user.",
            "nullable": true,
            "example": "Order Total"
          },
          "Type": {
            "type": "string",
            "description": "The field's data type description.",
            "nullable": true,
            "example": "Currency"
          },
          "DecimalPlaces": {
            "type": "integer",
            "description": "The number of decimal places displayed for the field.",
            "format": "int32",
            "nullable": true,
            "example": 2
          },
          "ListItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimpleFieldListItem"
            },
            "description": "The predefined list items available for the field, when it is a list field.",
            "nullable": true
          },
          "JsonName": {
            "type": "string",
            "description": "The display name with spaces and quote characters removed, suitable for use as a JSON property name.",
            "nullable": true,
            "readOnly": true,
            "example": "OrderTotal"
          }
        },
        "additionalProperties": false
      },
      "FavoriteResponse": {
        "type": "object",
        "properties": {
          "FavoriteId": {
            "type": "string",
            "description": "The favorite's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Name": {
            "type": "string",
            "description": "The favorite's display name.",
            "nullable": true,
            "example": "Open Sales Orders"
          },
          "UserId": {
            "type": "string",
            "description": "Identifier of the user that owns the favorite.",
            "format": "uuid",
            "example": "9b2e1f4a-6c3d-4e58-8a17-2d4f6b8c0e91"
          },
          "Entity": {
            "$ref": "#/components/schemas/SimpleEntityResponse"
          },
          "Connector": {
            "$ref": "#/components/schemas/SimpleConnectorResponse"
          },
          "Currency": {
            "type": "string",
            "description": "Currency code applied to the favorite's monetary values, taken from the requesting user's currency.",
            "nullable": true,
            "example": "USD"
          },
          "CreatedDate": {
            "type": "string",
            "description": "Date the favorite was created.",
            "format": "date-time",
            "nullable": true,
            "example": "2024-03-12"
          },
          "MaxRecords": {
            "type": "integer",
            "description": "Maximum number of records the favorite returns.",
            "format": "int64",
            "nullable": true,
            "example": 500
          },
          "ShowRecordCount": {
            "type": "boolean",
            "description": "Whether the favorite displays a total record count.",
            "nullable": true,
            "example": true
          },
          "Type": {
            "type": "integer",
            "description": "Integer code for the favorite type. No named mapping is defined; null when unspecified.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "ViewType": {
            "type": "integer",
            "description": "Integer code for how the favorite is displayed: 0 = List, 1 = Chart, 2 = Pivot, 3 = Spreadsheet, 4 = Board, 5 = Calendar, 6 = Text, 7 = Map, 8 = Image, 9 = Card, 11 = Summary, 12 = iFrame, 14 = Singleton, 15 = Shipping, 20 = Search, 22 = Action form, 23 = AI chat, 24 = File preview, 25 = Markdown. Favorites typically use List, Chart or Text.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "BoardGroupFieldId": {
            "type": "string",
            "description": "Identifier of the field used to group records when the favorite is shown as a board.",
            "format": "uuid",
            "nullable": true,
            "example": "5d8c2a13-7e64-4b29-9f01-3a6c8e2d4b70"
          },
          "ChartSettings": {
            "$ref": "#/components/schemas/ChartSettingsModel"
          },
          "TextSettings": {
            "$ref": "#/components/schemas/TextSettingsModel"
          },
          "Columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FavoriteColumnResponse"
            },
            "description": "The columns displayed by the favorite.",
            "nullable": true
          },
          "Restrictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FavoriteRestrictionResponse"
            },
            "description": "The filter restrictions applied by the favorite.",
            "nullable": true
          },
          "Variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FavoriteVariableResponse"
            },
            "description": "The variable values supplied by the favorite.",
            "nullable": true
          },
          "Sharing": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FavoriteSharingResponse"
            },
            "description": "The users and teams the favorite is shared with.",
            "nullable": true
          },
          "Tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FavoriteTagResponse"
            },
            "description": "The tags assigned to the favorite.",
            "nullable": true
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources, such as the favorite's data endpoint.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FavoriteRestrictionResponse": {
        "type": "object",
        "properties": {
          "FavoriteRestrictionId": {
            "type": "string",
            "description": "The restriction's unique identifier.",
            "format": "uuid",
            "example": "7c1a9d3e-2b46-4f81-90a5-6e3d8c1b4a72"
          },
          "RestrictionNumber": {
            "type": "integer",
            "description": "Ordinal position of the restriction within the favorite's filter.",
            "format": "int32",
            "example": 1
          },
          "SubqueryId": {
            "type": "string",
            "description": "Identifier of the subquery the restriction targets, when filtering on a related list.",
            "format": "uuid",
            "nullable": true,
            "example": "2f9b7c1d-4e83-4a26-9c50-1d6a8e3b2f47"
          },
          "FieldId": {
            "type": "string",
            "description": "Identifier of the field the restriction is applied to.",
            "format": "uuid",
            "nullable": true,
            "example": "4a6c8e2d-5b70-4f19-83a1-9d2c4b6e8a13"
          },
          "Operator": {
            "type": "integer",
            "description": "Integer code for the comparison operator: 0 = Does not equal, 1 = Equals, 2 = Greater than, 3 = Less than, 4 = Greater than or equal to, 5 = Less than or equal to, 6 = Contains, 7 = Starts with, 8 = Ends with, 9 = Does not contain, 10 = Does not start with, 11 = Does not end with, 12 = Between, 13 = Not between, 14 = One of, 15 = Not one of, 22 = Is null, 23 = Is not null.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "Conjunctive": {
            "type": "integer",
            "description": "Integer code for how this restriction joins the previous one: 0 = None, 1 = And, 2 = Or.",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "Values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FavoriteRestrictionValueResponse"
            },
            "description": "The values compared against by the restriction.",
            "nullable": true
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FavoriteRestrictionValueResponse": {
        "type": "object",
        "properties": {
          "FavoriteRestrictionValueId": {
            "type": "string",
            "description": "The restriction value's unique identifier.",
            "format": "uuid",
            "example": "8e2d4b6a-1c79-4f53-90b8-3a5c7e1d9b46"
          },
          "RestrictionId": {
            "type": "string",
            "description": "The favorite restriction this value belongs to.",
            "format": "uuid",
            "example": "5b7c2e9d-4a18-4f63-b0d2-7e9a1c3f5d80"
          },
          "ValueNumber": {
            "type": "integer",
            "description": "Ordinal position of the value within its restriction (for example, the two ends of a Between).",
            "format": "int32",
            "example": 1
          },
          "ValueType": {
            "type": "integer",
            "description": "Integer code for how the value is supplied: 0 = Constant, 1 = Field, 2 = Calculation, 3 = Date, 4 = Variable, 5 = Parent field, 6 = Fiscal period, 7 = Fiscal year, 8 = Parameter.",
            "format": "int32",
            "example": 0
          },
          "ConstantValue": {
            "type": "string",
            "description": "The literal value to compare against when the value type is Constant; for Fiscal period and Fiscal year, the period or year.",
            "nullable": true,
            "example": "Active"
          },
          "DateValueType": {
            "type": "integer",
            "description": "Integer code for a relative date token when the value type is Date (for example, 0 = Today, 1 = Yesterday, 5 = Start of month, 36 = This month, 42 = This year).",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "FieldId": {
            "type": "string",
            "description": "The field whose value is compared against when the value type is Field.",
            "format": "uuid",
            "nullable": true,
            "example": "1d2f4b9a-8888-4444-aaaa-bbbbccccdddd"
          },
          "VariableId": {
            "type": "string",
            "description": "The entity variable whose value is compared against when the value type is Variable.",
            "format": "uuid",
            "nullable": true,
            "example": "6c1e8a3f-2b74-4d95-a0c6-9e5b7d2f4a18"
          },
          "TimeValueType": {
            "type": "integer",
            "description": "Integer code for a relative time token, used by time-typed values.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "EmailValueType": {
            "type": "integer",
            "description": "Integer code for an email token (such as the current user's email), used by email-typed values.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "CustomFilterTypeId": {
            "type": "string",
            "description": "The custom date filter used by the value, when it references one.",
            "format": "uuid",
            "nullable": true,
            "example": "3a9d5f1b-7c26-4e84-b1a3-5d8f2c6e9b47"
          },
          "FieldValue": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FavoriteSharingResponse": {
        "type": "object",
        "properties": {
          "FavoriteSharingId": {
            "type": "string",
            "description": "The sharing entry's unique identifier.",
            "format": "uuid",
            "example": "1d6a8e3b-2f47-4c90-85e2-7b4d9c1a3e68"
          },
          "User": {
            "$ref": "#/components/schemas/SimpleUserResponse"
          },
          "Team": {
            "$ref": "#/components/schemas/SimpleTeamResponse"
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FavoriteTagResponse": {
        "type": "object",
        "properties": {
          "FavoriteTagId": {
            "type": "string",
            "description": "Unique identifier of the tag assigned to the favorite.",
            "format": "uuid",
            "example": "3a5c7e1d-9b46-4f80-82a1-6e2d4b8c0f95"
          },
          "Tag": {
            "type": "string",
            "description": "The tag's display name.",
            "nullable": true,
            "example": "Monthly"
          },
          "Links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "HATEOAS links to related resources.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FavoriteVariableResponse": {
        "type": "object",
        "properties": {
          "FavoriteVariableId": {
            "type": "string",
            "description": "The favorite variable's unique identifier.",
            "format": "uuid",
            "example": "6e2d4b8c-0f95-4a31-87d2-5b9c1a3e7d68"
          },
          "Variable": {
            "$ref": "#/components/schemas/SimpleVariableResponse"
          },
          "ValueType": {
            "type": "integer",
            "description": "Integer code for how the variable value is supplied: 0 = Constant, 1 = Field, 2 = Calculation, 3 = Date, 4 = Variable, 5 = Parent field, 6 = Fiscal period, 7 = Fiscal year, 8 = Parameter.",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "ConstantValue": {
            "type": "string",
            "description": "The literal value supplied for the variable. Populated only when the value type is Constant.",
            "nullable": true,
            "example": "1000"
          },
          "DateValue": {
            "type": "integer",
            "description": "Integer code for a relative date token when the value type is Date (for example, 0 = Today, 1 = Yesterday, 5 = Start of month, 36 = This month, 42 = This year).",
            "format": "int32",
            "nullable": true,
            "example": 0
          },
          "Field": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          }
        },
        "additionalProperties": false
      },
      "FieldListItemResponseModel": {
        "type": "object",
        "properties": {
          "EntityFieldListItemId": {
            "type": "string",
            "description": "The list item's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Item": {
            "type": "string",
            "description": "The display text shown for the list item.",
            "nullable": true,
            "example": "Active"
          },
          "Value": {
            "type": "string",
            "description": "The underlying value stored for the list item.",
            "nullable": true,
            "example": "1"
          },
          "Index": {
            "type": "integer",
            "description": "The list item's position in the ordered list.",
            "format": "int64",
            "nullable": true,
            "example": 0
          }
        },
        "additionalProperties": false
      },
      "ListItemRestriction": {
        "type": "object",
        "properties": {
          "RestrictionId": {
            "type": "string",
            "description": "The unique identifier of the list-item restriction.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "RestrictionNumber": {
            "type": "integer",
            "description": "The ordinal position of this restriction within the list-item field's set of restrictions.",
            "format": "int32",
            "example": 1
          },
          "RestrictionField": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "RestrictionType": {
            "type": "integer",
            "description": "Integer code for the comparison operator: 0 = Does not equal, 1 = Equals, 2 = Greater than, 3 = Less than, 4 = Greater than or equal to, 5 = Less than or equal to, 6 = Contains, 7 = Starts with, 8 = Ends with, 9 = Does not contain, 10 = Does not start with, 11 = Does not end with, 12 = Between, 13 = Not between, 14 = One of, 15 = Not one of, 22 = Is null, 23 = Is not null.",
            "format": "int32",
            "example": 1
          },
          "Values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListItemRestrictionValueResponse"
            },
            "description": "The comparison values applied by this restriction.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListItemRestrictionValueResponse": {
        "type": "object",
        "properties": {
          "RestrictionValueId": {
            "type": "string",
            "description": "The unique identifier of this list-item restriction value.",
            "format": "uuid",
            "example": "9c5b94b1-35ad-49bb-b118-8e8fc24abf80"
          },
          "ValueNumber": {
            "type": "integer",
            "description": "The ordinal position of this value within the restriction's set of values.",
            "format": "int32",
            "example": 1
          },
          "Type": {
            "type": "integer",
            "description": "Integer code for the value type: 0 = Constant, 1 = Field, 2 = Calculation, 3 = Date, 4 = Variable, 5 = Parent field, 6 = Fiscal period, 7 = Fiscal year, 8 = Parameter, 100 = Default.",
            "format": "int32",
            "example": 0
          },
          "ConstantValue": {
            "type": "string",
            "description": "The literal constant value. Populated only when Type is 0 (Constant).",
            "nullable": true,
            "example": "Active"
          },
          "DateValue": {
            "type": "integer",
            "description": "The integer date value. Populated only when Type is 3 (Date).",
            "format": "int32",
            "nullable": true,
            "example": 20240312
          },
          "Field": {
            "$ref": "#/components/schemas/SimpleFieldResponse"
          },
          "Variable": {
            "$ref": "#/components/schemas/SimpleVariableResponse"
          }
        },
        "additionalProperties": false
      },
      "MeResponse": {
        "type": "object",
        "properties": {
          "UserId": {
            "type": "string",
            "description": "Unique identifier of the authenticated user.",
            "format": "uuid",
            "example": "e2a8c1d4-6b3f-4e9a-8d2c-1f5b7a0c9e34"
          },
          "Type": {
            "type": "string",
            "description": "The kind of user: \"user\" for a regular user or \"api\" for an API user.",
            "nullable": true,
            "example": "user"
          },
          "Name": {
            "type": "string",
            "description": "The user's display name. Populated for API users.",
            "nullable": true,
            "example": "Reporting Service"
          },
          "Email": {
            "type": "string",
            "description": "The user's email address. Populated for regular users.",
            "nullable": true,
            "example": "jane.doe@example.com"
          },
          "FirstName": {
            "type": "string",
            "description": "The user's first name. Populated for regular users.",
            "nullable": true,
            "example": "Jane"
          },
          "LastName": {
            "type": "string",
            "description": "The user's last name. Populated for regular users.",
            "nullable": true,
            "example": "Doe"
          },
          "UsePaging": {
            "type": "boolean",
            "description": "Whether list results are paged for this user. Defaults to true.",
            "nullable": true,
            "example": true
          },
          "PageSize": {
            "type": "integer",
            "description": "The number of records shown per page. Defaults to 100.",
            "format": "int32",
            "nullable": true,
            "example": 100
          },
          "Theme": {
            "type": "string",
            "description": "The user's selected UI theme. Defaults to \"default\".",
            "nullable": true,
            "example": "default"
          },
          "TimeZone": {
            "type": "string",
            "description": "The user's time zone identifier.",
            "nullable": true,
            "example": "America/New_York"
          },
          "Disable_Notifications": {
            "type": "boolean",
            "description": "Whether notifications are disabled for this user.",
            "nullable": true,
            "example": false
          },
          "Locale": {
            "type": "string",
            "description": "The user's locale identifier.",
            "nullable": true,
            "example": "en-US"
          },
          "WidgetBaseUrl": {
            "type": "string",
            "description": "Base URL of the widget application.",
            "nullable": true,
            "example": "https://widget.popdock.com"
          },
          "ApiBaseUrl": {
            "type": "string",
            "description": "Base URL of the API.",
            "nullable": true,
            "example": "https://api.popdock.com"
          },
          "Account": {
            "$ref": "#/components/schemas/AccountResponse"
          },
          "Accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimpleAccountResponse"
            },
            "description": "The accounts the user has access to.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RestrictionConjunctive": {
        "enum": [
          "None",
          "And",
          "Or"
        ],
        "type": "string"
      },
      "RestrictionValueType": {
        "enum": [
          "Constant",
          "Field",
          "DateTimeValue",
          "Variable",
          "ParentField",
          "FiscalPeriod",
          "FiscalYear",
          "Parameter",
          "Default"
        ],
        "type": "string"
      },
      "RunQueryRequest": {
        "type": "object",
        "properties": {
          "Id": {
            "type": "string",
            "description": "Identifier of the entity (list/table) to query.",
            "nullable": true
          },
          "Format": {
            "type": "string",
            "description": "The output format for the response (e.g. JSON, CSV). Defaults to JSON when omitted.",
            "nullable": true
          },
          "Query": {
            "$ref": "#/components/schemas/ConnectorQuery"
          }
        },
        "additionalProperties": false,
        "description": "A request to run a query against an entity and return matching rows."
      },
      "SimpleAccountResponse": {
        "type": "object",
        "properties": {
          "AccountId": {
            "type": "string",
            "description": "The account's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Name": {
            "type": "string",
            "description": "The account's display name.",
            "nullable": true,
            "example": "Acme Corporation"
          }
        },
        "additionalProperties": false
      },
      "SimpleConnectorResponse": {
        "type": "object",
        "properties": {
          "ConnectorId": {
            "type": "string",
            "description": "The connector's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Name": {
            "type": "string",
            "description": "The connector's display name.",
            "nullable": true,
            "example": "Salesforce Production"
          },
          "Icon": {
            "type": "string",
            "description": "The connector's icon, when set, for display in clients.",
            "nullable": true,
            "example": "salesforce"
          }
        },
        "additionalProperties": false
      },
      "SimpleEntityResponse": {
        "type": "object",
        "properties": {
          "EntityId": {
            "type": "string",
            "description": "The entity's unique identifier.",
            "format": "uuid",
            "example": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
          },
          "Name": {
            "type": "string",
            "description": "The entity's name.",
            "nullable": true,
            "example": "Sales Orders"
          },
          "ItemName": {
            "type": "string",
            "description": "The plural label used for the entity's records (for example, \"Orders\").",
            "nullable": true,
            "example": "Orders"
          },
          "ItemSingular": {
            "type": "string",
            "description": "The singular label used for an individual record of the entity (for example, \"Order\").",
            "nullable": true,
            "example": "Order"
          }
        },
        "additionalProperties": false
      },
      "SimpleFieldListItem": {
        "type": "object",
        "properties": {
          "Index": {
            "type": "integer",
            "description": "The zero-based position of this item within the field's list of values.",
            "format": "int64",
            "nullable": true,
            "example": 0
          },
          "Key": {
            "type": "string",
            "description": "The stored value of the list item (the underlying code).",
            "nullable": true,
            "example": "OPEN"
          },
          "Value": {
            "type": "string",
            "description": "The display value shown for the list item.",
            "nullable": true,
            "example": "Open"
          }
        },
        "additionalProperties": false
      },
      "SimpleFieldResponse": {
        "type": "object",
        "properties": {
          "EntityFieldId": {
            "type": "string",
            "description": "The field's unique identifier.",
            "format": "uuid",
            "example": "7d9f8e2a-1c3b-4a6d-8f0e-2b5c7a9d1e3f"
          },
          "Name": {
            "type": "string",
            "description": "The field's name.",
            "nullable": true,
            "example": "OrderStatus"
          },
          "DisplayName": {
            "type": "string",
            "description": "The field's display name shown to users.",
            "nullable": true,
            "example": "Order Status"
          },
          "Type": {
            "type": "string",
            "description": "The field's data type, given as the string form of the underlying field-type code: 1 = String, 2 = Date, 3 = Currency, 4 = Number, 5 = Phone, 6 = List, 7 = Percentage, 8 = Yes/No, 9 = Time, 10 = Quantity, 11 = Email, 12 = Website, 13 = Image, 16 = Color, 18 = Text, 19 = GUID, 20 = Icon, 21 = Duration, 24 = File, 25 = Dimension.",
            "nullable": true,
            "example": "1"
          },
          "ListItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimpleFieldListItem"
            },
            "description": "The predefined list values available for this field. Populated only for fields backed by a value list.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimpleTeamResponse": {
        "type": "object",
        "properties": {
          "TeamId": {
            "type": "string",
            "description": "The team's unique identifier.",
            "format": "uuid",
            "example": "3f2504e0-4f89-41d3-9a0c-0305e82c3301"
          },
          "Name": {
            "type": "string",
            "description": "The team's display name.",
            "nullable": true,
            "example": "Sales Team"
          }
        },
        "additionalProperties": false
      },
      "SimpleUserResponse": {
        "type": "object",
        "properties": {
          "UserId": {
            "type": "string",
            "description": "The user's unique identifier.",
            "format": "uuid",
            "example": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
          },
          "Name": {
            "type": "string",
            "description": "The user's display name.",
            "nullable": true,
            "example": "Jane Smith"
          },
          "Email": {
            "type": "string",
            "description": "The user's email address.",
            "nullable": true,
            "example": "jane.smith@example.com"
          },
          "ApiUser": {
            "type": "boolean",
            "description": "Whether this user is an API user rather than a regular interactive user. Set to true for API users; omitted (null) for regular users.",
            "nullable": true,
            "example": true
          }
        },
        "additionalProperties": false
      },
      "SimpleVariableResponse": {
        "type": "object",
        "properties": {
          "EntityVariableId": {
            "type": "string",
            "description": "The entity variable's unique identifier.",
            "format": "uuid",
            "example": "b5f8c2a1-3d4e-4f6a-9b8c-7d2e1f0a3b4c"
          },
          "Name": {
            "type": "string",
            "description": "The entity variable's name.",
            "nullable": true,
            "example": "StartDate"
          }
        },
        "additionalProperties": false
      },
      "TextSettingsModel": {
        "type": "object",
        "properties": {
          "Format": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ShowHeaders": {
            "type": "boolean",
            "nullable": true
          },
          "RemoveBlanks": {
            "type": "boolean",
            "nullable": true
          },
          "Delimiter": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "eOne.Microservice.Shared.Enums.RestrictionType": {
        "enum": [
          "DoesNotEqual",
          "Equals",
          "GreaterThan",
          "LessThan",
          "GreaterThanOrEqualTo",
          "LessThanOrEqualTo",
          "Contains",
          "StartsWith",
          "EndsWith",
          "DoesNotContain",
          "DoesNotStartWith",
          "DoesNotEndWith",
          "Between",
          "NotBetween",
          "OneOf",
          "NotOneOf",
          "ContainsOneOf",
          "DoesNotContainOneOf",
          "StartsWithOneOf",
          "DoesNotStartWithOneOf",
          "EndsWithOneOf",
          "DoesNotEndWithOneOf",
          "Null",
          "NotNull"
        ],
        "type": "string"
      },
      "eOne.Microservice.Shared.Enums.SortDirection": {
        "enum": [
          "Ascending",
          "Descending"
        ],
        "type": "string"
      },
      "eOne.Microservice.Shared.Response.ErrorResponse": {
        "type": "object",
        "properties": {
          "Status": {
            "type": "string",
            "nullable": true
          },
          "Error": {
            "type": "string",
            "nullable": true
          },
          "ErrorDescription": {
            "type": "string",
            "nullable": true
          },
          "ErrorNumber": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Please enter 'Bearer' followed by your JWT token",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ],
  "tags": [
    {
      "name": "Account",
      "description": "Accounts, users, teams and security."
    },
    {
      "name": "Users",
      "description": "Users",
      "parent": "Account"
    },
    {
      "name": "Connectors",
      "description": "Data source connections, setup and companies."
    },
    {
      "name": "Groups",
      "description": "Groups",
      "parent": "Connectors"
    },
    {
      "name": "Entities",
      "description": "List/table definitions, entity actions and groups."
    },
    {
      "name": "Favorites",
      "description": "Saved query/view configurations and their columns, restrictions and sharing."
    },
    {
      "name": "Query",
      "description": "Running queries and exporting, downloading, uploading and OData access."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Account",
      "tags": [
        "Account",
        "Users"
      ]
    },
    {
      "name": "Connectors",
      "tags": [
        "Connectors",
        "Groups"
      ]
    },
    {
      "name": "Entities",
      "tags": [
        "Entities"
      ]
    },
    {
      "name": "Favorites",
      "tags": [
        "Favorites"
      ]
    },
    {
      "name": "Query",
      "tags": [
        "Query"
      ]
    }
  ]
}