curl --request POST \
--url https://api.hubapi.com/crm/objects/2026-03/{objectType}/batch/archive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputs": [
{
"id": "430001"
}
]
}
'This response has no body data.Archive a batch of objects by their unique IDs. This operation moves the specified objects to the recycling bin, effectively marking them as archived.
curl --request POST \
--url https://api.hubapi.com/crm/objects/2026-03/{objectType}/batch/archive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputs": [
{
"id": "430001"
}
]
}
'This response has no body data.Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
An array of SimplePublicObjectId objects, each containing an ID of a public object. This is used to specify the objects involved in the batch operation.
Show child attributes
Was this page helpful?