---
title: "Create Property"
method: POST
path: "/admin/hubspot-schema/properties"
tags: ["admin", "hubspot-schema"]
---

# Create Property

`POST /admin/hubspot-schema/properties`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/hubspot-schema/properties`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Define a property. The name is what every later request reads it by, and is permanent.

``name`` is constrained to what HubSpot lowercases it to anyway, so that the name a
caller believes it created is the name it can read back.

## Query parameters

- `object_type` string

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- CreatePropertyRequest
  - `name` string, required
  - `label` string, required
  - `field_type` string
  - `group_name` string
  - `description` string, nullable
  - `options` PropertyOption[], nullable
    - `label` string, required
    - `value` string, required

## Response `201`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/upsmith/apis/upsmith-api.md) - [All operations](https://skmtc.dev/upsmith/apis/upsmith-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsmith/apis/upsmith-api/revisions/86e2c2bd93af?raw)
