---
title: "Update an existing Power configuration"
method: POST
path: "/connections/{id}/power:repower"
tags: ["Power"]
---

# Update an existing Power configuration

`POST /connections/{id}/power:repower`

## Request

- Base URL: `https://api.customdomain.ai/v1`
- URL: `https://api.customdomain.ai/v1/connections/{id}/power:repower`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Update the origin and/or config. Omitting `application_url` keeps the current origin (unlike enable, which requires it).

## Path parameters

- `id` string, required

## Request body

- PowerConfigInput
  - `application_url` string, uri: origin the edge proxies to; required to enable, optional to re-power (kept if omitted).
  - `www_redirect` boolean
  - `redirect_to` string: set to a URL to 301 the host there; "" clears it.
  - `root_path_access` string[]

## Response `200`

Power updated

- object
  - `power` PowerConfig
    - `connection_id` string, required
    - `domain` string, required
    - `origin` string: the URL the edge reverse-proxies to.
    - `powered` boolean, required: true when an origin is registered.
    - `www_redirect` boolean, required: serve an apex↔www redirect.
    - `redirect_to` string: when set, the edge 301s the host here.
    - `root_path_access` string[]

## Other responses

- `400`: Error envelope: {code, title, details}.
- `401`: Error envelope: {code, title, details}.
- `404`: Error envelope: {code, title, details}.
- `503`: Error envelope: {code, title, details}.

---

[API](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api.md) · [All operations](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/revisions/34d89cb7a7cd?raw)
