Archive a user
Users
PATCH archive user(admin)
Endpoint
PATCH /api/v1/users/:id/archive
Request
Route
PATCH /api/v1/users/1981/archive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTgyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE2LCJleHAiOjE3NjYyMTg0MTYsImp0aSI6ImQ2MjFmMjg5LTE5YjItNDRmZC05MDIwLTE1YjdlOThjMDJhMCJ9.6o1S53Z8kQXZOGcGcDkdVgbw-82WqN17zixtHuzuCvg
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/"bbca03bfc1d89b36f389be4794333f88"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0ea7b3ea-bbc0-4516-9571-48b53e1a7fd9
x-runtime: 0.008427
content-length: 213
Body
{
"user": {
"id": 1981,
"email": "keven.quitzon+driver@example.com",
"financial_company_id": null,
"first_name": "Keven",
"last_name": "Quitzon",
"phone_number": null,
"profile_id": null,
"referral_code": "947927",
"role": "driver"
}
}