{
  "openapi": "3.1.1",
  "info": {
    "title": "ManagerServer | get-text-custom-field-batch",
    "version": "1.0.0+c6d1f1e3306702a9f3c52e59bee7a51638b30e7c"
  },
  "paths": {
    "/api4/text-custom-field-batch": {
      "get": {
        "parameters": [
          {
            "name": "Skip",
            "in": "query",
            "description": "Specify how many items should be skipped",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Specify page size. Default is 50",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Keys",
            "in": "query",
            "description": "Specify keys which objects to retrieve",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Business",
            "in": "query",
            "description": "Name of business. If you are calling API from an extension running within IFRAME, then business does not have to be provided. Manager will automatically inject current business. This is useful when extension doesn't know business name which is typically the case.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessObjectsResourceOfTextCustomField"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BusinessObjectsResourceOfTextCustomField": {
        "required": [
          "_links",
          "_actions",
          "items"
        ],
        "type": "object",
        "properties": {
          "_links": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "_actions": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "items": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ItemOfTextCustomField"
            }
          }
        }
      },
      "CustomFieldSize": {
        "type": "integer"
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ItemOfTextCustomField": {
        "required": [
          "key",
          "item",
          "_links",
          "_actions"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "item": {
            "$ref": "#/components/schemas/TextCustomField"
          },
          "_links": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "_actions": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/Link"
            }
          }
        }
      },
      "Link": {
        "required": [
          "href"
        ],
        "type": "object",
        "properties": {
          "href": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TextCustomField": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "placement": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "type": {
            "$ref": "#/components/schemas/TextCustomFieldType"
          },
          "optionsForDropdownList": {
            "type": [
              "null",
              "string"
            ]
          },
          "size": {
            "$ref": "#/components/schemas/CustomFieldSize"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "excludeFromCopyingOrCloning": {
            "type": "boolean"
          },
          "lockedForManualEditing": {
            "type": "boolean"
          },
          "displayOnView": {
            "type": "boolean"
          },
          "showAtTheTop": {
            "type": "boolean"
          },
          "inactive": {
            "type": "boolean"
          },
          "obsolete_DisplayOnList": {
            "type": "boolean"
          },
          "containsGeneralLedgerTransactions": {
            "type": "boolean"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "uniqueName": {
            "type": [
              "null",
              "string"
            ]
          },
          "isBillableExpense": {
            "type": "boolean"
          },
          "isControlAccountForInvestments": {
            "type": "boolean"
          },
          "isWithholdingTaxPayablePayable": {
            "type": "boolean"
          },
          "isAccountsReceivable": {
            "type": "boolean"
          },
          "isAccountsPayable": {
            "type": "boolean"
          },
          "isCashAtBank": {
            "type": "boolean"
          },
          "isInterAccountTransfers": {
            "type": "boolean"
          },
          "isInventoryOnHand": {
            "type": "boolean"
          },
          "isControlAccountForCapitalAccounts": {
            "type": "boolean"
          },
          "isEmployeeClearingAccount": {
            "type": "boolean"
          },
          "isControlAccountForSpecialAccounts": {
            "type": "boolean"
          },
          "isControlAccountForFixedAssets": {
            "type": "boolean"
          },
          "isControlAccountForFixedAssetsAccumulatedDepreciation": {
            "type": "boolean"
          },
          "isControlAccountForIntangibleAssets": {
            "type": "boolean"
          },
          "isControlAccountForIntangibleAssetsAccumulatedAmortization": {
            "type": "boolean"
          },
          "hasCustomers": {
            "type": "boolean"
          },
          "hasInvestments": {
            "type": "boolean"
          },
          "hasSuppliers": {
            "type": "boolean"
          },
          "hasFixedAssets": {
            "type": "boolean"
          },
          "hasIntangibleAssets": {
            "type": "boolean"
          },
          "isProfitAndLossAccount": {
            "type": "boolean"
          },
          "hasExpenseClaimPayers": {
            "type": "boolean"
          },
          "taxCodeEnabled": {
            "type": "boolean"
          },
          "divisionEnabled": {
            "type": "boolean"
          },
          "projectEnabled": {
            "type": "boolean"
          },
          "canHaveCurrencyAmount": {
            "type": "boolean"
          },
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "timestamp": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "TextCustomFieldType": {
        "type": "integer"
      }
    }
  }
}