Set your display name, language and theme
const url = 'https://beta-api.plune.ai/v1/me';const options = { method: 'PATCH', headers: { cookie: 'plune_session=<plune_session>', 'Content-Type': 'application/json' }, body: '{"name":"Olena Kovalenko"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://beta-api.plune.ai/v1/me \ --header 'Content-Type: application/json' \ --cookie plune_session=<plune_session> \ --data '{ "name": "Olena Kovalenko" }'The Account page, «Your name» (api.ts → setMyName). The name is what every screen shows where a row names you — a case you wrote, a run you launched, a result you marked, the Members list — in place of your address; null clears it. The language (en, uk) and the theme (dark, light) of the dashboard are kept here too (#1016, api.ts → setMyPreferences), so another browser opens the way this one does: the dashboard reads them from GET /v1/me when you sign in, and sends one only when you chose it — null is «never chose», and the browser’s own preference stands in. Any of the three, and at least one; what the body does not name is left as it was. Session-only, as the tokens are: a leaked CLI token must not be able to rename you.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”What a person may say about themselves: any of name, locale and theme, and at least one. What the body does not name is left as it was; null takes a value back.
object
Trimmed; 1 to 100 characters, or null — the address stands in again.
The dashboard’s language, or null for «never chose» — the browser’s own preference stands in again.
The dashboard’s theme, or null for «never chose».
Examples
The display name
{ "name": "Olena Kovalenko"}The language and the theme, as the person chose them
{ "locale": "uk", "theme": "light"}Responses
Section titled “ Responses ”The signed-in user, as it is now
object
The display name (B8-team T3) — what every screen shows where a row names this person, in place of the address. null until given on the Account page.
The language the person chose for the dashboard (#1016), kept with the account so another browser opens in it. null until they choose one: the browser’s own preference stands in, and nothing is written on its behalf.
The theme the person chose for the dashboard (#1016), kept with the account like locale. null until they choose one.
What this account is allowed to be, e.g. user or owner. Open-ended: new roles appear without a client release.
Example
{ "userId": "u-shop", "role": "user", "name": "Olena Kovalenko", "locale": "uk", "theme": "light"}Not JSON, an empty body, a name that is empty or over 100 characters, or a language or a theme the dashboard does not offer
object
Example
{ "error": "validation failed — name: a name cannot be empty — send null to clear it"}No / invalid session
Session valid but the user no longer exists
object
Example generated
{ "error": "example"}Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over