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

# Create Config Version

> POST /configs/{kind}/versions — create a new immutable version. Body is
validated per-kind; invalid → 422 config_invalid with field errors.
`activate` defaults to False — creation does not activate by default.



## OpenAPI

````yaml /openapi.json post /v1/configs/{kind}/versions
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/configs/{kind}/versions:
    post:
      tags:
        - configs
      summary: Create Config Version
      description: |-
        POST /configs/{kind}/versions — create a new immutable version. Body is
        validated per-kind; invalid → 422 config_invalid with field errors.
        `activate` defaults to False — creation does not activate by default.
      operationId: create_config_version_v1_configs__kind__versions_post
      parameters:
        - in: path
          name: kind
          required: true
          schema:
            title: Kind
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigVersionCreateBody'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ConfigVersionCreateBody:
      properties:
        activate:
          default: false
          title: Activate
          type: boolean
        body:
          additionalProperties: true
          title: Body
          type: object
        version_label:
          maxLength: 100
          minLength: 1
          title: Version Label
          type: string
      required:
        - version_label
        - body
      title: ConfigVersionCreateBody
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````