Update feature
Changed onUpdate a feature by id. Currently only the unit_cost field can be updated.
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
Request body for updating a feature. Currently only the unit_cost field can be updated.
Optional per-unit cost configuration. Use "manual" for a fixed per-unit cost, or "llm" to look up cost from the LLM cost database based on meter group-by properties. Set to null to clear the existing unit cost; omit to leave it unchanged.
Response
Feature updated response.
A capability or billable dimension offered by a provider.
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 unique string that is used to identify a resource.
The meter that the feature is associated with and based on which usage is calculated. If not specified, the feature is static.
Optional per-unit cost configuration. Use "manual" for a fixed per-unit cost, or "llm" to look up cost from the LLM cost database based on meter group-by properties.
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",
"meter": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
}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