---
title: "Changes to Connect a container to a network"
method: POST
path: "/networks/{id}/connect"
---

# Changes to Connect a container to a network

`POST /networks/{id}/connect`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 79 revisions.

- **2026-02-24** `6df97b60796c`: 2 breaking, 6 info
- **2026-02-14** `31f80d10d31a`: 2 breaking, 15 warning, 7 info
- **2026-02-09** `831637d06c77`: 1 breaking, 4 info

## Changes

- **2026-02-24** `6df97b60796c`: 2 breaking, 6 info
  - removed the request body
  - removed the success response with the status `204`
  - api tag `Network` added
  - added the non-success response with the status `400`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
  - added the success response with the status `200`
- **2026-02-14** `31f80d10d31a`: 2 breaking, 15 warning, 7 info
  - added `#/components/schemas/EndpointSettings` to the `EndpointConfig` request property `allOf` list
  - removed the success response with the status `200`
  - removed the request property `EndpointConfig/Aliases`
  - removed the request property `EndpointConfig/DNSNames`
  - removed the request property `EndpointConfig/DriverOpts`
  - removed the request property `EndpointConfig/EndpointID`
  - removed the request property `EndpointConfig/Gateway`
  - removed the request property `EndpointConfig/GlobalIPv6Address`
  - removed the request property `EndpointConfig/GlobalIPv6PrefixLen`
  - removed the request property `EndpointConfig/GwPriority`
  - removed the request property `EndpointConfig/IPAMConfig`
  - removed the request property `EndpointConfig/IPAddress`
  - removed the request property `EndpointConfig/IPPrefixLen`
  - removed the request property `EndpointConfig/IPv6Gateway`
  - removed the request property `EndpointConfig/Links`
  - removed the request property `EndpointConfig/MacAddress`
  - removed the request property `EndpointConfig/NetworkID`
  - api tag `Network` removed
  - the request property `EndpointConfig` became nullable
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `500`
  - added the success response with the status `204`
- **2026-02-09** `831637d06c77`: 1 breaking, 4 info
  - added required request body
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `403`
  - added the media type `application/json` for the response with the status `404`
  - added the media type `application/json` for the response with the status `500`

---

[Operation](https://skmtc.dev/hexlet/apis/docker-engine-api/docs/networks/:id/connect/post.md) - [API](https://skmtc.dev/hexlet/apis/docker-engine-api.md) - [Page](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/networks/:id/connect/post)
