Passer au contenu principal
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}?hapikey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "actions": {
    "baseUrls": [
      "https://www.example.com/hubspot"
    ]
  },
  "display": {
    "properties": [
      {
        "dataType": "STRING",
        "label": "Pets Name",
        "name": "pet_name"
      }
    ]
  },
  "fetch": {
    "objectTypes": [
      {
        "name": "contacts",
        "propertiesToSend": [
          "email",
          "firstname"
        ]
      }
    ],
    "targetUrl": "https://www.example.com/hubspot/target"
  },
  "title": "PetSpot"
}
'
{
  "actions": {
    "baseUrls": [
      "https://www.example.com/hubspot"
    ]
  },
  "createdAt": "2019-10-30T03:30:17.883Z",
  "display": {
    "properties": [
      {
        "dataType": "STRING",
        "label": "Pets Name",
        "name": "pet_name"
      }
    ]
  },
  "fetch": {
    "objectTypes": [
      {
        "name": "contacts",
        "propertiesToSend": [
          "email",
          "firstname"
        ]
      }
    ],
    "targetUrl": "https://www.example.com/hubspot/target"
  },
  "title": "PetSpot",
  "updatedAt": "2019-11-30T03:30:17.883Z"
}
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

Autorisations

hapikey
string
query
requis

Paramètres de chemin

appId
integer<int32>
requis

L'ID de l'application cible.

cardId
string
requis

L'ID de la carte à mettre à jour.

Corps

application/json

Card definition fields to be updated.

Body for a patch with optional fields

actions
object

Configuration for custom user actions on cards.

Exemple:
{
"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

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

Réponse

successful operation

actions
object
requis

Configuration for custom user actions on cards.

Exemple:
{
"baseUrls": ["https://www.example.com/hubspot"]
}
auditHistory
object[]
requis

Une liste des actions effectuées sur la carte, y compris la création, la suppression et les mises à jour.

display
object
requis

Configuration for displayed info on a card

fetch
object
requis
id
string
requis

L'ID unique de la carte.

title
string
requis

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

createdAt
string<date-time>

La date et l'heure de création de la carte.

updatedAt
string<date-time>

La date et heure de la dernière mise à jour de la carte.

Last modified on August 31, 2025