APIs & Integrations

Not applicable

Delete File API is not returning valid JSON

https://developers.hubspot.com/docs/methods/files/hard_delete_file_and_associated_objects states that the response is json but I am not getting back valid JSON.

I POST to https://api.hubapi.com/filemanager/api/v2/files/12304/full-delete and get a response body of “false”

This breaks my response parser which is expecting JSON. I’ll have to work around it but thought you should be aware.

0 Upvotes
4 Replies 4
Not applicable

Delete File API is not returning valid JSON

@Derek_Gervais Thanks!

Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Delete File API is not returning valid JSON

Hi @Anton_Litvinenko and @homerlex,

This issue has been resolved; the endpoint should now be returning valid JSON.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Delete File API is not returning valid JSON

Hi @homerlex,

I can reproduce this on my end; let me touch base with product regarding this. I’ll post any updates here.

0 Upvotes
Not applicable

Delete File API is not returning valid JSON

@Derek_Gervais any news about the fix?

0 Upvotes