Skip to main content
PUT
xurl
Changes the title, chat option or live category of one of the authenticated user’s broadcasts and returns the updated broadcast. :id is the alphanumeric broadcast ID. A broadcast can be updated before it starts, while it is live and after it has ended. To end a broadcast, use End Broadcast (PUT /2/broadcasts/:id/state). To change a scheduled broadcast before it starts, use Update Scheduled Broadcast.

Request body

Send at least one of title, chat_option and live_category_id. Fields you leave out keep their values, and a field set to null counts as left out. The body is strictly typed: chat_option must be a JSON integer (a string such as "2" is rejected). Any other field, such as locale or should_not_tweet, is rejected with 400. This request changes the title and sets the category:
This request removes the category and changes nothing else:

Response

On success, the response is 200 with the broadcast in data, in the same shape Go Live returns:
This example is shortened. Fields without a value are omitted, so live_category_id is missing when the broadcast has no category. Use this response as the result of the update. A GET /2/broadcasts/:id sent immediately afterwards can return the previous values for a moment.

Authentication and rate limit

Requires user context authentication: OAuth 2.0 with the broadcast.read and broadcast.write scopes, or OAuth 1.0a with read and write access. The route allows 100 requests per 15 minutes per user.

Errors

Errors use the standard X API problem format.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

broadcast.read

View your live broadcasts and their chat.

broadcast.write

Manage your live broadcasts and send chat messages on your behalf.

Path Parameters

id
string
required
Pattern: ^[a-zA-Z0-9]{1,24}$

Body

application/json
chat_option
integer

Who can chat: 0 default, 1 chat off, 2 everyone, 3 verified accounts, 4 accounts the host follows, 5 the host's subscribers, 6 accounts followed by an account the host follows.

Required range: 0 <= x <= 6
live_category_id
string

New live category, e.g. gaming. Ids come from GET /2/broadcasts/categories; an unknown id is a 400. An empty string removes the broadcast's category.

Maximum string length: 64
title
string

New broadcast title.

Minimum string length: 1

Response

The request has succeeded.

data
object
errors
object[]