Posting commit status

Hello,

I am trying to post commit status in my bitbucket app. Unfortunately, all I get is

This endpoint does not support token-based authentication

I authenticate exactly the same way as I do for comments, putting a JWT token in the headers. I define them like this in python (which works for comments).

    headers = {
        'Authorization': "JWT {0}".format(jwt_token),
        'Content-Type': 'application/json'
    }

Any suggestion on how to solve this?

Thanks.