# Method: projects.locations.clusters.acls.addAclEntry

- [HTTP request](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls/addAclEntry#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls/addAclEntry#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls/addAclEntry#body.request_body)
- [Response body](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls/addAclEntry#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls/addAclEntry#body.AddAclEntryResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls/addAclEntry#body.aspect)
- [Try it!](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls/addAclEntry#try-it)

Incremental update: Adds an acl entry to an acl. Creates the acl if it does not exist yet.

### HTTP request

`POST https://managedkafka.googleapis.com/v1/{acl=projects/*/locations/*/clusters/*/acls/**}:addAclEntry`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `acl` | `string` Required. The name of the acl to add the acl entry to. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{aclId}`. The structure of `aclId` defines the Resource Pattern (resourceType, resourceName, patternType) of the acl. See `Acl.name` for details. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls#AclEntry`.

### Response body

Response for acls.addAclEntry.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "acl": { object (`https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls#Acl`) }, "aclCreated": boolean } ``` |

| Fields ||
|---|---|
| `acl` | ``object (`https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls#Acl`)`` The updated acl. |
| `aclCreated` | `boolean` Whether the acl was created as a result of adding the acl entry. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).