users

POST /v1/users/{usersId}/sections/{sectionsId}:position

Changes the sort order of a section. For details, see Create and organize sections in Google Chat. Requires user authentication with the authorization scope: - https://www.googleapis.com/auth/chat.users.sections

Request

  • Base URL
    https://chat.googleapis.com
  • URL
    https://chat.googleapis.com/v1/users/{usersId}/sections/{sectionsId}:position
  • Auth
    OAuth 2 and OAuth 2
    Implicit: https://accounts.google.com/o/oauth2/auth
    Scopes: https://www.googleapis.com/auth/chat.users.sections
    Authorization code: https://accounts.google.com/o/oauth2/auth
    Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.users.sections

Path parameters

usersIdstring required
sectionsIdstring required

Request body

relativePosition'POSITION_UNSPECIFIED' | 'START' | 'END'

Optional. The relative position of the section in the list of sections.

sortOrderinteger

Optional. The absolute position of the section in the list of sections. The position must be greater than 0. If the position is greater than the number of sections, the section will be appended to the end of the list. This operation inserts the section at the given position and shifts the original section at that position, and those below it, to the next position.

Response

Successful response

Changes

No recorded changes to this operation across all 9 revisions of this API.