REST API update fields on Task not working

I have been to update a Task entity using restAPI without sucess…

using python request:

url = "{hosturl}/api/v1.1/entity/tasks/125156"

headers = {
    "Authorization": f"Bearer {token}",
    'Content-Type': 'application/json',
    'Accept': 'application/json',
}
payload = {
    "sg_status_list": "ip"
}
response = requests.put(url, headers=headers, json=payload)

Always getting error:
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url

Based on documentation link:

The format for the command is correct, so no idea why the endpoint is showing a bad request, the id for the task does exists

Any help will be appreciated since I can not find what is the issue.

Thank you

The code looks correct. Could you verify that the token and hosturl are indeed correctly formatted?

Yes, the url is correct

I can do GET with that url with success, I get the information of the current entity

Hello @kuri,
I tried that code snippet on my end and it works for me. Can you open a support ticket to allow us to review your issue?

I have already one open…