Update add-on
Changed onUpdate an add-on by id.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ULID (Universally Unique Lexicographically Sortable Identifier).
Request body
Addon upsert request.
Display name of the resource.
Between 1 and 256 characters.
Optional description of the resource.
Maximum 1024 characters.
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 "_".
The InstanceType of the add-ons. Can be "single" or "multiple".
The rate cards of the add-on.
Example request
{
"labels": {
"env": "test"
},
"rate_cards": [
{
"labels": {
"env": "test"
},
"key": "resource_key",
"feature": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"currency": "USD",
"billing_cadence": "P1Y",
"tax_config": {
"code": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
},
"entitlement": {
"usage_period": "P1Y"
}
}
]
}Response
Addon upsert response.
Add-on allows extending subscriptions with compatible plans with additional ratecards.
ULID (Universally Unique Lexicographically Sortable Identifier).
Display name of the resource.
Between 1 and 256 characters.
Optional description of the resource.
Maximum 1024 characters.
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 "_".
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity last update date.
An ISO-8601 timestamp representation of entity deletion date.
A key is a semi-unique string that is used to identify the add-on. It is used to reference the latest active version of the add-on and is unique with the version number.
Version of the add-on. Incremented when the add-on is updated.
The InstanceType of the add-ons. Can be "single" or "multiple".
The currency code of the add-on.
The date and time when the add-on becomes effective. When not specified, the add-on is a draft.
The date and time when the add-on is no longer effective. When not specified, the add-on is effective indefinitely.
The status of the add-on. Computed based on the effective start and end dates:
- draft: effective_from is not set.
- active: effective_from <= now and (effective_to is not set or now < effective_to).
- archived: effective_to <= now.
The rate cards of the add-on.
List of validation errors.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"labels": {
"env": "test"
},
"created_at": "2023-01-01T01:01:01.001Z",
"updated_at": "2023-01-01T01:01:01.001Z",
"deleted_at": "2023-01-01T01:01:01.001Z",
"key": "resource_key",
"currency": "USD",
"effective_from": "2023-01-01T01:01:01.001Z",
"effective_to": "2023-01-01T01:01:01.001Z",
"rate_cards": [
{
"labels": {
"env": "test"
},
"key": "resource_key",
"feature": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"currency": "USD",
"billing_cadence": "P1Y",
"tax_config": {
"code": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
},
"entitlement": {
"usage_period": "P1Y"
}
}
],
"validation_errors": [
{
"field": "addons/pro/ratecards/token/featureKey"
}
]
}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