Update a segment

Updates shared metadata using JSON merge-patch. Changes affect every key of the segment. Omitted fields remain unchanged; null clears description or AI context, and an empty label_ids array clears labels. Plural changes must be supported by every active file format; becoming singular retains current OTHER-form texts and removes all other current plural forms across all languages. Supports optional If-Match. Requires stack-level segment management permission.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^seg_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Public identifier of the shared segment.

Body Params

Request body to partially update shared segment metadata. Omitted fields remain unchanged; nullable strings may be cleared. Changes affect every key of the segment.

string | null

Shared translator-facing description; null clears it.

string | null

Context for AI translation; null clears it.

boolean

Whether this shared segment is excluded from translation. Attribution and reason are derived by the server.

boolean

Whether the segment uses plural forms. Every active file format must support the change. Becoming singular retains current OTHER-form texts and removes all other current plural forms across all languages.

label_ids
array of strings, unique
length ≤ 150

Replaces shared label assignments with existing labels in this workspace. Empty clears all labels. At most 150 distinct labels.

label_ids
Headers
string

Optional precondition. Send the quoted ETag from a GET of this resource. The mutation only runs if a strong tag matches the current representation, checked under the write lock. A comma-separated list is allowed; '*' requires an existing representation. Weak tags never match. Omit this header for an unconditional write. For an action, use the ETag from GET of the target resource, without the action suffix. A stale tag returns 412; read the current state before retrying.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json