AI Gateway Consumer Groups

Add a Consumer to a Consumer Group

Changed on

Add a consumer to an AI Gateway Consumer Group.

post/v1/ai-gateways/{gatewayId}/consumer-groups/{consumerGroupId}/consumers

Request

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

Path parameters

gatewayId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway.

consumerGroupId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway Consumer Group.

Request body

AddAIGatewayConsumerToGroupRequest required
consumer, string required

The ID of the consumer to add to the group.

Example request

{
  "consumer": "cf4c7e60-11db-49dd-b300-7c7e5f0f7e6b"
}

Response

Consumer added to consumer group successfully.

object required
consumer, string required

The unique ID of the consumer that was added to the consumer group.

consumer_group, AIGatewayConsumerGroup required

Example response

{
  "consumer_group": {
    "display_name": "Dev Users Group",
    "name": "dev-users",
    "labels": {
      "category": "finance"
    },
    "managed_by": {
      "owner": "terraform"
    },
    "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
    "created_at": "2022-11-04T20:10:06.927Z",
    "updated_at": "2022-11-04T20:10:06.927Z"
  }
}

Changes

    • breaking

      the consumer request property's minLength was increased from 0 to 1

    • breaking

      the consumer_group/managed_by/additionalProperties response property's maxLength was increased from 63 to 127 for the response status

    • info

      the consumer_group/managed_by/additionalProperties response's property pattern was changed from ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$ to ^[^\s\x00-\x1F\x7F-\x9F]+$ for the status