HubSpot API can't create folder


#1

I’m attempting to use the HubSpot API to create a folder. Here’s what my Python code looks like:

import json, requests
auth_token = 'XXXXXXXXXXXXX'
folder_name = 'wriber_images'
headers = {"Authorization": "Bearer " + auth_token}
payload = json.dumps({'name': folder_name})
create_response = requests.post("https://api.hubapi.com/filemanager/api/v2/folders", data=payload, headers=headers)

This produces a 200 response. However, the folder is not created (after checking). And the response is actually empty. Is there a problem on my end or yours?