Zum Hauptinhalt springen
PUT
/
integrators
/
timeline
/
v3
/
{appId}
/
event-templates
/
{eventTemplateId}
/
tokens
/
{tokenName}
テンプレートトークンを更新
curl --request PUT \
  --url https://api.hubapi.com/integrators/timeline/v3/{appId}/event-templates/{eventTemplateId}/tokens/{tokenName} \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "petType edit",
  "options": [
    {
      "value": "dog",
      "label": "Dog"
    },
    {
      "value": "cat",
      "label": "Cat"
    },
    {
      "value": "bird",
      "label": "Bird"
    }
  ]
}'
{
  "name": "petType",
  "type": "enumeration",
  "createdAt": "2020-02-12T20:58:26Z",
  "updatedAt": "2020-02-12T20:58:26Z",
  "label": "Pet Type",
  "options": [
    {
      "value": "dog",
      "label": "Dog"
    },
    {
      "value": "cat",
      "label": "Cat"
    },
    {
      "value": "bird",
      "label": "Bird"
    }
  ]
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub無料ツール
Sales HubSales Hub無料ツール
Service HubService Hub無料ツール
Content HubContent HubStarter

Authorizations

hapikey
string
query
required

Path Parameters

eventTemplateId
string
required

イベントテンプレートID。

tokenName
string
required

トークン名。

appId
integer
required

ターゲットアプリのID。

Body

application/json

The updated token definition.

State of the token definition for update requests.

label
string
required

リストのセグメンテーションやレポートに使用されます。

Example:

"petType edit"

options
object[]

データ型が「列挙」の場合、選択元となるオプションのリストが必要です。

Example:

"[{\"label\":\"Dog\",\"value\":\"dog\"},{\"label\":\"Cat\",\"value\":\"cat\"},{\"label\":\"Bird\",\"value\":\"bird\"}]"

objectPropertyName
string

CRMオブジェクトプロパティーの名前。イベントに関連付けられているCRMオブジェクトプロパティーが入力されます。十分に用意すれば、タイムラインAPIを使用してCRMオブジェクトを完全に構築できます。

Response

successful operation

State of the token definition.

name
string
required

テンプレートで参照されるトークンの名前。特定のテンプレートで固有である必要があります。使用できるのは英数字、ピリオド、ダッシュ、またはアンダースコア(. - _)のみです。

Example:

"petType"

label
string
required

リストのセグメンテーションやレポートに使用されます。

Example:

"Pet Type"

type
enum<string>
required

トークンのデータ型。現在のところ、[文字列、数値、日付、列挙]の中から選択できます。

Available options:
date,
enumeration,
number,
string
Example:

"enumeration"

createdAt
string<date-time>

イベント テンプレート トークンが作成された日時(ISO 8601タイムスタンプ)。テンプレートが2020年2月18日より前に作成された場合はnullになります。

Example:

"2020-02-12T20:58:26.000+00:00"

options
object[]

データ型が「列挙」の場合、選択元となるオプションのリストが必要です。

Example:

"[{\"label\":\"Dog\",\"value\":\"dog\"},{\"label\":\"Cat\",\"value\":\"cat\"}]"

objectPropertyName
string

CRMオブジェクトプロパティーの名前。イベントに関連付けられているCRMオブジェクトプロパティーが入力されます。十分に用意すれば、タイムラインAPIを使用してCRMオブジェクトを完全に構築できます。

Example:

"customPropertyPetType"

updatedAt
string<date-time>

イベント テンプレート トークンが最後に更新された日時(ISO 8601タイムスタンプ)。テンプレートが2020年2月18日より前に作成された場合はnullになります。

Example:

"2020-02-12T20:58:26.000+00:00"

I