platform-admin

Update Profile

The person/principal profile write path (migration 0143): "every user should have a full profile ... first name, name that they go by ... birthday ... email address, telephone number" (Frederick, 2026-08-09).

SELF-SERVICE PLUS ADMIN, reusing the existing admin grant rather than inventing one: a caller may PATCH their OWN profile (principal_id == principal.id) with no extra grant needed -- everyone has a profile and everyone must be ABLE to complete it, since Today (platform/routes.py's profile_completion hook) will not stop asking otherwise -- or, holding 'admin:people:write' (the SAME grant PEOPLE_WRITE above already requires for every other principal edit), any principal's. Anyone else is refused with 403 before any read of the body even happens.

Deliberately gated on auth.current_principal, not PEOPLE_WRITE: this route's whole point is that a person with NO admin grant at all can still fill in their own birthday, phone and emergency contact.

patch/api/platform/principals/{principal_id}/profile

Request

  • Base URL
    https://api.pigeonly.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

principal_id, string uuid required

Request body

UpdateProfileRequest required

The self-service / admin profile editor's body (migration 0143) -- every field in registry.PROFILE_FIELDS, all optional so a caller only ever sends what changed. Deliberately excludes display_name (the full/legal name) and is_active: those stay on UpdatePrincipalRequest/ PEOPLE_WRITE above -- legal-name changes and offboarding are an admin action, not a self-service one, by design (see update_profile's own docstring).

email, string nullable
first_name, string nullable
last_name, string nullable
preferred_name, string nullable
birth_month, integer nullable
birth_day, integer nullable
cell_phone, string nullable
emergency_contact_name, string nullable
emergency_contact_relationship, string nullable
emergency_contact_phone, string nullable
work_location, string nullable
work_state, string nullable
work_country, string nullable
timezone, string nullable
tshirt_size, string nullable
dietary_restrictions, string nullable
no_dietary_restrictions, boolean nullable
start_date, string date nullable
slack_handle, string nullable
job_title, string nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 251 revisions of this API.