---
updatedAt: 2026-05-28T21:10:45.000Z
agentTools:
  projectIndex: https://docs.hivestack.com/llms.txt
---

# Update a unit pack

Updates a unit pack associated to your organization

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Inventory",
    "version": "2",
    "description": "Inventory",
    "contact": {
      "email": "support@perion.com"
    }
  },
  "servers": [
    {
      "url": "https://apps.hivestack.com/api/v2"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    },
    {
      "APIKeyQuery": []
    }
  ],
  "tags": [
    {
      "name": "Unit Packs",
      "description": ""
    }
  ],
  "paths": {
    "/unitpacks/{unitpack_id}": {
      "put": {
        "tags": [
          "Unit Packs"
        ],
        "summary": "Update a unit pack",
        "description": "Updates a unit pack associated to your organization",
        "operationId": "putUnitPack",
        "parameters": [
          {
            "$ref": "#/components/parameters/unitpack_id"
          }
        ],
        "requestBody": {
          "description": "A payload containing required unitpack fields",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/unitpack"
                  },
                  {
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessUnitpack"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "name": "hs-auth",
        "in": "header",
        "description": "The value should follow the following format: `apikey access_key:secret_key`"
      },
      "APIKeyQuery": {
        "type": "apiKey",
        "name": "apikey",
        "in": "query",
        "description": "The value should follow the following format: `access_key:secret_key`"
      }
    },
    "schemas": {
      "unitpack": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean",
            "example": true
          },
          "created_on_utc": {
            "type": "string",
            "readOnly": true,
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "example": "A description of the unitpack"
          },
          "external_id": {
            "type": "string",
            "description": "Your organization's unique identifier so that you can relate a unit pack in your own inventory system with a unit pack in our system",
            "example": "an_external_id"
          },
          "modified_on_utc": {
            "type": "string",
            "readOnly": true,
            "format": "date-time"
          },
          "name": {
            "type": "string",
            "example": "Unitpack Name"
          },
          "owner_id": {
            "type": "integer",
            "readOnly": true,
            "description": "The ID of the organization that owns the unitpack",
            "example": 14
          },
          "unitpack_id": {
            "type": "integer",
            "readOnly": true,
            "example": 1
          }
        }
      }
    },
    "parameters": {
      "unitpack_id": {
        "name": "unitpack_id",
        "in": "path",
        "description": "Auto generated id associated to the unitpack.",
        "required": true,
        "schema": {
          "type": "integer"
        }
      }
    },
    "responses": {
      "SuccessUnitpack": {
        "description": "OK - an object representing a unit pack",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/unitpack"
            }
          }
        }
      }
    }
  }
}
```