Create API Package
Changed onCreates a package of APIs. An API package is a collection of APIs that can be used to group related APIs together.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
The API Package identifier.
The name of your API Package. The name + version combination must be unique for each API Package you publish.
A description of your API Package. Will be visible on your live Portal.
The unique slug for your API Package, It should be unique across all APIs and API Packages.
An optional version for your API Package. Leave this empty if your API Package is unversioned.
Rate limit configuration that can be applied to an API Package or an API Package Operation.
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 "_".
A set of attributes that describe the API
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example request
{
"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
"name": "MyAPIPackage",
"slug": "my-api-package-v1",
"labels": {
"env": "test"
},
"attributes": {
"env": [
"production"
],
"domains": [
"web",
"mobile"
]
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Response
API Package
The API Package identifier.
The name of your API Package. The name + version combination must be unique for each API Package you publish.
A description of your API Package. Will be visible on your live Portal.
The unique slug for your API Package, It should be unique across all APIs and API Packages.
An optional version for your API Package. Leave this empty if your API Package is unversioned.
Rate limit configuration that can be applied to an API Package or an API Package Operation.
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 "_".
A set of attributes that describe the API
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
"name": "MyAPIPackage",
"slug": "my-api-package-v1",
"labels": {
"env": "test"
},
"attributes": {
"env": [
"production"
],
"domains": [
"web",
"mobile"
]
},
"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