Unarchive a user
Users
PATCH unarchive user(admin)
Endpoint
PATCH /api/v1/users/:id/unarchive
Request
Route
PATCH /api/v1/users/1942/unarchive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTQzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjMyLCJleHAiOjE3NTU4NTgyMzIsImp0aSI6IjE1MDZlYzFiLTYwOGUtNDg0Mi04YWUwLWJiYTIxYjY4NTY5ZCJ9.Qj4HtS8AXGH-0zREkYVTJv6hlVEjKFh4jEaN0EKBXtI
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/"ac7ecbfbb124af30a36e157c11ef19b8"
cache-control: max-age=0, private, must-revalidate
x-request-id: e53e5657-ae98-4774-8ff6-f9ebce1fb62d
x-runtime: 0.022051
content-length: 191
Body
{
"user": {
"id": 1942,
"email": "bradley.schaefer+driver@example.com",
"first_name": "Bradley",
"last_name": "Schaefer",
"phone_number": null,
"profile_id": null,
"referral_code": "198555",
"role": "driver"
}
}