PATCH
/
crm
/
properties
/
2025-09
/
{objectType}
/
{propertyName}
プロパティーを更新
curl --request PATCH \
  --url https://api.hubapi.com/crm/properties/2025-09/{objectType}/{propertyName} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "displayOrder": 2,
  "fieldType": "select",
  "formField": true,
  "groupName": "contactinformation",
  "hidden": false,
  "label": "My Contact Property",
  "name": "my_contact_property",
  "options": [
    {
      "description": "Choice number one",
      "displayOrder": 1,
      "hidden": false,
      "label": "Option A",
      "value": "A"
    },
    {
      "description": "Choice number two",
      "displayOrder": 2,
      "hidden": false,
      "label": "Option B",
      "value": "B"
    }
  ],
  "type": "enumeration"
}'
{
  "displayOrder": 2,
  "fieldType": "select",
  "formField": true,
  "groupName": "contactinformation",
  "hasUniqueValue": false,
  "hidden": false,
  "label": "My Contact Property",
  "modificationMetadata": {
    "archivable": true,
    "readOnlyDefinition": false,
    "readOnlyOptions": false,
    "readOnlyValue": false
  },
  "name": "my_contact_property",
  "options": [
    {
      "description": "Choice number one",
      "displayOrder": 1,
      "hidden": false,
      "label": "Option A",
      "value": "A"
    },
    {
      "description": "Choice number two",
      "displayOrder": 2,
      "hidden": false,
      "label": "Option B",
      "value": "B"
    }
  ],
  "type": "enumeration"
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub無料ツール
Sales HubSales Hub無料ツール
Service HubService Hub無料ツール
Content HubContent HubStarter

必須スコープ

この API には、次のいずれかのスコープが必要です。
  • crm.schemas.invoices.write
  • crm.schemas.orders.write
  • crm.schemas.commercepayments.write
  • crm.objects.orders.write
  • crm.schemas.contacts.write
  • tickets
  • tickets.sensitive.v2
  • e-commerce
  • crm.schemas.appointments.write
  • crm.schemas.courses.write
  • crm.schemas.carts.write
  • tickets.highly_sensitive.v2
  • crm.schemas.services.write
  • crm.schemas.deals.write
  • crm.pipelines.orders.write
  • crm.objects.users.write
  • crm.schemas.companies.write
  • crm.schemas.subscriptions.write
  • crm.schemas.listings.write
  • crm.objects.carts.write

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

objectType
string
required
propertyName
string
required

Body

application/json
groupName
string

プロパティーが含まれているプロパティーグループの名前。

Example:

"contactinformation"

hidden
boolean

trueの場合、HubSpotにプロパティーは表示されず、使用できません。

options
object[]

プロパティーの有効なオプションのリスト。

Example:

"[{\"label\":\"Option A\",\"value\":\"A\",\"hidden\":false,\"description\":\"Choice number one\",\"displayOrder\":1},{\"label\":\"Option B\",\"value\":\"B\",\"hidden\":false,\"description\":\"Choice number two\",\"displayOrder\":2}]"

displayOrder
integer

プロパティーは、最も小さい正の整数値を先頭に表示されます。「-1」という値にすると、そのプロパティーは全ての正の値よりも後に表示されます。

Example:

2

description
string

HubSpotにヘルプテキストとして表示されるプロパティーの説明。

calculationFormula
string

計算プロパティーの計算に使用される式を表します。

label
string

HubSpotに表示される、人間が読めるプロパティーラベル。

Example:

"My Contact Property"

type
enum<string>

プロパティーのデータ型。

Available options:
bool,
date,
datetime,
enumeration,
number,
phone_number,
string
Example:

"enumeration"

fieldType
enum<string>

HubSpotでのプロパティーの表示が制御されます。

Available options:
booleancheckbox,
calculation_equation,
checkbox,
date,
file,
html,
number,
phonenumber,
radio,
select,
text,
textarea
Example:

"select"

formField
boolean

HubSpotフォームにプロパティーを使用できるかどうか。

Response

successful operation

A HubSpot property

description
string
required

HubSpotにヘルプテキストとして表示されるプロパティーの説明。

type
string
required

プロパティーのデータ型。

Example:

"enumeration"

options
object[]
required

プロパティーに有効なオプションのリスト。このフィールドは列挙型のプロパティーに必要ですが、他のプロパティータイプでは空になります。

Example:

"[{\"label\":\"Option A\",\"value\":\"A\",\"hidden\":false,\"description\":\"Choice number one\",\"displayOrder\":1},{\"label\":\"Option B\",\"value\":\"B\",\"hidden\":false,\"description\":\"Choice number two\",\"displayOrder\":2}]"

label
string
required

HubSpotに表示される、人間が読めるプロパティーラベル。

Example:

"My Contact Property"

groupName
string
required

プロパティーが含まれているプロパティーグループの名前。

Example:

"contactinformation"

name
string
required

このAPIを使用してプロパティーを参照する際に使用する必要がある内部プロパティー名。

Example:

"my_contact_property"

fieldType
string
required

HubSpotでのプロパティーの表示が制御されます。

Example:

"select"

hidden
boolean

HubSpot UIでプロパティーが非表示になるかどうか。カスタムプロパティーの場合、これをfalseに設定することをお勧めします。

displayOrder
integer

プロパティーは、正の整数値の低い順に表示されます。

Example:

2

showCurrencySymbol
boolean

プロパティーによってアカウント設定で定義された通貨記号が表示されるかどうか。

hubspotDefined
boolean

HubSpotに組み込まれている既定のオブジェクトプロパティーではtrueになります。

createdAt
string<date-time>

プロパティーが作成された時刻のタイムスタンプ(ISO 8601形式)。

archived
boolean

プロパティーがアーカイブされているかどうか。

hasUniqueValue
boolean

プロパティーの値が固有である必要があるかどうか。設定すると、変更はできません。

calculated
boolean

既定のプロパティーの場合、trueはプロパティーがHubSpotプロセスによって計算されることを示します。カスタムプロパティーの場合は効果がありません。

externalOptions
boolean

既定のプロパティーの場合、trueはオプションがプロパティー設定外に格納されていることを示します。

dateDisplayHint
enum<string>
Available options:
absolute,
absolute_with_relative,
time_since,
time_until
updatedAt
string<date-time>

プロパティーが最後に更新されたタイムスタンプ(ISO 8601形式)。

createdUserId
string

HubSpotでプロパティーを作成したユーザーの内部ユーザーID。プロパティーがHubSpot外で作成された場合、このフィールドは存在しない場合があります。

modificationMetadata
object
sensitiveDataCategories
string[]

When sensitiveData is true, lists the type of sensitive data contained in the property (e.g., "HIPAA").

formField
boolean

HubSpotフォームにプロパティーを使用できるかどうか。

dataSensitivity
enum<string>

Indicates the sensitivity level of the property, such as "non_sensitive", "sensitive", or "highly_sensitive".

Available options:
non_sensitive,
sensitive,
highly_sensitive
archivedAt
string<date-time>

プロパティーがアーカイブされた日時

referencedObjectType
string

このプロパティーが他のオブジェクトに関連している場合、ここに一覧で表示されます。

calculationFormula
string

計算プロパティーの計算に使用される式を表します。

updatedUserId
string

HubSpotでプロパティーを更新したユーザーの内部ユーザーID。プロパティーがHubSpot外で更新された場合、このフィールドは存在しない場合があります。