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
MediaItem
object with the desired updates. -
A successful response will return the updated
MediaItem
object. -
Requires authorization with either
https://www.googleapis.com/auth/plus.business.manage
orhttps://www.googleapis.com/auth/business.manage
scope.
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.manage
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.