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

# Refresh Model Deployment

> Hot-swap the latest adapter checkpoint into an already-deployed model.

Calls the training server to find the current adapter checkpoint step, then
performs an undeploy + redeploy so the inference server loads the latest weights.
The deployed model ID and inference URL remain unchanged.

**Raises 400 if:**
- Model is not in DEPLOYED state
- No adapter checkpoint is available yet (`adapter_available == false`)
- Job failed with a zeroth checkpoint (`status == "failed"` AND `adapter_available == true`)



## OpenAPI

````yaml https://api.nugen.in/openapi-public.json post /api/v3/models/{model_id}/deployment/refresh
openapi: 3.1.0
info:
  title: Nugen Intelligence API
  description: 'Nugen Intelligence : Powering Specialized Intelligence At Scale'
  version: 25.4.20
servers: []
security: []
paths:
  /api/v3/models/{model_id}/deployment/refresh:
    post:
      tags:
        - Models
      summary: Refresh Model Deployment
      description: >-
        Hot-swap the latest adapter checkpoint into an already-deployed model.


        Calls the training server to find the current adapter checkpoint step,
        then

        performs an undeploy + redeploy so the inference server loads the latest
        weights.

        The deployed model ID and inference URL remain unchanged.


        **Raises 400 if:**

        - Model is not in DEPLOYED state

        - No adapter checkpoint is available yet (`adapter_available == false`)

        - Job failed with a zeroth checkpoint (`status == "failed"` AND
        `adapter_available == true`)
      operationId: models_deployment_refresh
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
            title: Model Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````