{
  "openapi": "3.1.1",
  "info": {
    "title": "ManagerServer | put-extension",
    "version": "1.0.0+52f56b6bd4bc2116eaa105da147ccc633065c603"
  },
  "paths": {
    "/api4/extension": {
      "put": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutExtension"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "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": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Extension": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "$ref": "#/components/schemas/ExtensionSource"
          },
          "endpoint": {
            "type": [
              "null",
              "string"
            ]
          },
          "html": {
            "type": [
              "null",
              "string"
            ]
          },
          "placement": {
            "type": [
              "null",
              "string"
            ]
          },
          "inactive": {
            "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"
          }
        }
      },
      "ExtensionSource": {
        "type": "integer"
      },
      "PutExtension": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "value": {
            "$ref": "#/components/schemas/Extension"
          },
          "business": {
            "type": [
              "null",
              "string"
            ],
            "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."
          }
        }
      }
    }
  }
}