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:
https://www.googleapis.com/auth/chat.users.sections
HTTP request
POST https://chat.googleapis.com/v1/{name=users/*/sections/*/items/*}:move
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The resource name of the section item to move. Format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "targetSection": string } |
| Fields | |
|---|---|
targetSection |
Required. The resource name of the section to move the section item to. Format: |
Response body
Response message for moving a section item.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"sectionItem": {
object ( |
| Fields | |
|---|---|
sectionItem |
The updated section item. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/chat.users.sections
For more information, see the Authorization guide.