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

# Create or refresh shareable practice link

> Creates or reuses a public learner practice link (`/practice/<code>`) and deliberate-practice rehearsal path for a Role kit without using model tokens.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/kits/{kit}/practice
openapi: 3.1.0
info:
  title: Enablement Studio API
  version: 1.0.0
  description: >-
    REST API v1 for Enablement Studio: inspect projects and kits, draft
    Role/Call/Critic runs, consult kit specialists, run deterministic
    learning-science audits, and publish SCORM/learner links.
  contact:
    name: Enablement Studio Support
    email: login@enablementstudio.app
    url: https://enablementstudio.ai/contact
servers:
  - url: https://enablementstudio.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Discovery
    description: Server metadata, signed-in account status, and public examples.
  - name: Library
    description: Read projects, kits, full kit documents, and deliverable exports.
  - name: Runs
    description: Start asynchronous Role, Call, and Critic drafts and poll status.
  - name: Specialists
    description: Read and message specialist agents; edits wait in Kit Review.
  - name: Learning Science
    description: Deterministic Mager, Bloom, Haladyna, and cognitive-load checks.
  - name: Delivery & Practice
    description: Online lessons, SCORM 1.2 exports, learner practice links, and results.
paths:
  /api/v1/kits/{kit}/practice:
    post:
      tags:
        - Delivery & Practice
      summary: Create or refresh shareable practice link
      description: >-
        Creates or reuses a public learner practice link (`/practice/<code>`)
        and deliberate-practice rehearsal path for a Role kit without using
        model tokens.
      operationId: shareKitPractice
      parameters:
        - name: kit
          in: path
          required: true
          description: Positive numeric kit ID (1 to 16 digits, no leading zero).
          schema:
            type: integer
            minimum: 1
          example: 12
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PracticeRequest'
            example:
              refresh: false
      responses:
        '200':
          description: Reused existing practice link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PracticeResponse'
              example:
                kit_id: 12
                title: Harborline AE
                shared: true
                reused: true
                code: abcdefghjk
                path: /practice/abcdefghjk
                rehearse_path: /practice/abcdefghjk/rehearse
                expires_at: 1798761600
                item_count: 3
                stale: false
        '201':
          description: Created new practice link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PracticeResponse'
              example:
                kit_id: 12
                title: Harborline AE
                shared: true
                reused: false
                code: abcdefghjk
                path: /practice/abcdefghjk
                rehearse_path: /practice/abcdefghjk/rehearse
                expires_at: 1798761600
                item_count: 3
                stale: false
        '400':
          description: Not a Role kit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: wrong_product
                  message: Only Role kits have practice links.
        '401':
          description: Missing, expired, or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: signed_out
                  message: Sign in to continue.
        '403':
          description: >-
            Connector disabled, Pro API key entitlement required (pro_required),
            route forbidden (connector_forbidden or api_key_forbidden), or
            consent missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: connector_forbidden
                  message: >-
                    An AI app cannot do that. Open Enablement Studio on the web
                    to do it.
        '404':
          description: Resource missing, trashed, or owned by another account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: not_found
                  message: That page is not part of the app.
        '409':
          description: No accepted quiz items or live share-link cap reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: practice_empty
                  message: Keep at least one quiz item before sharing practice.
components:
  schemas:
    PracticeRequest:
      type: object
      properties:
        refresh:
          type: boolean
          default: false
    PracticeResponse:
      type: object
      required:
        - kit_id
        - title
        - shared
        - reused
        - code
        - path
        - expires_at
        - item_count
        - stale
      properties:
        kit_id:
          type: integer
        title:
          type: string
        shared:
          type: boolean
        reused:
          type: boolean
        code:
          type: string
        path:
          type: string
        rehearse_path:
          type: string
        expires_at:
          type: integer
        item_count:
          type: integer
        stale:
          type: boolean
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from OAuth 2.1 MCP sign-in, native app sign-in, or a Pro
        developer API key (`es_live_...`).

````

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