> This page is for version v2 (default).
> For other versions, use one of these documentation indexes:
> - v2 (default): https://docs.pinnacle.sh/v-2/llms.txt
> - v1: https://docs.pinnacle.sh/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pinnacle.sh/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pinnacle.sh/_mcp/server.

# Update Participant

PATCH https://api.pinnacle.sh/conferences/{id}/participants/{participant}
Content-Type: application/json

Mute, hold, or whisper. Only the fields you send change, and only real changes are applied.

- `muted: true`: nobody hears them; they still hear everyone.
- `on_hold: true`: they hear hold audio; nobody hears them.
- `whisper_to: ["specialist"]`: only the specialist hears them. `null` goes back to everyone.


Reference: https://docs.pinnacle.sh/api-reference/conferences/participants/update-participant

## Authentication

- `PINNACLE-API-KEY` header (required) — API Key authentication via header

## Request

### Path parameters

- `id` (string, required)
- `participant` (string, required)

### Body (application/json)

This endpoint expects an UpdateParticipantParams.

- `label` (string, optional, nullable)
- `muted` (boolean, optional)
- `on_hold` (boolean, optional)
- `whisper_to` (list of string, optional) — Only these participants (call IDs or labels) can hear this one; it still hears everyone. `null` means everyone hears it (the default). Stored as call IDs, so relabeling someone doesn't change who hears a whisper.

## Response

### 200

Updated participant.

- `call_id` (string, required) — The participant is this call; every call API works on it.
- `conference_id` (string, required)
- `label` (string, required, nullable)
- `status` (enum, required) — - `dialing`: A dialed participant whose call hasn't answered yet. - `ringing`: Answered and being connected (or hearing its `announce`). - `joined`: In the conference. - `left`: Hung up or was removed. - `failed`: Never connected (busy, no answer, rejected, or an error).
  - Allowed values: `dialing`, `ringing`, `joined`, `left`, `failed`
- `from` (string, required, nullable)
- `to` (string, required, nullable)
- `muted` (boolean, required) — Nobody hears this participant; they still hear everyone.
- `on_hold` (boolean, required) — They hear hold audio and nobody hears them.
- `whisper_to` (list of string, required, nullable) — Call IDs of the only participants who can hear this one, or `null` for everyone.
- `end_conference_on_leave` (boolean, required) — When this participant leaves, the conference ends for everyone.
- `joined_at` (string, required, nullable)
- `left_at` (string, required, nullable)
- `left_reason` (enum, required, nullable)
  - Allowed values: `hangup`, `removed`, `busy`, `no_answer`, `rejected`, `failed`, `conference_ended`

## Errors

### 400 Bad Request Error

Validation failed. The payload has missing required fields and/or invalid types.&#x20; See [https://zod.dev/error-formatting](https://zod.dev/error-formatting) for more information.

- `description` (string, required) — Human-readable summary of validation failures.
- `errors` (ZodErrorErrors, required) — Structured dictionary of issues containing two main sections: - `errors`: Array of global validation errors not tied to specific fields - `properties`: Object mapping field names to their specific validation errors, where each field contains an `errors` array

### 401 Unauthorized Error

The request lacks valid authentication credentials or the provided credentials are invalid.&#x20; Ensure you're including a valid API key in the request headers and that your account has the necessary permissions to access this endpoint.

- `error` (string, required) — Human-readable description of the error that occurred, corresponding to the HTTP status code.

### 404 Not Found Error

The requested resource could not be found.&#x20; This may occur if the identifier is incorrect, the resource has been deleted, or you don't have permission to access it.

- `error` (string, required) — Human-readable description of the error that occurred, corresponding to the HTTP status code.

### 409 Conflict Error

This action cannot be completed right now because the resource is already being processed or is in a state that does not allow the requested change. Check the latest resource status and try again when it is ready.

- `error` (string, required) — Human-readable description of the error that occurred, corresponding to the HTTP status code.

### 500 Internal Server Error

An unexpected error occurred on Pinnacle's servers while processing your request.&#x20; If this error persists, please contact support with the request details.

- `error` (string, required) — Human-readable description of the error that occurred, corresponding to the HTTP status code.

### 502 Bad Gateway Error

One of Pinnacle's providers failed. Please try again later.

- `error` (string, required) — Human-readable description of the error that occurred, corresponding to the HTTP status code.

## Types

### ZodErrorErrors

Structured dictionary of issues containing two main sections: - `errors`: Array of global validation errors not tied to specific fields - `properties`: Object mapping field names to their specific validation errors, where each field contains an `errors` array

## Examples

**Request**

```json
{
  "muted": false,
  "whisper_to": [
    "specialist"
  ]
}
```

**Response**

```json
{
  "call_id": "call_7cQe4F8xT1yB2mN9pK3L",
  "conference_id": "conf_Hk2mX9pQ4rT7vB1nL8sW",
  "label": "supervisor",
  "status": "dialing",
  "from": "+14155559876",
  "to": "+14155551234",
  "muted": true,
  "on_hold": true,
  "whisper_to": [
    "string"
  ],
  "end_conference_on_leave": true,
  "joined_at": "2024-01-15T09:30:00Z",
  "left_at": "2024-01-15T09:30:00Z",
  "left_reason": "hangup"
}
```

**SDK Code**

```python
import requests

url = "https://api.pinnacle.sh/conferences/id/participants/participant"

payload = {
    "muted": False,
    "whisper_to": ["specialist"]
}
headers = {
    "PINNACLE-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.pinnacle.sh/conferences/id/participants/participant';
const options = {
  method: 'PATCH',
  headers: {'PINNACLE-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"muted":false,"whisper_to":["specialist"]}'
};

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.pinnacle.sh/conferences/id/participants/participant"

	payload := strings.NewReader("{\n  \"muted\": false,\n  \"whisper_to\": [\n    \"specialist\"\n  ]\n}")

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

	req.Header.Add("PINNACLE-API-KEY", "<apiKey>")
	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.pinnacle.sh/conferences/id/participants/participant")

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

request = Net::HTTP::Patch.new(url)
request["PINNACLE-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"muted\": false,\n  \"whisper_to\": [\n    \"specialist\"\n  ]\n}"

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.patch("https://api.pinnacle.sh/conferences/id/participants/participant")
  .header("PINNACLE-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"muted\": false,\n  \"whisper_to\": [\n    \"specialist\"\n  ]\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.pinnacle.sh/conferences/id/participants/participant', [
  'body' => '{
  "muted": false,
  "whisper_to": [
    "specialist"
  ]
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'PINNACLE-API-KEY' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.pinnacle.sh/conferences/id/participants/participant");
var request = new RestRequest(Method.PATCH);
request.AddHeader("PINNACLE-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"muted\": false,\n  \"whisper_to\": [\n    \"specialist\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "PINNACLE-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "muted": false,
  "whisper_to": ["specialist"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.pinnacle.sh/conferences/id/participants/participant")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
```