---
title: "Updates a VPC subnet in the project and returns the async operation."
method: PATCH
path: "/projects/{project_id}/networking/vpc-subnets/{vpc_subnet_id}"
tags: ["VPC Subnets"]
---

# Updates a VPC subnet in the project and returns the async operation.

`PATCH /projects/{project_id}/networking/vpc-subnets/{vpc_subnet_id}`

## Path parameters

- `project_id` string, required
- `vpc_subnet_id` string, required

## Request body

- VPCSubnetPatchRequest
  - `name` string, required — New name for the VPC subnet.
  - `nat_gateway_action` 'enable' | 'disable' — Action to take on the subnet's NAT gateway. "enable" creates a NAT gateway if one does not exist; "disable" deletes the NAT gateway if one exists. If omitted, the subnet's NAT gateway is left unchanged. enable NATGatewayActionEnable disable NATGatewayActionDisable

## Response `200`

- AsyncOperationResponse
  - `operation` Operation, required — Individual resources that use Operations should populate the `metadata` field with resource-specific information.
    - `completed_at` string, required
    - `metadata` string, required
    - `operation_id` string, required
    - `result` string
    - `started_at` string, required
    - `state` 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED', required

## Other responses

- `400` — Error Bad Request
- `401` — Error Authentication Failed
- `403` — Error Permissions
- `404` — Error Not Found
- `500` — Error Internal Server

---

[API](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b/schema)
