Archive a user
Users
PATCH archive user(admin)
Endpoint
PATCH /api/v1/users/:id/archive
Request
Route
PATCH /api/v1/users/1909/archive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTEwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDgxLCJleHAiOjE3NjM1NDI0ODEsImp0aSI6ImVkZDEwMGI3LTI5ODYtNGNkMC1iNTM1LTczM2JlNzkzYmNjNyJ9.BI2ykfUntYuRzVwqJmja9ysPXrzwjr9bi_GyZtR9pE8
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/"ec5559d3ffccf017bbbefe9c47997c05"
cache-control: max-age=0, private, must-revalidate
x-request-id: e6803bf9-f42d-45f6-a953-fcb736feb14d
x-runtime: 0.013748
content-length: 187
Body
{
"user": {
"id": 1909,
"email": "george.pollich+driver@example.com",
"first_name": "George",
"last_name": "Pollich",
"phone_number": null,
"profile_id": null,
"referral_code": "417207",
"role": "driver"
}
}