Troubleshooting

501 error when updating task status via API

1 min read

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 status).

Request format:

  • URL:
 PUT /v1/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}
  • Include all fields in the body, such as status, 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.

Was this article helpful?

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