Catalog AI Model Versions

Update latest AI Model version

Changed on

Partially updates the latest version. target_models, when supplied, is a full-array replacement.

patch/v1/ai-models/{aiModelId}/versions/latest

Request

  • Base URL: https://global.api.konghq.com
  • URL: https://global.api.konghq.com/v1/ai-models/{aiModelId}/versions/latest
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer

Request body

versionstring nullable

An optional user-supplied version label. Omit it to leave the version unchanged, or send null to clear it.

Example request

{
  "version": "1.0.0",
  "target_models": [
    {
      "provider": "openai",
      "name": "gpt-4o"
    }
  ]
}

Response

The updated version

idstring uuid required

The unique identifier of the version.

ai_model_idstring uuid required

The identifier of the parent AI Model.

versionstring nullable required

An optional user-supplied version label. null when unset.

created_atstring date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_atstring date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "id": "9c4a1b2c-3d4e-5f60-7182-93a4b5c6d7e8",
  "ai_model_id": "123e4567-e89b-12d3-a456-426614174000",
  "version": "1.0.0",
  "target_models": [
    {
      "provider": "openai",
      "name": "gpt-4o"
    }
  ],
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      added to the / response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the ////// response property for the response status

    • warning

      added the new unique enum value to the ////// response property for the response status

    • info

      endpoint added