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

appId
integer
required

ターゲットアプリのID。

eventTemplateId
string
required

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

tokenName
string
required

トークン名。

Body

application/json

The updated token definition.

State of the token definition for update requests.

label
string
required

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

objectPropertyName
string

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

options
object[]

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

Response

successful operation

State of the token definition.

label
string
required

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

name
string
required

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

type
enum<string>
required

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

Verfügbare Optionen:
date,
enumeration,
number,
string
createdAt
string<date-time>

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

objectPropertyName
string

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

options
object[]

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

updatedAt
string<date-time>

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