Hi,
when I try change task status by api I receive error message:
{"message":"must not be blank","code":501}
I’m using python to connect and this is how my code look:
import csv
import json
import requests
token = "token"
url = "https://api.clockify.me/api/v1/"
project_id = "id"
headers = {
"X-Api-Key": token
}
data = {
'status': 'DONE',
}
response = requests.put(
f'{url}/workspaces/workspaceid/projects/{project_id}/tasks/taskid',
json=data,
headers=headers
)
print(response.text)
What I do wrong?