Webhook を作成する 非推奨

POST /groups/{groupId}/apps/{appId}/services/{serviceId}/incoming_webhooks

Webhook を作成します。

path パラメータ

application/ JSON

body 必須

作成する Webhook。

  • name string 必須
  • function_source string 必須
  • respond_result ブール値 必須
  • options オブジェクト
    オプション属性を非表示にする オプション属性の表示 オブジェクト
    • 秘密 string
    • secretAsQueryParameterm ブール値

応答

  • 201

    正常に作成されました。

POST /groups/{groupId}/apps/{appId}/services/{serviceId}/incoming_webhooks
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/services/{serviceId}/incoming_webhooks' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"string","function_source":"string","respond_result":true,"options":{"secret":"string","secretAsQueryParam":true}}'
リクエスト例
{
  "name": "string",
  "function_source": "string",
  "respond_result": true,
  "options": {
    "secret": "string",
    "secretAsQueryParam": true
  }
}