REST Resource: spaces.messagePins

Resource: MessagePin

A pin on a Chat message. For more information see Pin a message.

JSON representation
{
  "name": string,
  "message": string
}
Fields
name

string

Identifier. The resource name of the message pin. Format: spaces/{space}/messagePins/{messagePin} The resource ID component matches the resource ID component of the message. For example, a message with spaces/AAA/messages/bbb.ccc corresponds to the message pin with the resource name spaces/AAA/messagePins/bbb.ccc.

message

string

Required. Immutable. The resource name of the message that is pinned. Format: spaces/{space}/messages/{message}

Methods

create

Pins a message.

delete

Deletes a message pin (unpins the message).

list

Lists pinned messages in a space.