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
