POST
/projects/{project_id}/vpc_endpoints/{vpc_endpoint_id}Set VPC endpoint restrictionSets or updates a VPC endpoint restriction for a Neon project. When a VPC endpoint restriction is set, the project only accepts connections from the specified VPC. A VPC endpoint can be set as a restriction only after it is assigned to the parent organization of the Neon project.
Parameters
project_idstringpathrequiredThe Neon project ID
vpc_endpoint_idstringpathrequiredThe VPC endpoint ID
Request body
requiredapplication/json
objectVPCEndpointAssignment
labelstringrequiredHuman-readable name for the VPC endpoint assignment, used to identify it within the organization.
{
"label": "string"
}Responses
objectGeneralError
codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}