# update_product

`tools/call` · `POST /agent/v1/products:update`

Change a product's slug, name, type, description or repository. Only the fields given change. An archived product cannot change, and a product becomes a website or API product only once each of its deployments has a base URL. Returns the product. Needs write access.

- Area: Catalog
- Needs the write grant. Idempotent.

## Inputs

- `product` (string, required): The product's slug, such as storefront.
- `slug` (string): A new slug for the product, such as web-store.
- `name` (string): The product's display name, up to 100 characters, such as Storefront.
- `type` (string, one of: `website`, `api`, `cli`, `mobile_app`, `desktop_app`, `agent`): What kind of software the product is. Website and API products need a base URL in every deployment.
- `description` (nullable string): What the product is, up to 200 characters. null clears it.
- `repository` (nullable string): The source repository as owner/name, such as acme/storefront. null clears it.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_product",
    "arguments": {
      "product": "storefront",
      "description": "The Acme web store and its docs site."
    }
  }
}
```

## HTTP request

The same call over the agent HTTP API, with an agent OAuth access token:

```bash
curl -X POST https://api.qa.clankership.net/agent/v1/products:update \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "product": "storefront",
    "description": "The Acme web store and its docs site."
  }'
```
