Skip to content

docs(API): clarify locale_ids vs default_locale_codes in PATCH member docs - #1264

Merged
Sven Dunemann (forelabs) merged 1 commit into
mainfrom
agent/STRINGS-3040-be81b5
Sep 14, 2026
Merged

Sven Dunemann (forelabs) merged 1 commit into
mainfrom
agent/STRINGS-3040-be81b5

Conversation

@junior-ai-bot

@junior-ai-bot junior-ai-bot Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

What changed

PATCH /accounts/{account_id}/members/{id} docs did not distinguish locale_ids (project-scoped) from default_locale_codes (account-level). Both fields had near-identical wording in the request body schema, and the endpoint-level description only mentioned locale_ids, making it easy to mistake it for the account-wide option.

  • locale_ids: now states it is project-scoped and must be paired with project_ids (and strategy) to take effect.
  • default_locale_codes: now states it is the account-level field corresponding to "Language access" in the translator profile UI, applied across all of the user's projects.
  • Endpoint description now points to default_locale_codes for account-wide language access.

Why

An agent session used locale_ids alone to try to grant account-wide language access, then incorrectly reported the permission as "granted at account level." Nothing in the spec surfaced the project-scoped vs. account-level distinction.

How to test

  • npx swagger-cli validate main.yaml — passes.
  • make bundle regenerated doc/compiled.json to reflect the updated descriptions (tmp/compiled.yaml is gitignored build output).
  • bash ./lint.sh — no validation errors.
  • Docs-only change; no source/test files touched.

…codes (account-level) in PATCH member docs

The request body schema for PATCH /accounts/{account_id}/members/{id}
described locale_ids and default_locale_codes with near-identical
wording, and the endpoint description only mentioned locale_ids. This
made it easy to assume locale_ids grants account-wide language access,
when it is actually project-scoped and only takes effect alongside
project_ids/strategy. default_locale_codes is the account-level field
("Language access" in the translator profile UI) that applies across
all of the user's projects.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

Doc-only edits (descriptions, examples) do not appear here.

No changes to report, but the specs are different.
Run 'oasdiff diff' to see structural differences.

@forelabs Sven Dunemann (forelabs) changed the title STRINGS-3040 - clarify locale_ids vs default_locale_codes in PATCH member docs docs(API): clarify locale_ids vs default_locale_codes in PATCH member docs Sep 14, 2026
@forelabs
Sven Dunemann (forelabs) merged commit 1228e48 into main Sep 14, 2026
19 of 22 checks passed
@forelabs
Sven Dunemann (forelabs) deleted the agent/STRINGS-3040-be81b5 branch September 14, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant