curl --request POST \
--url https://api.hubapi.com/marketing/v3/marketing-events/batch/archive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputs": [
{
"objectId": "<string>"
}
]
}
'{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}Supprime plusieurs événements marketing du portail en fonction de leur ID d’objet, s’ils existent.
Réponses : 204 : Renvoyé si tous les événements marketing spécifiés ont été supprimés avec succès. 207 : Renvoyé si certains ID d’objet ne correspondent à aucun événement marketing existant.
curl --request POST \
--url https://api.hubapi.com/marketing/v3/marketing-events/batch/archive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputs": [
{
"objectId": "<string>"
}
]
}
'{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
Show child attributes
La catégorie d'erreur
Un identifiant unique pour la demande. Incluez cette valeur dans tous les rapports d'erreur ou tickets d'assistance
"aeb5f871-7f07-4993-9211-075dc63e7cbf"
Un message lisible par la personne décrivant l'erreur ainsi que les étapes de remédiation appropriées, le cas échéant
"An error occurred"
Contexte concernant la condition d'erreur
Show child attributes
"{invalidPropertyName=[propertyValue], missingScopes=[scope1, scope2]}"
informations supplémentaires sur l'erreur
Show child attributes
Une carte des noms de liens vers les URI associés contenant la documentation sur l'erreur ou les étapes de remédiation recommandées
Show child attributes
Une catégorie spécifique qui contient des détails plus précis sur l'erreur