> [!WARNING]
>
> **Preview**
>
>
> This product or feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section
> of the [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products and features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

- [HTTP request](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.cloudFunctions/create#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.cloudFunctions/create#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.cloudFunctions/create#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.cloudFunctions/create#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.cloudFunctions/create#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.cloudFunctions/create#body.aspect)

Creates an cloud function project.

### HTTP request

`POST https://https://docs.cloud.google.com/application-integration/docs/reference/rest#integrations.googleapis.com.endpoints-integrations.googleapis.com/v1/{parent=projects/*/locations/*}/cloudFunctions`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The project that the executed integration belongs to. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "projectId": string, "functionName": string, "functionRegion": string } ``` |

| Fields ||
|---|---|
| `projectId` | `string` Indicates the id of the GCP project that the function will be created in. |
| `functionName` | `string` The function name of CF to be created |
| `functionRegion` | `string` The function region of CF to be created |

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/CreateCloudFunctionResponse`.

### Authorization Scopes

Requires the following OAuth scope:

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

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