Context Source Mappings

Create Context Interface Source Mapping

Changed on

Create a mapping between a Context Interface and a Context Source.

post/v1/context-interfaces/{interfaceId}/context-source-mappings

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

interfaceId, string uuid required

The ID of the Context Interface.

Request body

CreateMCPServerMCPResourceMappingRequest required
context_source_id, string uuid required

The ID of the Context Source to map to the Context Interface.

Example request

{
  "context_source_id": "a60eceeb-dd7c-4884-8b26-806489c2f704"
}

Response

A response to creating an MCP server MCP resource mapping.

MCPServerMCPResourceMapping required
id, string uuid required

The unique identifier for the Context Inerface Source mapping.

context_interface_id, string uuid required

The ID of the Context Interface.

context_source_id, string uuid required

The ID of the Context Source.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "id": "edf35010-61d0-4fc4-a3b2-8095b02ec3fe",
  "context_interface_id": "d5756e2a-75e4-470b-9a48-326eb9303fd6",
  "context_source_id": "a60eceeb-dd7c-4884-8b26-806489c2f704",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

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

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status