Skip to main content

Update a Todo

ENDPOINT
PUT https://api.codecoogs.com/v1/todos?id=
REQUEST BODY
{
"id": 1
"title": "Finalize teams for our members",
"deadline": "2024-02-20",
"completed": false
}

URL Parameters


id Required

A unique integer for the object.

Body Parameters


id integer

A unique integer for the object.


title string

The todo's title.


deadline string

The todo's deadline.


completed boolean

The todo's completion status.

Updating Todo Attributes

When updating an todo's information, if you prefer to keep certain attributes unchanged, simply include their current values in the request body. This ensures that only the desired attributes are modified, while retaining the existing values for those you wish to remain unchanged.

Returns

Returns a success status after successful todo update. This call returns a success status and an error message if something goes wrong.