Method: users.sections.items.move  |  Google Chat  |  Google for Developers (original) (raw)

Moves an item from one section to another. For example, if a section contains spaces, this method can be used to move a space to a different section. For details, see Create & organize sections in Google Chat.

Requires user authentication with the authorization scope:

HTTP request

POST https://chat.googleapis.com/v1/{name=users/*/sections/*/items/*}:move

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name string Required. The resource name of the section item to move.Format: users/{user}/sections/{section}/items/{item}

Request body

The request body contains data with the following structure:

JSON representation
{ "targetSection": string }
Fields
targetSection string Required. The resource name of the section to move the section item to.Format: users/{user}/sections/{section}

Response body

Response message for moving a section item.

If successful, the response body contains data with the following structure:

JSON representation
{ "sectionItem": { object (SectionItem) } }
Fields
sectionItem object (SectionItem) The updated section item.

Requires the following OAuth scope:

For more information, see the Authorization guide.