> For the complete documentation index, see [llms.txt](https://www.mongodb.com/docs/api/doc/atlas-app-services-admin-api-v3/llms.txt)

# Create a VPC Private Endpoint

> POST /groups/{groupId}/apps/{appId}/security/private_endpoints
> 
> Configure a new private endpoint for the App.



## Servers
- The root API resource and starting point for the App Services API.: https://services.cloud.mongodb.com/api/admin/v3.0 (The root API resource and starting point for the App Services API.)


## Authentication methods
- Token auth


## Parameters

### Path parameters

- **groupId** (string)
  An Atlas [Project/Group
  ID](https://docs.atlas.mongodb.com/tutorial/manage-projects/).

- **appId** (string)
  The ObjectID of your application.
  [The App Services API Project and Application IDs section](#section/Project-and-Application-IDs) demonstrates how to find this
  value.



### Body: application/json (object)

- **cloud_provider_region** (string)
  The cloud provider region that hosts the private endpoint.

- **cloud_provider_endpoint_id** (string)
  The private endpoint ID from the cloud provider.

- **comment** (string)
  An optional comment that describes the endpoint.

- **endpoint_type** (string)
  The type of endpoint. For more information
  on endpoint types and migrating deprecated endpoints to `"general"` or `"sync"`, 
  see [Use a VPC Private Endpoint](https://www.mongodb.com/docs/atlas/app-services/security/private-endpoints).



## Responses
### 201
Created

#### Body: application/json (object)
- **_id** (string)

- **cloud_provider_region** (string)
  The cloud provider region that hosts the private endpoint.

- **cloud_provider_endpoint_id** (string)
  The private endpoint ID from the cloud provider.

- **comment** (string)
  An optional comment that describes the endpoint.

- **endpoint_type** (string)
  The type of endpoint. For more information
  on migrating deprecated `"legacy"` endpoints, see 
  [Migrate Legacy Endpoints](https://www.mongodb.com/docs/atlas/app-services/security/private-endpoints/#migrate-a-legacy-endpoint).


### 400
- Bad Request
- VPC endpoint id (cloud_provider_endpoint_id) is invalid
- Endpoint type is "legacy"


[Powered by Bump.sh](https://bump.sh)
