Passer au contenu principal
PATCH
/
webhooks
/
v3
/
{appId}
/
subscriptions
/
{subscriptionId}
Mettre à jour un abonnement à un événement
curl --request PATCH \
  --url 'https://api.hubapi.com/webhooks/v3/{appId}/subscriptions/{subscriptionId}?hapikey=' \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true
}'
{
  "active": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "eventType": "company.associationChange",
  "id": "<string>",
  "objectTypeId": "<string>",
  "propertyName": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}
Produits pris en charge
Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing HubPro
Sales HubSales HubPro
Service HubService HubPro
Content HubContent HubStarter

Autorisations

hapikey
string
query
requis

Paramètres de chemin

appId
integer<int32>
requis

L'ID de l'application.

subscriptionId
integer<int32>
requis

L'ID de l'abonnement à l'événement.

Corps

application/json

Updated details for the subscription.

active
boolean

Détermine si l'abonnement est actif ou en pause.

Réponse

successful operation

Complete details for an event subscription.

active
boolean
requis

Détermine si l'abonnement est actif ou en pause.

createdAt
string<date-time>
requis

Date de création de cet abonnement. Formaté en millisecondes depuis l'époque Unix.

eventType
enum<string>
requis

Type d'événement auxquels être attentifs : « create » « delete » « deletedForPrivacy » « propertyChange »

Options disponibles:
company.associationChange,
company.creation,
company.deletion,
company.merge,
company.propertyChange,
company.restore,
contact.associationChange,
contact.creation,
contact.deletion,
contact.merge,
contact.privacyDeletion,
contact.propertyChange,
contact.restore,
conversation.creation,
conversation.deletion,
conversation.newMessage,
conversation.privacyDeletion,
conversation.propertyChange,
deal.associationChange,
deal.creation,
deal.deletion,
deal.merge,
deal.propertyChange,
deal.restore,
line_item.associationChange,
line_item.creation,
line_item.deletion,
line_item.merge,
line_item.propertyChange,
line_item.restore,
object.associationChange,
object.creation,
object.deletion,
object.merge,
object.propertyChange,
object.restore,
product.creation,
product.deletion,
product.merge,
product.propertyChange,
product.restore,
ticket.associationChange,
ticket.creation,
ticket.deletion,
ticket.merge,
ticket.propertyChange,
ticket.restore
id
string
requis

L'identifiant unique de l'abonnement.

objectTypeId
string

L'identifiant du type d'objet associé à l'abonnement.

propertyName
string

Le nom interne de la propriété surveillée pour les changements. S'applique uniquement lorsque « eventType » est « propertyChange ».

updatedAt
string<date-time>

Quand cet abonnement a été mis à jour pour la dernière fois. Formaté en millisecondes depuis l'époque Unix.

Last modified on August 31, 2025