Method: customEmojis.create
HTTP 要求
POST https://chat.googleapis.com/v1/customEmojis
這個網址使用 gRPC 轉碼語法。
要求主體
要求主體包含 CustomEmoji
的例項。
回應主體
如果成功,回應主體會包含新建立的 CustomEmoji
例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/chat.customemojis
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-05-07 (世界標準時間)。
[null,null,["上次更新時間:2025-05-07 (世界標準時間)。"],[[["This Developer Preview feature enables the creation of custom emojis in Google Chat."],["It necessitates user authentication and uses the `chat.customemojis` OAuth scope."],["The feature functions through an HTTP POST request, utilizing gRPC Transcoding, and involves request and response bodies containing the `CustomEmoji` object."],["To explore its functionality, refer to the \"Try it!\" section within the documentation."]]],["This document outlines how to create a custom emoji using the Google Chat API. A `POST` request to `https://chat.googleapis.com/v1/customEmojis` is required, with the request body containing `CustomEmoji` data. Successful requests return a new `CustomEmoji` instance in the response body. This action is available through the Google Workspace Developer Preview Program and requires user authentication and the `https://www.googleapis.com/auth/chat.customemojis` OAuth scope. The API uses gRPC Transcoding.\n"]]