Skip to main content
PUT
Update a script

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Organization-Id
string

ID da organização para contexto (opcional). Quando presente, filtra recursos da org.

Path Parameters

id
integer
required

ID numérico do script

Body

application/json
name
string
required

Nome do script

icon
string

Ícone Material

Example:

"mdi:play"

color
string

Cor hex

Example:

"#4CAF50"

actions
object[]

Lista de ações a executar

Response

Script updated

id
integer
name
string
icon
string
color
string
enabled
boolean
actions
object[]
user_id
string
org_id
string | null
created_at
string<date-time>