palbaseDocs

Palbase Auth API · API

PATCH/auth/me

Update the signed-in user's profile

Changes the fields present in the body; an absent field is left as it is. Today only locale can be changed: a BCP 47 tag sets it (stored in canonical form), null or "" clears it. A body with no known field changes nothing and returns the current profile. Answers with the profile as stored.

Called by a signed-in user of your app, with their token and the publishable key.

Request body

localestring · optionalA BCP 47 language tag (stored in canonical form), or `null` / `""` to clear the preference.
curl
curl -X PATCH "https://<your-ref>.palbase.studio/auth/me" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"locale":"string"}'

Responses

200The profile after the change

400Validation failed or required field missing

401Missing, invalid, or expired credentials

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation UpdateMe of auth's contract.