Unarchive a user
Users
PATCH unarchive user(admin)
Endpoint
PATCH /api/v1/users/:id/unarchive
Request
Route
PATCH /api/v1/users/1921/unarchive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTIyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDgxLCJleHAiOjE3NjM1NDI0ODEsImp0aSI6ImI5ZDY4NWU1LTk1Y2MtNDE4OS04NTFjLTIzNGY4ODY5NTUwNCJ9.YOg68Fo2Pxn5K-axfhDUxV44vLYkoxtqAthSr5F5EOg
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/"ccb6187118f22151f793a2ffdd7fe908"
cache-control: max-age=0, private, must-revalidate
x-request-id: c9bb149e-b4f0-43ff-92de-0e72f94d65a3
x-runtime: 0.009901
content-length: 181
Body
{
"user": {
"id": 1921,
"email": "eugene.bode+driver@example.com",
"first_name": "Eugene",
"last_name": "Bode",
"phone_number": null,
"profile_id": null,
"referral_code": "412041",
"role": "driver"
}
}