Method: spaces.messagePins.create

建立訊息釘選。

需要使用者驗證,並使用下列其中一個授權範圍

  • https://www.googleapis.com/auth/chat.spaces.pins
  • https://www.googleapis.com/auth/chat.spaces

HTTP 要求

POST https://chat.googleapis.com/v1/{parent=spaces/*}/messagePins

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

必填。要建立訊息釘選的父項空間。格式:spaces/{space}

要求主體

要求主體包含 MessagePin 的例項。

回應主體

如果成功,回應主體會包含新建立的 MessagePin 執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/chat.spaces.pins
  • https://www.googleapis.com/auth/chat.spaces

詳情請參閱授權指南