Archive a user
Users
PUT archive user(admin)
Endpoint
POST /api/v1/users/:id/archive
Request
Route
POST /api/v1/users/1868/archive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODY5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTk1LCJleHAiOjE3NDAxNDM1OTUsImp0aSI6IjU3YTI0YzExLWY3NzMtNGZlNy1hMGMwLTY5OWUxMWRkNGNhNiJ9.38icZRTsbuMGQqXikuyeZTYRZF6zYb8-xV1x5LBuB5Q
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/"a6aecd59895df648451e3463688026b3"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9f8391b7-c707-4ada-acd8-414f7b5d56dd
x-runtime: 0.010518
content-length: 191
Body
{
"user": {
"id": 1868,
"email": "claude.gulgowski+driver@example.com",
"first_name": "Claude",
"last_name": "Gulgowski",
"phone_number": null,
"profile_id": null,
"referral_code": "930291",
"role": "driver"
}
}