> ## 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 Deployed Model Adapter

> 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/deploy-model/{model_id}/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/deploy-model/{model_id}/refresh:
    post:
      tags:
        - Models
      summary: Refresh Deployed Model Adapter
      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: refresh_deployed_model_adapter
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
            title: Model Id
      responses:
        '200':
          description: >-
            Returns the adapter checkpoint step now live on the inference
            server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefreshDeployedModelResponse'
        '400':
          description: >-
            Model not deployed, no checkpoint available, or zeroth-checkpoint
            guard triggered
        '404':
          description: Model not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Training server or inference server error
      security:
        - HTTPBearer: []
components:
  schemas:
    RefreshDeployedModelResponse:
      properties:
        deployed_model_id:
          type: string
          title: Deployed Model Id
          description: Provider deployed model ID now serving requests
          example: 6b237761-b6ec-444c-9c1d-f07a34d9611f
        adapter_checkpoint_step:
          anyOf:
            - type: integer
            - type: 'null'
          title: Adapter Checkpoint Step
          description: Adapter checkpoint step now live on the inference server
          example: 3
        adapter_updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Adapter Updated At
          description: Timestamp when the training server last wrote this checkpoint
          example: 2026-07-20 23:52:02 UTC
      type: object
      required:
        - deployed_model_id
      title: RefreshDeployedModelResponse
    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

````