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

# Create Movespec

> Create a new MoveSpec and its mutable draft.



## OpenAPI

````yaml /generated/api.openapi.json post /api/movespecs
openapi: 3.1.0
info:
  title: Kynasmith Public API
  version: 0.1.0
servers: []
security: []
paths:
  /api/movespecs:
    post:
      tags:
        - movespecs
      summary: Create Movespec
      description: Create a new MoveSpec and its mutable draft.
      operationId: create_movespec_api_movespecs_post
      parameters:
        - in: header
          name: Idempotency-Key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveSpecCreateRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveSpecResource'
          description: Successful Response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
          description: The request payload or query parameters are invalid.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
          description: Authentication failed.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
          description: Caller is not authorized for this action.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
          description: Referenced resource does not exist.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
          description: Request conflicts with current resource state.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
          description: Request validation failed for the targeted resource state.
      security:
        - BearerAccessToken: []
        - BearerAccessToken: []
components:
  schemas:
    MoveSpecCreateRequest:
      description: Create-MoveSpec request payload.
      properties:
        description:
          anyOf:
            - maxLength: 255
              type: string
            - type: 'null'
          description: Optional human-readable description.
          title: Description
        name:
          description: Display name for the MoveSpec.
          maxLength: 255
          title: Name
          type: string
        project_id:
          description: Owning project identifier.
          format: uuid
          title: Project Id
          type: string
      required:
        - project_id
        - name
      title: MoveSpecCreateRequest
      type: object
    MoveSpecResource:
      description: |-
        Public MoveSpec resource returned to external API consumers.

        Internal/first-party fields (``organization_id``, ``created_by``,
        ``updated_by``, ``caller_starred``) have been moved to
        ``MoveSpecFirstPartyResource`` (#31).

        ``caller_starred`` returns ``False`` for anonymous callers instead
        of ``None`` (#73). It has been moved to the first-party variant.
      properties:
        archived_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Archive timestamp when no longer writable.
          title: Archived At
        created_at:
          description: Creation timestamp.
          format: date-time
          title: Created At
          type: string
        current_released_version_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: Current released immutable version when one exists.
          title: Current Released Version Id
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Human-readable description.
          title: Description
        movespec_id:
          description: MoveSpec identifier.
          format: uuid
          title: Movespec Id
          type: string
        name:
          description: Display name for the MoveSpec.
          title: Name
          type: string
        project_id:
          description: Owning project identifier.
          format: uuid
          title: Project Id
          type: string
        star_count:
          default: 0
          description: Total organization-level stars for this MoveSpec.
          title: Star Count
          type: integer
        updated_at:
          description: Last metadata or release-pointer update timestamp.
          format: date-time
          title: Updated At
          type: string
        visibility:
          description: >-
            Visibility setting. 'delisted' is moderation-only and cannot be set
            via the API.
          enum:
            - private
            - public
            - delisted
          title: Visibility
          type: string
      required:
        - movespec_id
        - project_id
        - name
        - visibility
        - created_at
        - updated_at
      title: MoveSpecResource
      type: object
    PublicErrorEnvelope:
      description: Stable public error envelope shared across transports.
      properties:
        error:
          $ref: '#/components/schemas/PublicErrorDetail'
          description: Structured error payload.
      required:
        - error
      title: PublicErrorEnvelope
      type: object
    PublicErrorDetail:
      description: Stable public error payload shared across transports.
      properties:
        code:
          description: Machine-readable error code.
          title: Code
          type: string
        details:
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
              - type: number
              - type: boolean
              - type: 'null'
          description: Bounded structured error details.
          title: Details
          type: object
        message:
          description: Human-readable error message.
          title: Message
          type: string
        retryable:
          description: Whether the caller can retry safely.
          title: Retryable
          type: boolean
      required:
        - code
        - message
        - retryable
      title: PublicErrorDetail
      type: object
  securitySchemes:
    BearerAccessToken:
      description: Backend-issued machine access token for project-scoped API access.
      scheme: bearer
      type: http

````