- [HTTP request](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchEnable#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchEnable#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchEnable#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchEnable#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchEnable#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchEnable#body.aspect)
- [Try it!](https://docs.cloud.google.com/service-usage/docs/reference/rest/v1/services/batchEnable#try-it)

Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. To enable a single service, use the `services.enable` method instead.

### HTTP request

`POST https://serviceusage.googleapis.com/v1/{parent=*/*}/services:batchEnable`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Parent to enable services on. An example name would be: `projects/123` where `123` is the project number. The `services.batchEnable` method currently only supports projects. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `serviceusage.services.enable` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "serviceIds": [ string ] } ``` |

| Fields ||
|---|---|
| `serviceIds[]` | `string` The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/service-usage/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires one of the following OAuth scopes:

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

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