Catalog AI Models

Create AI Model

Creates a bare AI Model. No target_models are accepted here — create the version separately with POST /ai-models/{aiModelId}/versions.

post/v1/ai-models

Request body

namestring required

The machine name of the AI Model that uniquely identifies it within the catalog.

display_namestring required

The display name of the AI Model.

descriptionstring nullable

Optionally provide a description of the AI Model.

labelsLabels

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

Example request

{
  "name": "my-ai-model",
  "display_name": "My AI Model",
  "description": "Customer support triage model",
  "labels": {
    "env": "test"
  }
}

Response

The created AI Model

idstring uuid required

The unique identifier of the AI Model.

namestring required

The machine name of the AI Model that uniquely identifies it within the catalog.

display_namestring required

The display name of the AI Model.

descriptionstring nullable required

A description of the AI Model.

labelsLabels required

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

managed_byManagedBy required

Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, terraform).

Keys must be 1–63 characters long and start with an alphanumeric character.

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": "123e4567-e89b-12d3-a456-426614174000",
  "name": "my-ai-model",
  "display_name": "My AI Model",
  "description": "Customer support triage model",
  "labels": {
    "env": "test"
  },
  "managed_by": {
    "owner": "terraform"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

Changed in 3 of the 55 revisions of this API.3325

    • ●

      added the new 400.00 enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new 403.00 enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new 409.00 enum value to the response property for the response status

      response-property-enum-value-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 4a02153f2e60324See the full diff
    • ▲

      the response's body type changed from no type to object for status

      response-body-type-changed

    • ▲

      the response's body type changed from no type to object for status

      response-body-type-changed

    • ▲

      the response's body type changed from no type to object for status

      response-body-type-changed

    • ○

      removed subschema #2 from the response body allOf list for the response status

      response-body-all-of-removed

    • ○

      removed subschema #2 from the response body allOf list for the response status

      response-body-all-of-removed

    • ○

      removed subschema #2 from the response body allOf list for the response status

      response-body-all-of-removed

    • ○

      removed subschema #2 from the response body allOf list for the response status

      response-body-all-of-removed

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    • ○

      added the required property to the response with the status

      response-required-property-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      endpoint added

      endpoint-added