> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# Update Product

PUT https://api.elevenlabs.io/v1/reception/products/{product_id}
Content-Type: application/json

Update a product's catalog fields. Only the fields sent are changed. On-hand quantities are not part of this call; use the stock endpoints.

Reference: https://elevenlabs.io/docs/api-reference/reception/products/update

## Servers

- `https://api.elevenlabs.io` (Production, default)
- `https://api.us.elevenlabs.io` (Production US)
- `https://api.eu.residency.elevenlabs.io` (Production EU)
- `https://api.in.residency.elevenlabs.io` (Production India)
- `https://api.sg.residency.elevenlabs.io` (Production Singapore)

## Request

### Path parameters

- `product_id` (string, required)

### Headers

- `xi-workspace-id` (string, optional, nullable) — The customer workspace a reseller's API key acts on.

### Body (application/json)

This endpoint expects a SMBUpdateProductRequestPatch.

- `pricing_mode` (enum, optional, default: fixed) — 'fixed' (default): the item has a known price the agent can quote, and customers can book or order it directly. 'quote': the price depends on the job (renovation, catering, custom work), so no price or slot is offered; the agent collects the intake_questions and files a quote request instead. Takes effect only while quotes are enabled for the business. Group services cannot use 'quote'.
  - Allowed values: `fixed`, `quote`
- `intake_questions` (list of SMBIntakeQuestion, optional) — Questions the agent asks before booking or ordering this item. Required for a useful `pricing_mode='quote'` item -- without them a quote request arrives with nothing to price -- but also valid on fixed-price items that need extra detail (current hair color before a dye job, allergies before a treatment).
- `groups` (list of SMBGroupMembership, optional) — Group memberships for this item. Each entry carries the group label and the item's 0-based rank within that group.
- `ungrouped_rank` (integer, optional, nullable) — Display position among items with no group; `null` sorts last. Change it with the reorder endpoint.
- `name` (string, optional) — Name of the product.
- `description` (string, optional) — Description of the product.
- `price` (double, optional, nullable) — Price of the product; null for no listed price.
- `is_active` (boolean, optional) — False hides the product without deleting it.
- `orderable` (boolean, optional) — False keeps the product listed (callers can ask about it) but not orderable.
- `allowed_fulfillment_types` (list of enum, optional) — Fulfillment options customers may choose when ordering this product.
  - Allowed values: `pickup`, `delivery`, `digital`
- `location_ids` (list of string, optional) — Locations where this product is sold; empty list means all locations.
- `track_quantity` (boolean, optional) — Whether this product is counted. Switching it only changes the mode: turning it on keeps whatever is already on hand, turning it off drops the counts. Use the stock endpoints to change the amounts themselves.

## Response

### 200

Resposta bem-sucedida

- `name` (string, required) — Name of the product.
- `_id` (string, required)
- `pricing_mode` (enum, optional, default: fixed) — 'fixed' (default): the item has a known price the agent can quote, and customers can book or order it directly. 'quote': the price depends on the job (renovation, catering, custom work), so no price or slot is offered; the agent collects the intake_questions and files a quote request instead. Takes effect only while quotes are enabled for the business. Group services cannot use 'quote'.
  - Allowed values: `fixed`, `quote`
- `intake_questions` (list of SMBIntakeQuestion, optional) — Questions the agent asks before booking or ordering this item. Required for a useful `pricing_mode='quote'` item -- without them a quote request arrives with nothing to price -- but also valid on fixed-price items that need extra detail (current hair color before a dye job, allergies before a treatment).
- `groups` (list of SMBGroupMembership, optional) — Group memberships for this item. Each entry carries the group label and the item's 0-based rank within that group.
- `ungrouped_rank` (integer, optional, nullable) — Display position among items with no group; `null` sorts last. Change it with the reorder endpoint.
- `description` (string, optional) — Description of the product.
- `price` (double, optional, nullable) — Price of the product; null for no listed price.
- `is_active` (boolean, optional, default: true) — False hides the product without deleting it.
- `orderable` (boolean, optional, default: true) — False keeps the product listed (callers can ask about it) but not orderable.
- `allowed_fulfillment_types` (list of enum, optional) — Fulfillment options customers may choose when ordering this product.
  - Allowed values: `pickup`, `delivery`, `digital`
- `location_ids` (list of string, optional) — Locations where this product is sold; empty list means all locations.
- `stock` (map from string to integer, optional, nullable) — On-hand quantity by location. None means unlimited. A missing location key means zero.
- `created_at_unix` (integer, optional) — Unix timestamp (seconds since epoch)
- `updated_at_unix` (integer, optional) — Unix timestamp (seconds since epoch)

## Errors

### 422 Unprocessable Entity Error

Erro de validação

- `detail` (list of ValidationError, optional)

## Types

### SMBIntakeQuestion

A question the receptionist asks before booking or ordering this item.

- `label` (string, required) — The question as the agent should ask it, e.g. 'How many rooms?'. Phrased by the owner; the agent may rephrase for conversational flow but must not change what is being asked.
- `id` (string, optional) — Stable identifier referenced by stored answers. Survives label edits so history stays attributable to the right question.
- `kind` (enum, optional, default: text) — Answer shape for a per-item intake question.
  - Allowed values: `text`, `number`, `choice`
- `options` (list of string, optional) — Allowed answers for `kind='choice'`. Must be empty for the other kinds.
- `required` (boolean, optional, default: false) — Enforced on the booking page. On calls the receptionist asks, but still books if the caller won't answer.
- `is_active` (boolean, optional, default: true) — Retired questions are deactivated rather than deleted, so answers already stored against them keep resolving.

### SMBGroupMembership

Membership of an item in a single user-defined group, with its display rank inside that group.

- `label` (string, required)
- `rank` (integer, optional, default: 0) — 0-based display position within this group. Change it with the reorder endpoint; send back the value you read to keep the order, a membership sent without it goes to position 0.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItems

- string
- integer

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "name": "string",
  "_id": "string",
  "pricing_mode": "fixed",
  "intake_questions": [
    {
      "label": "string",
      "id": "string",
      "kind": "text",
      "options": [
        "string"
      ],
      "required": false,
      "is_active": true
    }
  ],
  "groups": [
    {
      "label": "string",
      "rank": 0
    }
  ],
  "ungrouped_rank": 1,
  "description": "string",
  "price": 1.1,
  "is_active": true,
  "orderable": true,
  "allowed_fulfillment_types": [
    "pickup"
  ],
  "location_ids": [
    "string"
  ],
  "stock": {},
  "created_at_unix": 1,
  "updated_at_unix": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.elevenlabs.io/v1/reception/products/product_id"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.elevenlabs.io/v1/reception/products/product_id';
const options = {method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.elevenlabs.io/v1/reception/products/product_id"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.elevenlabs.io/v1/reception/products/product_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.elevenlabs.io/v1/reception/products/product_id")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.elevenlabs.io/v1/reception/products/product_id', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.elevenlabs.io/v1/reception/products/product_id");
var request = new RestRequest(Method.PUT);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/reception/products/product_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```