Upsert AI Model version spec
Changed onCreates or replaces the latest version's oas specification (upsert).
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The unique identifier of the AI Model.
Request body
Request body for creating or replacing a version's spec (upsert). The request body has a maximum size limit of 8MB.
The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
Optional provenance. Omit (or null) for a user-uploaded specification.
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
The oas specification document for an AI Model version.
The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
The type of specification document. Currently always oas (OpenAPI Specification).
Provenance of the specification. null (or absent) for a user-uploaded specification.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
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
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking