Tasks

Change a task (JSON Merge Patch)

patch/tasks/{id}

Request

  • Base URL
    https://gorest.co.in/public/v3
  • URL
    https://gorest.co.in/public/v3/tasks/{id}
  • Auth
    HTTP bearer

Headers

If-Matchstring

The strong ETag the change is based on, from a read without include or from the last write; when the item changed since, the answer is 412. A weak ETag never matches.

Prefer'return=minimal' | 'return=representation'

return=minimal for an answer with no body, return=representation (the default) for the full item (RFC 7240).

Request body

descriptionstring
due_onstring date nullable

A date, or null for none.

priority'low' | 'medium' | 'high' | 'urgent'
status'todo' | 'in_progress' | 'done'
titlestring

Not blank; spaces at the ends are dropped.

user_idstring uuid nullable

A user you can see, or null for nobody.

Response

The changed task.

created_atstring date-time
descriptionstring
due_onstring date nullable
idstring uuid required
priority'low' | 'medium' | 'high' | 'urgent'
read_onlyboolean

True for sample data (the seed); it cannot be changed.

status'todo' | 'in_progress' | 'done'
titlestring
updated_atstring date-time
user_idstring uuid nullable

Who the task is for; null when nobody.

Example response

{
  "due_on": "2026-11-15",
  "title": "Add paging to the orders list",
  "user": {
    "email": "aarav.sharma@example.com",
    "name": "Aarav Sharma"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.