Skip to content

Update the authenticated mother's own revisioned profile and address

PATCH
/mother/profile
curl --request PATCH \
--url https://example.com/mother/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "expectedProfileRevision": 1, "expectedAddressRevision": 1, "fullName": "example", "birthDate": "2026-04-15", "address": { "postalCode": "example", "roadAddress": "example", "detailAddress": "example" }, "consentAcceptances": [ { "policyKey": "example", "versionLabel": "example" } ] }'
Idempotency-Key
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
Media typeapplication/json
UpdateMotherProfileRequest
object
expectedProfileRevision
required
integer
>= 1
expectedAddressRevision
required
integer
>= 1
fullName
required
string
>= 1 characters <= 100 characters /\S/
birthDate
required
string format: date
address
required
object
postalCode
required
string
/^[0-9]{5}$/
roadAddress
required
string
>= 1 characters <= 300 characters /\S/
detailAddress
required
One of:
string
>= 1 characters <= 300 characters /\S/
key
additional properties
consentAcceptances
Array<object>
>= 1 items unique items
object
policyKey
required
string
>= 1 characters <= 120 characters /^[a-z][a-z0-9_.:-]*$/
versionLabel
required
string
>= 1 characters <= 120 characters /^[a-z0-9][a-z0-9_.:-]*$/
key
additional properties
key
additional properties

Exact replay returns the authoritative updated profile

Media typeapplication/json
object
motherAccountId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
motherProfileId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
accountLifecycle
required
string
Allowed values: active withdrawal_pending withdrawn
profileCompleteness
required
string
Allowed values: incomplete complete
profileRevision
required
integer
>= 1
addressRevision
required
integer
>= 1
fullName
required
string
>= 1 characters <= 100 characters /\S/
birthDate
required
string format: date
email
required
One of:
string format: email
<= 254 characters
primaryPhoneNumber
required
One of:
string
/^\+[1-9][0-9]{7,14}$/
address
required
object
postalCode
required
string
/^[0-9]{5}$/
roadAddress
required
string
>= 1 characters <= 300 characters /\S/
detailAddress
required
One of:
string
>= 1 characters <= 300 characters /\S/
key
additional properties
verifiedContacts
required
object
email
required
One of:
object
receiptId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
normalizedValue
required
string format: email
<= 254 characters
verifiedAt
required
string format: date-time
verificationAuthority
required
Allowed value: supabase_auth
key
additional properties
phone
required
One of:
object
receiptId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
normalizedValue
required
string
/^\+[1-9][0-9]{7,14}$/
verifiedAt
required
string format: date-time
verificationAuthority
required
Allowed value: supabase_auth
key
additional properties
key
additional properties
consentReceipts
required
Array<object>
object
consentReceiptId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
policyKey
required
string
>= 1 characters <= 120 characters /^[a-z][a-z0-9_.:-]*$/
versionLabel
required
string
>= 1 characters <= 120 characters /^[a-z0-9][a-z0-9_.:-]*$/
acceptedAt
required
string format: date-time
captureSource
required
Allowed value: explicit_mother_action
key
additional properties
ownershipRelationship
required
object
state
required
string
Allowed values: pending applied repair_required
relationshipReceiptId
required
One of:
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
appliedAt
required
One of:
string format: date-time
key
additional properties
allowedNextActions
required
Array<string>
unique items
Allowed values: verify_contact accept_current_consent complete_profile update_profile start_reservation request_withdrawal
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
idempotentReplay
required
boolean
idempotentReplay

Profile and address facts committed at new revisions

Media typeapplication/json
object
motherAccountId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
motherProfileId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
accountLifecycle
required
string
Allowed values: active withdrawal_pending withdrawn
profileCompleteness
required
string
Allowed values: incomplete complete
profileRevision
required
integer
>= 1
addressRevision
required
integer
>= 1
fullName
required
string
>= 1 characters <= 100 characters /\S/
birthDate
required
string format: date
email
required
One of:
string format: email
<= 254 characters
primaryPhoneNumber
required
One of:
string
/^\+[1-9][0-9]{7,14}$/
address
required
object
postalCode
required
string
/^[0-9]{5}$/
roadAddress
required
string
>= 1 characters <= 300 characters /\S/
detailAddress
required
One of:
string
>= 1 characters <= 300 characters /\S/
key
additional properties
verifiedContacts
required
object
email
required
One of:
object
receiptId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
normalizedValue
required
string format: email
<= 254 characters
verifiedAt
required
string format: date-time
verificationAuthority
required
Allowed value: supabase_auth
key
additional properties
phone
required
One of:
object
receiptId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
normalizedValue
required
string
/^\+[1-9][0-9]{7,14}$/
verifiedAt
required
string format: date-time
verificationAuthority
required
Allowed value: supabase_auth
key
additional properties
key
additional properties
consentReceipts
required
Array<object>
object
consentReceiptId
required
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
policyKey
required
string
>= 1 characters <= 120 characters /^[a-z][a-z0-9_.:-]*$/
versionLabel
required
string
>= 1 characters <= 120 characters /^[a-z0-9][a-z0-9_.:-]*$/
acceptedAt
required
string format: date-time
captureSource
required
Allowed value: explicit_mother_action
key
additional properties
ownershipRelationship
required
object
state
required
string
Allowed values: pending applied repair_required
relationshipReceiptId
required
One of:
string
>= 1 characters <= 255 characters /^\S(?:.*\S)?$/
appliedAt
required
One of:
string format: date-time
key
additional properties
allowedNextActions
required
Array<string>
unique items
Allowed values: verify_contact accept_current_consent complete_profile update_profile start_reservation request_withdrawal
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
idempotentReplay
required
boolean
idempotentReplay

A valid Supabase bearer session is required

Media typeapplication/json
One of:
object
status
required
Allowed value: 401
code
required
Allowed value: authentication_required
retryable
required
key
additional properties

Authenticated actor cannot update a mother profile

Media typeapplication/json
One of:
object
status
required
Allowed value: 401
code
required
Allowed value: authentication_required
retryable
required
key
additional properties

No own mother profile exists in the authenticated actor scope

Media typeapplication/json
One of:
object
status
required
Allowed value: 401
code
required
Allowed value: authentication_required
retryable
required
key
additional properties

Expected profile/address revision or idempotency facts conflict

Media typeapplication/json
One of:
object
status
required
Allowed value: 401
code
required
Allowed value: authentication_required
retryable
required
key
additional properties

Profile input is invalid, contact is unverified, or a consent version is not published

Media typeapplication/json
One of:
object
status
required
Allowed value: 401
code
required
Allowed value: authentication_required
retryable
required
key
additional properties

Mother profile update authority is unavailable

Media typeapplication/json
One of:
object
status
required
Allowed value: 401
code
required
Allowed value: authentication_required
retryable
required
key
additional properties