Users

Change a user (JSON Merge Patch)

patch/users/{id}

Request

  • Base URL
    https://gorest.co.in/public/v3
  • URL
    https://gorest.co.in/public/v3/users/{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

emailstring email
namestring

Not blank; spaces at the ends are dropped.

status'active' | 'inactive'

Response

The changed user.

created_atstring date-time
emailstring email
idstring uuid required
namestring
read_onlyboolean

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

status'active' | 'inactive'
updated_atstring date-time

Example response

{
  "email": "aarav.sharma@example.com",
  "name": "Aarav Sharma"
}

Changes

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