Update User
Authorizations
JWT bearer token. App-user tokens are issued by POST /auth/token (the partner backend calls it as its platform service account); admin and dashboard tokens are issued via OIDC login.
Path Parameters
User ID
Body
A user-submitted address as captured: either the structured form, a single
free-text string, or both (the original text plus whatever was structured
from it). #[serde(untagged)] keeps the wire shape natural — a bare object
or a bare string — so existing structured clients are unaffected.
raw is Secret because a free-text address is PII (it embeds the same
data masked elsewhere as line1 / pincode).
"2000-01-15"
User gender.
MALE, FEMALE, OTHER Response
User updated
User creation timestamp.
"2026-01-15T12:34:56"
Last user update timestamp.
"2026-01-15T12:34:56"
User lifecycle status.
ONBOARDING, ACTIVE, DEACTIVATED A validated 12-digit numeric user identifier.
Every external entry point validates:
- JSON
Deserializeruns [UserId::parse] (outer whitespace trimmed, length and digit-only enforced) via#[serde(try_from = "String")]. - DB
FromSqlruns [UserId::parse] on every row read.
Display / Deref<Target = str> / AsRef<str> / Into<String> are
derived via derive_more — the inner String is pass-through for
every read-only borrow, display, and move-out.
"012345678901"
A user-submitted address as captured: either the structured form, a single
free-text string, or both (the original text plus whatever was structured
from it). #[serde(untagged)] keeps the wire shape natural — a bare object
or a bare string — so existing structured clients are unaffected.
raw is Secret because a free-text address is PII (it embeds the same
data masked elsewhere as line1 / pincode).
Date of birth as "YYYY-MM-DD".
"2000-01-15"
User gender.
MALE, FEMALE, OTHER