Zum Hauptinhalt springen
POST
/
crm
/
v3
/
extensions
/
cards-dev
/
{appId}
Eine neue Karte erstellen
curl --request POST \
  --url https://api.hubapi.com/crm/v3/extensions/cards-dev/{appId} \
  --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": "Pet's Name",
        "dataType": "STRING"
      }
    ]
  },
  "actions": {
    "baseUrls": [
      "https://www.example.com/hubspot"
    ]
  }
}
Unterstützte Produkte
Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing HubKostenlos
Sales HubSales HubKostenlos
Service HubService HubKostenlos
Content HubContent HubKostenlos

Authorizations

hapikey
string
query
required

Path Parameters

appId
integer
required

Die ID der Ziel-App.

Body

application/json

The new card definition.

State of card definition to be created

fetch
object
required

Configuration for this card's data fetch request.

display
object
required

Configuration for displayed info on a card

title
string
required

Der Top-Level-Titel für diese Karte. Wird den Benutzern in der CRM-UI angezeigt.

Example:

"PetSpot"

actions
object
required

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