What's the correct `content-type` when editing posts?

You need to send the Api-Key and Api-Username as their own headers, not in the Authorization header. Something like this should work better:

header = CaseInsensitiveDict()
header["Api-Key"] = 'longapikey'
header["Api-Username"] = 'myusername'

This looks like the same issue as your previous topic:

2 Likes