cURL
curl --request PATCH \ --url https://api.hypercore.vn/startup_scripts/{script_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Updated Script Name", "content": "#!/bin/bash\napt-get update && apt-get install -y nginx certbot", "team_id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac" } '
Update an existing startup script
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Startup Script UUID
"Updated Script Name"
"#!/bin/bash\napt-get update && apt-get install -y nginx certbot"
"c1d45377-b2a9-4407-ab8d-6909c34dfaac"
Startup script updated successfully