Method: posts.update

Updates the text of a post. You can't add, remove, or replace a post's images.

This method is in a pilot phase with access limited to select launch partners (approved Google Cloud projects). Broader public API access is planned for General Availability in 2027.

In the Post request body, specify id and snippet.textDisplay. The API updates only snippet.textDisplay.

The authorized user must own the channel that published the post or have permission to edit its posts.

Quota impact: A call to this method has a quota cost of 1 unit. The cost counts against the Post Modifications and Image Uploads quota, which is separate from the default YouTube Data API quota.

For method-specific error responses, see posts.update errors.

HTTP request

PUT https://youtube.googleapis.com/youtube/v3/posts

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
part[]

string

Required. The part parameter specifies a comma-separated list of one or more post resource properties that the request sets and that the API response includes.

Set it to snippet. You can also include id, attachments, and status to add those properties to the response.

Request body

The request body contains an instance of Post.

Response body

If successful, the response body contains an instance of Post.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/youtube
  • https://www.googleapis.com/auth/youtubepartner
  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.