API Products

Update an individual API product

Changed on

Updates an API product.

patch/v2/api-products/{id}

Request

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

Path parameters

id, string uuid required
Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

API product identifier

Request body

UpdateAPIProductDTO required

The request schema for updating an API product.

name, string nullable

The name for the API product.

description, string nullable

The description of the API product.

labels, LabelsUpdate nullable

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Labels are intended to store INTERNAL metadata.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

public_labels, PublicLabelsUpdate

Public labels store information about an entity that can be used for filtering a list of objects.

Public labels are intended to store PUBLIC metadata.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

portal_ids, string[] required

The list of portal identifiers which this API product should be published to

Example request

{
  "name": "API Product",
  "description": "Text describing the API product",
  "labels": {
    "env": "test"
  },
  "public_labels": {
    "category": "finance"
  },
  "portal_ids": [
    "25a2624c-49fc-4764-99e1-224ed819f200"
  ]
}

Response

API product

APIProduct required
id, string uuid required

The API product ID.

name, string required

The name of the API product

description, string nullable required

The description of the API product

portal_ids, string[] required

The list of portal identifiers which this API product is published to. This property is deprecated and will be removed in a future version. Use the portals property instead.

portals, APIProductPortal[] required

The list of portals which this API product is published to

version_count, number required

The number of product versions attached to this API product

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.

labels, Labels required

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 "_".

public_labels, PublicLabels required

Public labels store information about an entity that can be used for filtering a list of objects.

Public labels are intended to store PUBLIC metadata.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

Example response

{
  "id": "b9e81174-b5bb-4638-a3c3-8afe61a0abf8",
  "name": "My Name",
  "description": "MyDescription",
  "portal_ids": [
    "25a2624c-49fc-4764-99e1-224ed819f200"
  ],
  "portals": [
    {
      "portal_id": "35a2624c-49fc-4764-99e1-224ed819f200",
      "portal_name": "Developer Portal"
    }
  ],
  "version_count": 10,
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "labels": {
    "env": "test"
  },
  "public_labels": {
    "category": "finance"
  }
}

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