Zum Hauptinhalt springen
PATCH
/
media-bridge
/
v1
/
{appId}
/
schemas
/
{objectType}
Mettre à jour le schéma d'un type d'objet
curl --request PATCH \
  --url https://api.hubapi.com/media-bridge/v1/{appId}/schemas/{objectType} \
  --header 'Content-Type: application/json' \
  --data '{
  "secondaryDisplayProperties": [
    "<string>"
  ],
  "requiredProperties": [
    "<string>"
  ],
  "searchableProperties": [
    "<string>"
  ],
  "clearDescription": true,
  "primaryDisplayProperty": "<string>",
  "description": "<string>",
  "allowsSensitiveProperties": true,
  "restorable": true,
  "labels": {
    "plural": "<string>",
    "singular": "<string>"
  }
}'
{
  "secondaryDisplayProperties": [
    "<string>"
  ],
  "objectTypeId": "<string>",
  "description": "<string>",
  "allowsSensitiveProperties": true,
  "fullyQualifiedName": "<string>",
  "labels": {
    "plural": "<string>",
    "singular": "<string>"
  },
  "archived": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "requiredProperties": [
    "<string>"
  ],
  "searchableProperties": [
    "<string>"
  ],
  "portalId": 123,
  "primaryDisplayProperty": "<string>",
  "name": "<string>",
  "id": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}
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

appId
string
required
objectType
string
required

Body

application/json
clearDescription
boolean
required
secondaryDisplayProperties
string[]
requiredProperties
string[]
searchableProperties
string[]
primaryDisplayProperty
string
description
string
allowsSensitiveProperties
boolean
restorable
boolean
labels
object

Response

successful operation

secondaryDisplayProperties
string[]
required
objectTypeId
string
required
allowsSensitiveProperties
boolean
required
fullyQualifiedName
string
required
labels
object
required
archived
boolean
required
requiredProperties
string[]
required
searchableProperties
string[]
required
name
string
required
id
string
required
description
string
createdAt
string<date-time>
portalId
integer
primaryDisplayProperty
string
updatedAt
string<date-time>
I