Context Sources
Create a Context Source
Changed onCreate a Context Source in the Konnect Organization.
post/v1/context-sources
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
union required
Api Resource Payload required
OR
Mcp Server Resource Payload required
Example request
{
"name": "my-api-resource",
"labels": {
"env": "test"
},
"source": {
"type": "api_catalog",
"config": {
"api_id": "158a0fc7-479a-4928-8a64-7656c1824f7f",
"api_version_id": "bc0b9df1-67ba-475f-9670-37de3cc2e4f6"
}
}
}Response
A response to creating a Context Source.
union required
Api Resource required
The MCP resource object.
OR
Mcp Server Resource required
The MCP resource object.
Example response
{
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"source": {
"type": "api_catalog",
"config": {
"api_id": "158a0fc7-479a-4928-8a64-7656c1824f7f",
"api_version_id": "bc0b9df1-67ba-475f-9670-37de3cc2e4f6",
"base_url": null,
"headers": {}
}
}
}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