Users

Unarchive a user

PATCH unarchive user(admin)

Endpoint

PATCH /api/v1/users/:id/unarchive

Request

Route

PATCH /api/v1/users/1993/unarchive

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTk0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE2LCJleHAiOjE3NjYyMTg0MTYsImp0aSI6ImI2MGU2MDhlLTBmMDEtNDc1Yi04ZDdkLTBlMmY5OGZkNzhkOSJ9.XjT_fXpGYv1jCDx1kxI5wj7XyhRN44_Qb-8OYjSF4kw
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/"8f0673c9f48766dae61e1f052d807791"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9b477474-e2c5-4541-a342-19344d0ffca1
x-runtime: 0.008562
content-length: 209

Body

{
  "user": {
    "id": 1993,
    "email": "jennie.jast+driver@example.com",
    "financial_company_id": null,
    "first_name": "Jennie",
    "last_name": "Jast",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "497424",
    "role": "driver"
  }
}