Profile

Update profile or settings

Admin only. Any subset of fields; setting region also sets units unless given.

post/api/vega/profile

Request

  • Base URL: https://getmyluna.app
  • URL: https://getmyluna.app/api/vega/profile
  • Auth: one of:
    • HTTP bearer
    • API key in cookie luna_session

Request body

baby_namestring nullable
dobstring nullable

YYYY-MM-DD, not in the future, within 0-5 years. Setting it clears due_date.

due_datestring nullable

YYYY-MM-DD, up to 14 days ago to 10 months ahead. Only while there is no date of birth.

gender'girl' | 'boy' | 'female' | 'male' | 'other' | 'unknown' | 'prefer_not_to_say' | '' nullable
family_namestring nullable
timezonestring nullable

IANA zone, e.g. America/New_York.

region'uk' | 'us' nullable

Sets units to match unless units is given.

units'metric' | 'imperial' nullable

Response

Success

okboolean required
profileobject required

Changes

No recorded changes to this operation across all 1 revision of this API.