Skip to main content
PATCH
update a variable

Authorizations

Authorization
string
header
required

your rumik api key, e.g. rk_live_.... create one in the rumik dashboard.

Path Parameters

variable_id
string<uuid>
required

the variable's id.

Body

application/json

PATCH /agents/variables/{id}: every field optional; toolId: null disconnects the tool (and drops the output pick with it).

name
string | null

rename the variable.

Maximum string length: 64
defaultValue
string | null

the new default.

Maximum string length: 2000
toolId
string<uuid> | null

connect a tool; null disconnects.

toolOutput
string | null

the output pick.

Maximum string length: 65

Response

ok.

an account-wide {name} prompt variable.

id
string<uuid>
required

the variable's id.

name
string
required

the {name} prompts use.

defaultValue
string
required

the fallback value.

toolId
string<uuid> | null
required

the before-call tool feeding it, or null.

toolOutput
string | null
required

the output taken from that tool, or null.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required