Create user profile
Creates the signed-in person's profile, or updates it when one exists. Fields the body omits are left as they are. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and refuses the request with 401 without a valid one. The acting person is the token's subject: userId is set from it and any userId sent in the body is ignored.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Request Body
firstNamestring · requiredlastNamestring · required
emailstring · emailOptional contact email on the profile. It is not verified.
authProviderstringIdentity provider that authenticated the person (for example
faithnet).authIssuerstring · uriOIDC issuer URL the person's id was issued by.
Responses
The profile as stored
profileobject · required
Update user profile
Updates first_name and last_name on the profiles table. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and refuses the request with 401 without a valid one. The acting person is the token's subject: userId is set from it and any userId sent in the body is ignored.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Request Body
firstNamestring · requiredlastNamestring · required
emailstring · emailOptional contact email on the profile.
Responses
Profile updated
okboolean
