Users

Unarchive a user

PATCH unarchive user(admin)

Endpoint

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

Request

Route

PATCH /api/v1/users/1935/unarchive

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTM2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTQzLCJleHAiOjE3NTExMDg1NDMsImp0aSI6ImU2NzRlMWM5LWY1ZTUtNGE3Yi1iNDUzLTQ1MWEyMDczZWZmYiJ9.VSIJATjO9OtbXTh43Yiql6h1VpxC5Nq0b9rs95vjx6M
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/"f8fa0e74e035d7ac84a7e2f251730268"
cache-control: max-age=0, private, must-revalidate
x-request-id: 482b3f66-8782-41b9-aed3-9c1964a8fb20
x-runtime: 0.008916
content-length: 193

Body

{
  "user": {
    "id": 1935,
    "email": "virgilio.mitchell+driver@example.com",
    "first_name": "Virgilio",
    "last_name": "Mitchell",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "978935",
    "role": "driver"
  }
}