Users

Archive a user

PATCH archive user(admin)

Endpoint

PATCH /api/v1/users/:id/archive

Request

Route

PATCH /api/v1/users/1923/archive

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTI0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTQyLCJleHAiOjE3NTExMDg1NDIsImp0aSI6IjBmYjJhNmRhLTJhNjgtNDc0Ni1hYjNkLTdlYTY5NWYxNWU3YiJ9.DnPD5oiXvfLERssijq4GK6ohDFIy2w7YJnJYTUtDlhg
Host: example.org
Cookie: 

Body

{
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"90ccb39f62e7164bdfcbcef4a3644efa"
cache-control: max-age=0, private, must-revalidate
x-request-id: df98f620-4bab-40a7-9a18-4cc815e35f09
x-runtime: 0.010837
content-length: 185

Body

{
  "user": {
    "id": 1923,
    "email": "lucille.jones+driver@example.com",
    "first_name": "Lucille",
    "last_name": "Jones",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "960964",
    "role": "driver"
  }
}