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

# Create SLURM bootstrap configuration

> Create the exact SLURM bootstrap configuration for one device role at this site.



## OpenAPI

````yaml /openapi/fleet-manager-openapi.yaml post /api/v1/sites/{id}/slurm-bootstrap-configs/
openapi: 3.0.3
info:
  title: Fleet Manager API
  version: 1.0.0
  description: API for the Nscale Fleet Manager
servers: []
security: []
paths:
  /api/v1/sites/{id}/slurm-bootstrap-configs/:
    post:
      tags:
        - SLURM Bootstrap Configurations
      summary: Create SLURM bootstrap configuration
      description: >-
        Create the exact SLURM bootstrap configuration for one device role at
        this site.
      operationId: api_v1_sites_slurm_bootstrap_configs_create
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this site.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SlurmBootstrapConfigCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SlurmBootstrapConfigCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SlurmBootstrapConfigCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlurmBootstrapConfig'
          description: ''
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication credentials were not provided or are invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: You do not have permission to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - oauth2:
            - slurm-bootstrap-config:create
        - cookieAuth: []
components:
  schemas:
    SlurmBootstrapConfigCreate:
      type: object
      description: |-
        Create payload for a site's exact device-role bootstrap configuration.

        ``image`` and ``flavor`` are required. ``features`` defaults to an empty
        list. ``user_data`` and ``gres`` are optional (nullable).
      properties:
        device_role:
          type: string
          format: uuid
        image:
          type: string
        flavor:
          type: string
        features:
          type: array
          items:
            type: string
        gres:
          type: string
          nullable: true
        user_data:
          type: string
          nullable: true
      required:
        - device_role
        - flavor
        - image
    SlurmBootstrapConfig:
      type: object
      description: >-
        Protected exact-row representation of site-role SLURM bootstrap
        configuration.
      properties:
        site:
          type: string
          format: uuid
          readOnly: true
        device_role:
          type: string
          format: uuid
        image:
          type: string
          nullable: true
        flavor:
          type: string
          nullable: true
        features:
          type: array
          items:
            type: string
        gres:
          type: string
          nullable: true
        user_data:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - created_at
        - device_role
        - features
        - flavor
        - gres
        - image
        - site
        - updated_at
        - user_data
    ErrorResponse:
      type: object
      description: >-
        Uniform error body for every 4xx/5xx response. `detail` is a
        human-readable message, always present, safe to display to end users.
        `code` is the machine-readable identifier. `field_errors` lists
        per-input-field validation messages and is empty for non-field errors
        (auth, permission, not-found, conflict, server).
      required:
        - detail
        - code
        - field_errors
      properties:
        detail:
          type: string
        code:
          $ref: '#/components/schemas/ErrorCodeEnum'
        field_errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
    ErrorCodeEnum:
      type: string
      description: >-
        Stable machine-readable error identifier. New members may be added
        within this API version; clients must tolerate unknown values.
      enum:
        - error
        - invalid
        - parse_error
        - authentication_failed
        - not_authenticated
        - permission_denied
        - not_found
        - method_not_allowed
        - not_acceptable
        - unsupported_media_type
        - conflict
        - enrollment_infrastructure_reference_pending
        - enrollment_infrastructure_reference_changed
        - unprocessable_entity
        - throttled
        - service_unavailable
    FieldError:
      type: object
      description: One input field's validation messages.
      required:
        - field
        - messages
      properties:
        field:
          type: string
          description: >-
            Dotted path to the offending input field, or to the collection row
            when the whole row is invalid (e.g. `filters.end_date`,
            `memberships.0.role`, `memberships.0`).
        messages:
          type: array
          minItems: 1
          items:
            type: string
  securitySchemes:
    oauth2:
      type: oauth2
      flows: {}
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.