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

# Create a unit property object

Creates a property for a unit

# 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": []
    }
  ],
  "paths": {
    "/unitproperties": {
      "post": {
        "tags": [
          "Unit Properties"
        ],
        "summary": "Create a unit property object",
        "description": "Creates a property for a unit",
        "operationId": "postUnitProperty",
        "requestBody": {
          "description": "A payload containing required unit property fields",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/unitproperty"
                  },
                  {
                    "required": [
                      "unit_id",
                      "key",
                      "name",
                      "value"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessUnitproperty"
          }
        }
      }
    }
  },
  "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": {
      "unitproperty": {
        "type": "object",
        "properties": {
          "created_on_utc": {
            "type": "string",
            "readOnly": true,
            "format": "date-time"
          },
          "key": {
            "type": "string",
            "example": "my-property"
          },
          "modified_on_utc": {
            "type": "string",
            "readOnly": true,
            "format": "date-time"
          },
          "name": {
            "type": "string",
            "example": "my_property"
          },
          "unit_id": {
            "type": "integer",
            "example": 12345
          },
          "unitproperty_id": {
            "type": "integer",
            "readOnly": true,
            "example": 1
          },
          "value": {
            "type": "string",
            "example": "Some Value"
          }
        }
      }
    },
    "responses": {
      "SuccessUnitproperty": {
        "description": "OK - an object representing a unit",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/unitproperty"
            }
          }
        }
      }
    }
  }
}
```