ACLs

Create a new ACL associated with a Consumer

Changed on

Create a new ACL associated with a Consumer

post/{workspace}/consumers/{ConsumerIdForNestedEntities}/acls

Request

  • Base URL
    http://localhost:8001
  • Auth
    API key in header Kong-Admin-Token

Path parameters

ConsumerIdForNestedEntities, string required

Consumer ID for nested entities

workspace, string required
Example:team-payments

The name of the workspace

Request body

ACLWithoutParents required
consumer, object nullable
created_at, integer nullable

Unix epoch when the resource was created.

group, string required
id, string nullable

A string representing a UUID (universally unique identifier).

tags, string[] nullable

A set of strings representing tags.

Example request

{
  "group": "foo",
  "id": "b1f34145-0343-41a4-9602-4c69dec2f269"
}

Response

Successfully created ACL

ACL required
consumer, object nullable
created_at, integer nullable

Unix epoch when the resource was created.

group, string required
id, string nullable

A string representing a UUID (universally unique identifier).

tags, string[] nullable

A set of strings representing tags.

Example response

{
  "consumer": {
    "id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
  },
  "group": "foo",
  "id": "b1f34145-0343-41a4-9602-4c69dec2f269"
}

Changes