Catalog AI Model Versions
Update latest AI Model version
Changed onPartially 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
Example request
{
"version": "1.0.0",
"target_models": [
{
"provider": "openai",
"name": "gpt-4o"
}
]
}Response
The updated version
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 propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- info
endpoint added
- info