Catalog AI Model Specs
Upsert AI Model version spec
Changed onCreates or replaces the latest version's oas specification (upsert).
put/v1/ai-models/{aiModelId}/versions/latest/spec
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v1/ai-models/{aiModelId}/versions/latest/spec
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"spec_content": "{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"My AI Model\",\"version\":\"1.0.0\"},\"paths\":{}}",
"spec_provider": {
"source": "ai_gateway"
}
}Response
The replaced spec
Example response
{
"spec_content": "{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"My AI Model\",\"version\":\"1.0.0\"},\"paths\":{}}",
"spec_type": "oas",
"spec_provider": {
"source": "ai_gateway"
},
"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