Zum Hauptinhalt springen
PATCH
/
crm
/
v3
/
extensions
/
cards-dev
/
{appId}
/
{cardId}
カードを更新
curl --request PATCH \
  --url https://api.hubapi.com/crm/v3/extensions/cards-dev/{appId}/{cardId} \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "PetSpot",
  "fetch": {
    "targetUrl": "https://www.example.com/hubspot/target",
    "objectTypes": [
      {
        "name": "contacts",
        "propertiesToSend": [
          "email",
          "firstname"
        ]
      }
    ]
  },
  "display": {
    "properties": [
      {
        "name": "pet_name",
        "label": "Pets Name",
        "dataType": "STRING"
      }
    ]
  },
  "actions": {
    "baseUrls": [
      "https://www.example.com/hubspot"
    ]
  }
}'
{
  "createdAt": "2019-10-30T03:30:17.883Z",
  "updatedAt": "2019-11-30T03:30:17.883Z",
  "title": "PetSpot",
  "fetch": {
    "targetUrl": "https://www.example.com/hubspot/target",
    "objectTypes": [
      {
        "name": "contacts",
        "propertiesToSend": [
          "email",
          "firstname"
        ]
      }
    ]
  },
  "display": {
    "properties": [
      {
        "name": "pet_name",
        "label": "Pets Name",
        "dataType": "STRING"
      }
    ]
  },
  "actions": {
    "baseUrls": [
      "https://www.example.com/hubspot"
    ]
  }
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub無料ツール
Sales HubSales Hub無料ツール
Service HubService Hub無料ツール
Content HubContent Hub無料ツール

Authorizations

hapikey
string
query
required

Path Parameters

appId
integer
required

ターゲットアプリのID。

cardId
string
required

更新するカードのID。

Body

application/json

Card definition fields to be updated.

Body for a patch with optional fields

actions
object

Configuration for custom user actions on cards.

Example:
{
  "baseUrls": ["https://www.example.com/hubspot"]
}
display
object

Configuration for displayed info on a card

fetch
object

Variant of CardFetchBody with fields as optional for patches

title
string

このカードのトップレベルタイトル。CRM UIのユーザーに表示されます。

Response

successful operation

actions
object
required

Configuration for custom user actions on cards.

Example:
{
  "baseUrls": ["https://www.example.com/hubspot"]
}
auditHistory
object[]
required
display
object
required

Configuration for displayed info on a card

fetch
object
required
id
string
required
title
string
required
createdAt
string<date-time>
updatedAt
string<date-time>