Skip to main content
POST
Replace all component elements.

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Headers

x-revo-mutation-review
string
required
x-revo-operation-id
string<uuid>

Operation identity; this header alone keeps the existing classic write flow and does not select Studio. Bound Studio retries reuse it only for identical input. An operation previously staged by the legacy implicit Studio flow must be retried with its explicit session binding.

x-revo-studio-session-id
string<uuid>

Explicitly select an existing editable Studio workspace. This session header alone selects Studio staging when Studio Preview is enabled. A bound write fails closed when Preview is disabled; omitting this header keeps the classic write flow.

x-revo-base-version
integer

Observed component version for an action without a version field. Conflicts never overwrite source.

Required range: x >= 0

Path Parameters

componentId
string
required

Component id whose full element set should be replaced.

Body

application/json
key
string
required

Unique element key. CODE_JS, CODE_TS, CODE_JS_LIB, and CODE_TS_LIB keys must be valid JavaScript identifiers and cannot be JavaScript/TypeScript reserved words. The permanent @default element cannot be renamed, deleted or replaced; its source remains editable. Only CODE_JS_LIB and CODE_TS_LIB additionally accept the reserved technical key @default: its named exports are available as lib.LibraryName.member. An ordinary DEFAULT key remains a regular node.

Required string length: 1 - 32
details
string
required

Element source/body. Required whenever an explicit element is supplied.

order
number
required

Order of the element (must be unique).

componentElementId
string | null

Existing durable element identifier. Omit it on component create because the server assigns/regenerates the id; preserve it for updates, imports, reverts, and key renames.

desc
string | null

Optional representation description, for example Swagger details. Pass null to leave it empty.

Maximum string length: 1000
metadata
object | null

Optional element metadata. Top-level keys starting with "__" are reserved for backend use.

hidden
boolean | null

Hide supporting or large-output elements from normal result projection. Omit or pass null to default to false.

Response

OK.