AI-generated Key Takeaways
-
Updates the category of a specified media item, excluding COVER or PROFILE, using a PATCH request.
-
Requires specifying the media item's name in the path and optionally an update mask in the query parameters.
-
The request body should contain a
MediaItemobject with the desired updates. -
A successful response will return the updated
MediaItemobject. -
Requires authorization with either
https://www.googleapis.com/auth/plus.business.manageorhttps://www.googleapis.com/auth/business.managescope.
Updates metadata of the specified media item. This can only be used to update the Category of a media item, with the exception that the new category cannot be COVER or PROFILE.
HTTP request
PATCH https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*/media/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
The name of the media item to be updated. |
Query parameters
| Parameters | |
|---|---|
updateMask |
The specific fields to update. If no mask is specified, then this is treated as a full update and all editable fields are set to the values passed in. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of MediaItem.
Response body
If successful, the response body contains an instance of MediaItem.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/plus.business.managehttps://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.