Archive a user
Users
PATCH archive user(admin)
Endpoint
PATCH /api/v1/users/:id/archive
Request
Route
PATCH /api/v1/users/1899/archive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTAwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTU2LCJleHAiOjE3NDUwNTY5NTYsImp0aSI6IjNhYWU0YmI2LWQxNDQtNDY4ZC05OGFiLWE5MTkzMzRiYWI1ZSJ9.ikXLMEKyAV1zn9Z860IHSTQDGn-UuBX-qejAJr15jJU
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/"12eb883e023c78fdf1f40ae4393c12c0"
cache-control: max-age=0, private, must-revalidate
x-request-id: 01271970-cf7b-4658-b556-01f9c63395d8
x-runtime: 0.013099
content-length: 189
Body
{
"user": {
"id": 1899,
"email": "merrill.farrell+driver@example.com",
"first_name": "Merrill",
"last_name": "Farrell",
"phone_number": null,
"profile_id": null,
"referral_code": "143628",
"role": "driver"
}
}