cURL
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" } }
Add a new startup script to the team. Maximum 10 scripts per team.
Provide the value as: Token <your-api-token>
Token <your-api-token>
"Install NGINX"
"#!/bin/bash\napt-get update && apt-get install -y nginx"
"c1d45377-b2a9-4407-ab8d-6909c34dfaac"
Startup script created successfully
Show child attributes