Create Dependant
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
"2000-01-15"
User gender.
MALE, FEMALE, OTHER Relationship of a dependant to the primary user.
SELF, SPOUSE, MOTHER, FATHER, CHILD, FATHER_IN_LAW, MOTHER_IN_LAW, SIBLING Title or honorific for a person.
MR, MRS, MS, MASTER Response
Dependant created
"2000-01-15"
User gender.
MALE, FEMALE, OTHER 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"
Relationship of a dependant to the primary user.
SELF, SPOUSE, MOTHER, FATHER, CHILD, FATHER_IN_LAW, MOTHER_IN_LAW, SIBLING Title or honorific for a person.
MR, MRS, MS, MASTER Dependant row lifecycle status.
ACTIVE, DISCARDED