---
title: Replace a participant's detail
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api)

[Realtime Kit](https://developers.cloudflare.com/api/resources/realtime_kit)

[Meetings](https://developers.cloudflare.com/api/resources/realtime_kit/subresources/meetings)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Replace a participant's detail

PUT/accounts/{account\_id}/realtime/kit/{app\_id}/meetings/{meeting\_id}/participants/{participant\_id}

Replaces a participant’s details for the given meeting and participant ID.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Realtime Admin``Realtime`

##### P ath ParametersExpand Collapse

account\_id: string

The account identifier tag.

maxLength32

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

app\_id: string

The app identifier tag.

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%20default%20%3E%20(param)%20app_id%20%3E%20(schema)>)

meeting\_id: string

formatuuid

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%20default%20%3E%20(param)%20meeting_id%20%3E%20(schema)>)

participant\_id: string

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%20default%20%3E%20(param)%20participant_id%20%3E%20(schema)>)

##### Body ParametersJSONExpand Collapse

custom\_participant\_id: string

Unique participant ID accepted by the replace participant API.

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%200%20%3E%20(param)%20custom_participant_id%20%3E%20(schema)>)

preset\_name: string

Name of the preset to apply to this participant.

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%200%20%3E%20(param)%20preset_name%20%3E%20(schema)>)

name: optional string

(Optional) Name of the participant.

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%200%20%3E%20(param)%20name%20%3E%20(schema)>)

picture: optional string

(Optional) A URL to a picture to be used for the participant.

formaturi

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(method)%20replace_participant%20%3E%20(params)%200%20%3E%20(param)%20picture%20%3E%20(schema)>)

##### ReturnsExpand Collapse

success: boolean

Success status of the operation

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20success>)

<details>

<summary>

data: optional object {id, token, created\_at, 7 more }

Represents a participant.

</summary>

id: string

ID of the participant.

formatuuid

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20id">Link to this property</a>

token: string

The participant’s auth token that can be used for joining a meeting from the client side.

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20token">Link to this property</a>

created\_at: string

When this object was created. The time is returned in ISO format.

formatdate-time

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20created_at">Link to this property</a>

custom\_participant\_id: string

A unique participant ID generated by the client.

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20custom_participant_id">Link to this property</a>

preset\_name: string

Preset applied to the participant.

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20preset_name">Link to this property</a>

updated\_at: string

When this object was updated. The time is returned in ISO format.

formatdate-time

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20updated_at">Link to this property</a>

expires\_on: optional string

Time at which the token stops being valid, in UTC. Returned when adding a participant.

formatdate-time

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20expires_on">Link to this property</a>

name: optional string

Name of the participant.

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20name">Link to this property</a>

not\_before: optional string

Time from which the token is valid, in UTC. Returned when adding a participant.

formatdate-time

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20not_before">Link to this property</a>

picture: optional string

URL to a picture of the participant.

formaturi

<a href="#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20picture">Link to this property</a>

</details>

[Link to this property](<#(resource)%20realtime_kit.meetings%20%3E%20(model)%20meeting_replace_participant_response%20%3E%20(schema)%20%3E%20(property)%20data>)

### Replace a participant's detail

HTTP

HTTPTypeScriptPythonGoTerraform

```
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/realtime/kit/$APP_ID/meetings/$MEETING_ID/participants/$PARTICIPANT_ID \
    -X PUT \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
    -d '{
          "custom_participant_id": "custom_participant_id",
          "preset_name": "preset_name"
        }'
```

200 example

```
{
  "success": true,
  "data": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "token": "token",
    "created_at": "2019-12-27T18:11:19.117Z",
    "custom_participant_id": "custom_participant_id",
    "preset_name": "preset_name",
    "updated_at": "2019-12-27T18:11:19.117Z",
    "expires_on": "2026-10-01T11:00:00Z",
    "name": "name",
    "not_before": "2026-10-01T09:00:00Z",
    "picture": "https://example.com"
  }
}
```

##### Returns Examples

200 example

```
{
  "success": true,
  "data": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "token": "token",
    "created_at": "2019-12-27T18:11:19.117Z",
    "custom_participant_id": "custom_participant_id",
    "preset_name": "preset_name",
    "updated_at": "2019-12-27T18:11:19.117Z",
    "expires_on": "2026-10-01T11:00:00Z",
    "name": "name",
    "not_before": "2026-10-01T09:00:00Z",
    "picture": "https://example.com"
  }
}
```