curl --request POST \
--url https://api.hubapi.com/contacts/v1/lists/{list_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"filters": [
[
{}
]
]
}
'{
"listId": 123,
"name": "<string>",
"dynamic": true,
"listType": "STATIC",
"portalId": 123,
"createdAt": 123,
"updatedAt": 123,
"internalListId": 123,
"deleteable": true,
"metaData": {
"processing": "<string>",
"size": 123,
"error": "<string>",
"lastProcessingStateChangeAt": 123,
"lastSizeChangeAt": 123
},
"filters": [
[
{}
]
]
}This endpoint is used to update a list in a given HubSpot account. Use case for this endpoint: If an external interface is used to build contact list filters, changes made there could be reflected in HubSpot via the update endpoint.
curl --request POST \
--url https://api.hubapi.com/contacts/v1/lists/{list_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"filters": [
[
{}
]
]
}
'{
"listId": 123,
"name": "<string>",
"dynamic": true,
"listType": "STATIC",
"portalId": 123,
"createdAt": 123,
"updatedAt": 123,
"internalListId": 123,
"deleteable": true,
"metaData": {
"processing": "<string>",
"size": 123,
"error": "<string>",
"lastProcessingStateChangeAt": 123,
"lastSizeChangeAt": 123
},
"filters": [
[
{}
]
]
}Unique identifier for the list that you're updating.
Successfully updated contact list
Was this page helpful?