# Modify a VPC Private Endpoint **PUT /groups/{groupId}/apps/{appId}/security/private_endpoints/{privateEndpointId}** Update the configuration of a private endpoint. ## 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. - **privateEndpointId** (string) The _id ObjectID of a VPC private endpoint. ### 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/zh-cn/docs/atlas/app-services/security/private-endpoints). ## Responses ### 200 Updated #### 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/zh-cn/docs/atlas/app-services/security/private-endpoints/#migrate-a-legacy-endpoint). ### 400 - VPC endpoint id (cloud_provider_endpoint_id) is invalid - Attempted to change endpoint type ### 404 Not Found [Powered by Bump.sh](https://bump.sh)