Skip to content

Delete Todo

Soft-deletes a todo. The record is marked as deleted but not permanently removed from the database.

Endpoint

DELETE /todo-service/v1/todos/{id}

Path Parameters

Parameter Type Required Description
id string Yes Unique identifier of the todo

Request

curl --location --request DELETE '{base_url}/todo-service/v1/todos/td-9f3a1bc2-4e5d-4f6a-8b7c-123456789abc' \
  --header 'Authorization: Bearer JWT_TOKEN'

Response

Success Response

Code: 204 No Content

No response body.

Error Response

Code: 404 Not Found

{
  "error": "Todo not found: td-9f3a1bc2-4e5d-4f6a-8b7c-123456789abc"
}