Facing issue with Contacts Archive batch API

Hey,
I’m using Contacts Archive batch API in postman and try to archive the contacts based on their ids. So in case of correct ids, it returns 204 code but when I tried with the wrong value of ids it returns me the same 204 status code. I think it should return an error like

id not found or not exist.

Can anyone suggest me on this? or It is the expected behavior from HubSpot.

Hey @SakshiChauhan,

This is an expected behavior.

As stated on the documentation: CRM API | Contacts,

This method will return a 204 No Content response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).

If you’d like to check if the contact id exist, you can use the GET crm/v3/objects/contacts/contactID endpoint. If the contact ID doesn’t exist, it’ll return a 404 error.