Skip to main content
PATCH
Update Startup Script

Authorizations

Authorization
string
header
required

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

Path Parameters

script_id
string<uuid>
required

Startup Script UUID

Body

application/json
name
string
required
Example:

"Updated Script Name"

content
string
required
Example:

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

team_id
string<uuid>
Example:

"c1d45377-b2a9-4407-ab8d-6909c34dfaac"

raw_user_data
boolean

Pass-through mode. When true the script content is sent to the instance verbatim as the cloud-init user-data, replacing the auto-generated user-data (hostname, password, SSH keys and guest agent setup). Configure those yourself in the content. Network configuration is still provided separately. When false (default) the content is wrapped into the generated user-data and executed as a script on first boot. Omit to keep the current mode. Must be a JSON boolean.

Example:

false

Response

Startup script updated successfully