---
title: "Change the app's port"
method: POST
path: "/v1/projects/update-port"
tags: ["Configuration"]
---

# Change the app's port

`POST /v1/projects/update-port`

## Request

- Base URL: `https://api.liara.ir`
- URL: `https://api.liara.ir/v1/projects/update-port`
- Auth: HTTP bearer

Redeploys the app's latest successful release with a new port. If the app has no successful release, nothing changes. Team permission: `operate` or `manage`.

Errors from this endpoint use the body `{"message": "..."}` instead of the standard error body.

## Query parameters

- `teamID` string: 24-character hexadecimal ID.

## Request body

- object
  - `project` string, required: The app's name.
  - `port` integer, required: The port your app listens on.

## Response `200`

The app has no successful release; nothing changed. The response body is empty.

## Other responses

- `201`: The app is being redeployed with the new port.
- `400`: `project` or `port` is missing or invalid, or the app doesn't exist or is frozen.
- `401`: The API token is missing, invalid or expired.
- `403`: With `teamID`: you aren't a member of the team (`team_not_found`), or you don't have the required permission on this app (`no_permission`).

## Changes

- **2026-11-02** `610162e8a623`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/liara-cloud/apis/paas/changes/v1/projects/update-port/post.md)

---

[API](https://skmtc.dev/liara-cloud/apis/paas.md) - [All operations](https://skmtc.dev/liara-cloud/apis/paas/llms.txt) - [OpenAPI document](https://skmtc.dev/liara-cloud/apis/paas/revisions/610162e8a623?raw)
