Webhook を更新する

PUT /groups/{groupId}/apps/{appId}/services/{serviceId}/incoming_webhooks/{incomingWebhookId}

Update a webhook.

path パラメータ

application/ JSON

body 必須

Webhook の更新された状態。

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

応答

  • 200

    正常に更新されました。

PUT /groups/{groupId}/apps/{appId}/services/{serviceId}/incoming_webhooks/{incomingWebhookId}
curl \
 --request PUT 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/services/{serviceId}/incoming_webhooks/{incomingWebhookId}' \
 --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
  }
}