Update the signed-in member
Changes the signed-in member’s name, language, country or time zone and
returns the same body as GET /me. Send only the fields to change; at
least one is required, none may be null, and any other field is
refused.
Country and time zone belong to the member’s user, so a change applies
in every company that user belongs to. A name change updates this
membership and the user’s shared profile; the user’s memberships in
other companies keep their own names. Because the shared profile
changes, a change to first_name or last_name is refused with 422
when any company the user belongs to has locked name changes. Sending
the current value back is not a change.
Only a member token can write. A member session JWT and a portal JWT can read but not write: the same JWTs travel in URLs (order and subscription email links, checkout links), so writes with them are refused with 403.
Authorizations
A member credential in the Authorization: Bearer header: a member
session JWT, a portal JWT whose login is linked to a membership in
that company, or a member token. The credential alone
identifies the member and company.
Body
The fields of the signed-in member to change. At least one is required.
display_name and avatar_upload_id are not accepted.
The member's first name. Must contain a visible character.
1 - 50\S"Dwight"
The member's last name. Must contain a visible character.
1 - 50\S"Schrute"
ISO 639 code of one of the company's active languages.
1"fr"
ISO 3166-1 alpha-2 country code.
^[A-Z]{2}$"FR"
IANA time zone identifier. Rails display names ("Eastern Time (US & Canada)") and UTC are refused; use Etc/UTC.
1"Europe/Paris"