Archive a user
Users
PATCH archive user(admin)
Endpoint
PATCH /api/v1/users/:id/archive
Request
Route
PATCH /api/v1/users/1930/archive
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTMxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjMxLCJleHAiOjE3NTU4NTgyMzEsImp0aSI6IjAwZWI0NTgzLTQ2MjQtNDQ1NS05NzM2LWVkNDY2Y2U0NDBiMiJ9.NzQDObI44B724pPqkdUEvLeCUKHUu1j1IXV8pNZZtBc
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/"84448e94bde531da5e6f9fdbb98630a6"
cache-control: max-age=0, private, must-revalidate
x-request-id: 12a808b0-5372-4129-936e-810ee9b440a2
x-runtime: 0.015201
content-length: 185
Body
{
"user": {
"id": 1930,
"email": "everett.boyer+driver@example.com",
"first_name": "Everett",
"last_name": "Boyer",
"phone_number": null,
"profile_id": null,
"referral_code": "831677",
"role": "driver"
}
}