Zum Hauptinhalt springen
PATCH
/
crm
/
v3
/
extensions
/
cards-dev
/
{appId}
/
{cardId}
Mettre à jour une carte
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"
    ]
  }
}
Produits pris en charge
Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing HubGratuit
Sales HubSales HubGratuit
Service HubService HubGratuit
Content HubContent HubGratuit

Authorizations

hapikey
string
query
required

Path Parameters

cardId
string
required

L'ID de la carte à mettre à jour.

appId
integer
required

L'ID de l'application cible.

Body

application/json

Card definition fields to be updated.

Body for a patch with optional fields

fetch
object

Variant of CardFetchBody with fields as optional for patches

display
object

Configuration for displayed info on a card

title
string

Le titre de niveau supérieur pour cette carte. Affiché aux utilisateurs dans l'interface CRM.

Example:

"PetSpot"

actions
object

Configuration for custom user actions on cards.

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

Response

successful operation

fetch
object
required
display
object
required

Configuration for displayed info on a card

id
string
required
title
string
required
actions
object
required

Configuration for custom user actions on cards.

Example:
{
"baseUrls": ["https://www.example.com/hubspot"]
}
auditHistory
object[]
required
createdAt
string<date-time>
updatedAt
string<date-time>
I