---
title: "Edit Container Network"
method: PUT
path: "/container/{containerId}/network"
tags: ["Container Configuration"]
---

# Edit Container Network

`PUT /container/{containerId}/network`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/container/{containerId}/network`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/container/:containerId/network/put.ts> (a function with typed inputs; its response is checked against the schema)

Edit the Network settings of the container.

## Path parameters

- `containerId` string, uuid, required

## Request body

- ContainerNetworkRequest
  - `sticky_session` boolean: Specify if the sticky session option (also called persistant session) is activated or not for this container. If activated, user will be redirected by the load balancer to the same instance each time he access to the container.

## Response `201`

Updated container network setting

- ContainerNetwork
  - `sticky_session` boolean: Specify if the sticky session option (also called persistant session) is activated or not for this container. If activated, user will be redirected by the load balancer to the same instance each time he access to the container.

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
