Skip to main content
PUT
/
startup-scripts
/
{script}
Update a startup script
curl --request PUT \
  --url https://console.wenium.com/api/startup-scripts/{script} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Install Web Server v2",
  "content": "#!/bin/bash\napt update && apt install nginx -y"
}
'
{
  "status": true,
  "message": "Startup script updated.",
  "data": {
    "id": 1,
    "name": "Install Nginx",
    "content": "#!/bin/bash\napt-get update\napt-get install -y nginx",
    "is_active": true,
    "user_id": 1,
    "created_at": "2026-07-03T00:00:00.000000Z",
    "updated_at": "2026-07-03T00:00:00.000000Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

script
integer
required

Body

application/json
name
string
required
Example:

"Install Web Server v2"

content
string
required
Example:

"#!/bin/bash\napt update && apt install nginx -y"

Response

200 - application/json

Script updated

status
boolean
Example:

true

message
string
Example:

"Startup script updated."

data
object