{
  "openapi": "3.1.1",
  "info": {
    "title": "ManagerServer | post-inventory-quantity-by-location",
    "version": "1.0.0+c6d1f1e3306702a9f3c52e59bee7a51638b30e7c"
  },
  "paths": {
    "/api4/inventory-quantity-by-location": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostInventoryQuantityByLocation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "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"
            ]
          }
        }
      },
      "InventoryQuantityByLocation": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "customInventoryLocations": {
            "type": "boolean"
          },
          "inventoryLocations": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "customTheme": {
            "type": "boolean"
          },
          "customThemeId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "timestamp": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "PostInventoryQuantityByLocation": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/InventoryQuantityByLocation"
          },
          "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."
          }
        }
      }
    }
  }
}