> ## Documentation Index
> Fetch the complete documentation index at: https://developers.onidel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new Startup Script

> Add a new startup script to the team. Maximum 10 scripts per team.



## OpenAPI

````yaml /api-reference/openapi.yaml post /startup_scripts
openapi: 3.0.3
info:
  title: Onidel Cloud API - OpenAPI 3.0
  description: >-
    Welcome to the **Onidel Cloud API** documentation. This API allows
    developers to seamlessly integrate with the Onidel Cloud platform, enabling
    them to manage cloud resources efficiently and securely. With our API, you
    can automate processes, retrieve detailed account information, and manage
    virtual machines (VPS), networking, storage, and more.
  termsOfService: https://docs.onidel.com/policies/terms-of-service
  contact:
    email: support@onidel.com
  version: 1.2.0
servers:
  - url: https://api.cloud.onidel.com
security: []
tags:
  - name: SSH Key
    description: Manage SSH keys for secure server access.
  - name: VPC
    description: Manage Virtual Private Cloud (VPC) networks for isolated networking.
  - name: Firewall
    description: Manage firewall groups for VM security.
  - name: OS Template
    description: >-
      We have a wide range of operating systems available to deploy server
      instances.
  - name: Instance Type
    description: We provide different instance types for different workload.
  - name: Startup Script
    description: >-
      Manage startup scripts that run on first boot of a server instance.
      Maximum 10 scripts per team.
  - name: IP List
    description: >-
      Manage IP lists for use in firewall rules. IP lists group multiple IP
      addresses/CIDRs together.
  - name: Firewall Rule
    description: Manage firewall rules within a firewall group.
  - name: Object Storage
    description: Manage S3-compatible object storage services, buckets, and access keys.
  - name: Custom ISO
    description: Manage custom ISO images that can be used to boot server instances (BYOI).
  - name: Measured Boot Image
    description: >-
      Manage SEV-SNP measured direct boot images (UKIs) and attach/detach them
      to instances.
paths:
  /startup_scripts:
    post:
      tags:
        - Startup Script
      summary: Create a new Startup Script
      description: Add a new startup script to the team. Maximum 10 scripts per team.
      operationId: createStartupScript
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewStartupScript'
      responses:
        '201':
          description: Startup script created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartupScriptDetailResponse'
        '400':
          description: >-
            Bad request - missing parameters or script limit reached (max 10 per
            team)
        '401':
          description: Unauthorized
      security:
        - api_key: []
components:
  schemas:
    NewStartupScript:
      type: object
      properties:
        team_id:
          type: string
          format: uuid
          example: c1d45377-b2a9-4407-ab8d-6909c34dfaac
        name:
          type: string
          example: Install NGINX
        content:
          type: string
          example: |-
            #!/bin/bash
            apt-get update && apt-get install -y nginx
      required:
        - name
        - content
    StartupScriptDetailResponse:
      type: object
      properties:
        script:
          $ref: '#/components/schemas/StartupScriptDetail'
    StartupScriptDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: b7e3f1a2-5678-4def-abcd-123456789abc
        name:
          type: string
          example: Install NGINX
        content:
          type: string
          example: |-
            #!/bin/bash
            apt-get update && apt-get install -y nginx
        created:
          type: string
          format: date-time
          example: '2024-06-15T08:00:00Z'
        updated:
          type: string
          format: date-time
          example: '2024-06-15T08:00:00Z'
      required:
        - id
        - name
        - content
        - created
        - updated
  securitySchemes:
    api_key:
      type: http
      scheme: bearer

````