---
title: "Replace product settings by ID"
method: PUT
path: "/api/v1/brands/{brandId}"
tags: ["Products"]
---

# Replace product settings by ID

`PUT /api/v1/brands/{brandId}`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/brands/{brandId}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

## Path parameters

- `brandId` string, required

## Request body

- object
  - `name` string, required
  - `domain` string
  - `description` string
  - `slug` string
  - `keywords` string[], nullable
  - `isPublic` boolean
  - `differentiators` string[]
  - `preferredLanguage` string
  - `competitors` union[]
    - union
      - string
      - object
        - `domain` string, required
        - `reasoning` string
        - `verified` boolean
  - `context` unknown

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` unknown

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api.md) - [All operations](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/revisions/c0451ea10e9a?raw)
