APIs & Integrations

Anonymous
Not applicable

Delete rows not working

SOLVE

https://api.hubapi.com/cms/v3/hubdb/tables/my_tableID/rows/draft/batch/purge/?hapikey=my_apiKey

 

{ "inputs": [ "myIdsmyidsmyids" ] }

 

I get the following error: {"status":"error","message":"resource not found","correlationId":"30e0e94c-7b2d-4ce2-ad84-e98e8d563123"}

 

I double checked my table id and it is correct. Not sure what I'm doing wrong?

0 Upvotes
1 Accepted solution
LMeert
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Delete rows not working

SOLVE

Hi @Anonymous,

I think your JSON body might be wrong and the correct syntax should be :

{ "inputs" : [ "myId1", "myId2", "myId3"] }

Adding quotes between each id for each row you want to delete.

 

Hope this helps !
If it does, please consider marking this answer as a solution 🙂

 

Best,

Ludwig

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

View solution in original post

0 Upvotes
3 Replies 3
Anonymous
Not applicable

Delete rows not working

SOLVE

That did it! thank you

0 Upvotes
LMeert
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Delete rows not working

SOLVE

Hi @Anonymous,

I think your JSON body might be wrong and the correct syntax should be :

{ "inputs" : [ "myId1", "myId2", "myId3"] }

Adding quotes between each id for each row you want to delete.

 

Hope this helps !
If it does, please consider marking this answer as a solution 🙂

 

Best,

Ludwig

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Delete rows not working

SOLVE

Hi, @Anonymous 👋 Thanks for reaching out. Let's see if we can get the conversation going — @LMeert @Sjardo, do you have any experience here?

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot