PATCH
/
crm
/
v3
/
extensions
/
cards-dev
/
{appId}
/
{cardId}
Update a card
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"
    ]
  }
}
Supported products
Requires one of the following products or higher.
Marketing HubMarketing HubFree
Sales HubSales HubFree
Service HubService HubFree
Content HubContent HubFree

Authorizations

hapikey
string
query
required

Path Parameters

cardId
string
required

The ID of the card to update.

appId
integer
required

The ID of the target app.

Body

application/json

Card definition fields to be updated.

Body for a patch with optional fields

Response

200
application/json

successful operation

The response is of type object.