---
title: "Update Portals"
method: PUT
path: "/api/v1/accounts/{account_id}/portals/{id}"
tags: ["Portals"]
---

# Update Portals

`PUT /api/v1/accounts/{account_id}/portals/{id}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/accounts/{account_id}/portals/{id}`
- Auth: API key in header `api_access_token`

## Path parameters

- `account_id` integer, required
- `id` string, required

## Request body

- object
  - `portal` object, required
    - `account_id` integer
    - `color` string
    - `custom_domain` string
    - `header_text` string
    - `homepage_link` string
    - `name` string
    - `page_title` string
    - `slug` string
    - `archived` boolean
    - `channel_web_widget_id` integer
    - `is_public` boolean
    - `config` object[]
      - `default_locale` string
    - `allowed_locales` string[]

## Response `200`

Success

- object
  - `error` string

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/cloudhumans/apis/cloudchat-api.md) - [All operations](https://skmtc.dev/cloudhumans/apis/cloudchat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudhumans/apis/cloudchat-api/revisions/18199bd17cc5?raw)
