Skip to Content
dropshelf
REST API

Disable or re-enable a user

Admin only. On the control plane a disabled user's sessions stop at once on the replica that handled this call and within 30 seconds on the others, which is how long each caches a user row; on drop hosts they stop within 30 seconds too, and a cookie issued before the disable stays refused after a re-enable. Their tokens stop at once everywhere, because a bearer token reads the user row on every request. An admin cannot disable themselves, and the last enabled admin cannot be disabled by anyone.

PATCH
/api/v1/admin/users/{id}

Admin only. On the control plane a disabled user's sessions stop at once on the replica that handled this call and within 30 seconds on the others, which is how long each caches a user row; on drop hosts they stop within 30 seconds too, and a cookie issued before the disable stays refused after a re-enable. Their tokens stop at once everywhere, because a bearer token reads the user row on every request. An admin cannot disable themselves, and the last enabled admin cannot be disabled by anyone.

Authorization

headerAuthorizationBearer <token>

A personal access token, odp_ followed by 43 characters. Create one in the dashboard.

Path Parameters

id*string

The user id, as it appears in a drop's owner.

Request Body

The changes.

application/json
  1. body
disabled*boolean

Response Body

The user.

application/json
  1. response
admin*boolean
createdAt*string
Formatdate-time
disabledAt*|

null when the user is active.

Formatdate-time
email*string
id*string

ULID.

lastLoginAt*string
Formatdate-time
name*string
stats*
Example Request
curl -X PATCH 'https://drop.example.com/api/v1/admin/users/string' \  -H 'Content-Type: application/json' \  -d '{  "disabled": true}'
Example Response
{  "admin": true,  "createdAt": "2019-08-24T14:15:22Z",  "disabledAt": "2019-08-24T14:15:22Z",  "email": "string",  "id": "string",  "lastLoginAt": "2019-08-24T14:15:22Z",  "name": "string",  "stats": {    "drops": 0,    "liveBytes": 0  }}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.