501 error when updating task status via API
1 min de lecture
If you encounter a 501 error ({"message":"must not be blank","code":501})
when trying to update the task status, it’s likely that you’re missing required fields.
Solution #
When updating a task using the PUT
method, make sure that all parameters are included in the body, even if you’re only updating one field (like le statut
).
Request format:
- URL:
PUT
/v1/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}
- Include all fields in the body, such as
le statut
,name
, etc. as required by the endpoint
Explanation: The PUT
method requires all parameters to be sent since it overwrites the existing task data. If you only send the status, the request will fail.
Cet article vous a-t-il été utile ?
Thank you! If you’d like a member of our support team to respond to you, please drop us a note at support@clockify.me