Loading

Report as inappropriate

Thanks for the sanity check and code repo. That helped me diagnose the problem. I troubleshot using a flavor of your python, then went back to POSTMAN to imitate and it worked. Basically, I needed to have POSTMAN send "raw" JSON vs form data or encoded.

For the simplest of Python example that posts a new thing for any who wonder....

import requests
import json

url = "https://api.thingiverse.com/things/"

payload={
    "name": "Test Thing",
    "license": "cc-nc",
    "category": "Automotive"
}

headers = {
  'Authorization': 'Bearer YOUR_SECRET_BEARER_TOKEN_HERE'
}

response = requests.post(
url,
headers=headers, 
data=json.dumps(payload)
)

print(response.text)