Unarchive a user
Users
PATCH unarchive user(admin)
Endpoint
PATCH /api/v1/users/:id/unarchive
Request
Route
PATCH /api/v1/users/1911/unarchive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTEyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTU2LCJleHAiOjE3NDUwNTY5NTYsImp0aSI6ImFlMjg1MjUzLWRlZTQtNDYyOS1iM2VlLTEwOTZkZThiYTcwZSJ9.9RrxVsOw2kt8gA6C9YtPGulKLAz6NuD0RAYdtJ4Z2ME
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/"3bf9a0fbe77ce2142453e4aa793b32dd"
cache-control: max-age=0, private, must-revalidate
x-request-id: fa6ea3b3-b3b0-4498-9c67-ea314d45c472
x-runtime: 0.009008
content-length: 181
Body
{
"user": {
"id": 1911,
"email": "deidre.wolf+driver@example.com",
"first_name": "Deidre",
"last_name": "Wolf",
"phone_number": null,
"profile_id": null,
"referral_code": "730041",
"role": "driver"
}
}