Skip to content

Update the per-field self-edit gates (admin)

PATCH
/admin/system/users

Operator writes the five boolean flags. The handler upserts each users.allow_self_edit.* system_config row and invokes users.Handler.InvalidateSelfEditGates so every instance’s cache picks up the new values on the next read. Requires system.config.write OR system.admin.

Per-field self-edit gates. Each flag controls whether users may edit that field on their own profile. Operators set these via PATCH /admin/system/users; users read them via GET /account/selfedit-gates to render disabled inputs. Missing system_config rows default to true (fail-open).

object
display_name
required
boolean
bio
required
boolean
avatar_url
required
boolean
location
required
boolean
website_url
required
boolean

Updated gate snapshot.

Per-field self-edit gates. Each flag controls whether users may edit that field on their own profile. Operators set these via PATCH /admin/system/users; users read them via GET /account/selfedit-gates to render disabled inputs. Missing system_config rows default to true (fail-open).

object
display_name
required
boolean
bio
required
boolean
avatar_url
required
boolean
location
required
boolean
website_url
required
boolean

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}

Authenticated but missing required capabilities

object
error
required

Human-readable error summary

string
Example
the request could not be completed