Skip to main content
POST
/
startup_scripts
Create a new Startup Script
curl --request POST \
  --url https://api.cloud.onidel.com/startup_scripts \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Install NGINX",
  "content": "#!/bin/bash\napt-get update && apt-get install -y nginx",
  "team_id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac"
}
'
{
  "script": {
    "id": "b7e3f1a2-5678-4def-abcd-123456789abc",
    "name": "Install NGINX",
    "content": "#!/bin/bash\napt-get update && apt-get install -y nginx",
    "created": "2024-06-15T08:00:00Z",
    "updated": "2024-06-15T08:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

Provide the value as: Token <your-api-token>

Body

application/json
name
string
required
Example:

"Install NGINX"

content
string
required
Example:

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

team_id
string<uuid>
Example:

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

Response

Startup script created successfully

script
object