# REST API update fields on Task not working

**URL:** <https://community.shotgridsoftware.com/t/rest-api-update-fields-on-task-not-working/20461>\
**Category:** Pipeline Integrations\
**Tags:** rest-api\
**Created:** [October 10, 2025, 12:49am UTC](https://community.shotgridsoftware.com/t/rest-api-update-fields-on-task-not-working/20461 "2025-10-10T00:49:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuri](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kuri](https://community.shotgridsoftware.com/u/kuri)\
**Post date:** [October 10, 2025, 12:49am UTC](https://community.shotgridsoftware.com/t/rest-api-update-fields-on-task-not-working/20461/1 "2025-10-10T00:49:13Z")

</div>

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

using python request:

```auto
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:

> **[Flow Production Tracking REST API v1.x](https://developers.shotgridsoftware.com/rest-api/#update-an-existing-record)**

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

 ![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/0/06eebcbbf719f941e8d86ae0e8c7967d1c3536aa.png)

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

Thank you

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [October 10, 2025, 9:06am UTC](https://community.shotgridsoftware.com/t/rest-api-update-fields-on-task-not-working/20461/2 "2025-10-10T09:06:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kuri](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kuri](https://community.shotgridsoftware.com/u/kuri)\
**Post date:** [October 10, 2025, 3:09pm UTC](https://community.shotgridsoftware.com/t/rest-api-update-fields-on-task-not-working/20461/3 "2025-10-10T15:09:56Z")

</div>

Yes, the url is correct

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

---

<div class="post-metadata">

**Author:** ![daniel.sauve](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/daniel.sauve/32/4914_2.png) [@daniel.sauve](https://community.shotgridsoftware.com/u/daniel.sauve)\
**Post date:** [October 14, 2025, 1:31pm UTC](https://community.shotgridsoftware.com/t/rest-api-update-fields-on-task-not-working/20461/4 "2025-10-14T13:31:50Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![kuri](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kuri](https://community.shotgridsoftware.com/u/kuri)\
**Post date:** [October 14, 2025, 3:23pm UTC](https://community.shotgridsoftware.com/t/rest-api-update-fields-on-task-not-working/20461/5 "2025-10-14T15:23:02Z")

</div>

I have already one open…

> **[Autodesk - Account](https://manage.autodesk.com/support-cases/24880762)**
