Stops serving the port at its URL. Closing a port that isn't open is fine.
API key access: sandboxes.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
id*stringThe sandbox's id.
port*integerThe port, like 3000.
int320 <= valueport and closed.
application/jsoncurl -X DELETE 'https://your-pyo.example.com/api/v1/sandboxes/string/ports/0'{}