Jan 28, 2023 6:30 AM
Hi,
I trying to use differents files API.
I always have the same issue trying to upload files using /files/v3/files (bad request 400) so I got back to basics with
files/v3/folders/{folderPaht}
This last try works well from the hubspot test API tools but when I run it from postman, 400 again. It is a really simple call and I've got exatcly the sames parameters.
turning cray, any help would be great 🙂
Jan 30, 2023 4:47 PM
Hi, @Fredito 👋 Can you share any additional details? Sharing how your requests are set up is one easy way to give the community more to work with.
Best,
Jaycee
Jan 31, 2023 9:32 AM
thx @Jaycee_Lewis
so here are some details :
this
curl --request GET \
--url https://api.hubapi.com/files/v3/folders/uploadedfiles \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN'
works fine in the api developpement documenation tool and send this response :
HTTP 200
{
"id": "60289114066",
"createdAt": "2023-01-23T14:26:00.493Z",
"updatedAt": "2023-01-23T14:26:00.616Z",
"archived": false,
"name": "uploadedfiles",
"path": "/uploadedfiles"
}
When I try to make exactly the same in Postman