Sha256: 6b22d6d260e7681c9c0143affd108f30d5b5ea0ab00ffad74b18feac5dc6b9c4

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

# Update handle returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new

body = DatadogAPIClient::V2::MicrosoftTeamsUpdateApiHandleRequest.new({
  data: DatadogAPIClient::V2::MicrosoftTeamsUpdateApiHandleRequestData.new({
    attributes: DatadogAPIClient::V2::MicrosoftTeamsApiHandleAttributes.new({
      channel_id: "fake-channel-id",
      name: "fake-handle-name",
      team_id: "00000000-0000-0000-0000-000000000000",
      tenant_id: "00000000-0000-0000-0000-000000000001",
    }),
    type: DatadogAPIClient::V2::MicrosoftTeamsApiHandleType::HANDLE,
  }),
})
p api_instance.update_api_handle("handle_id", body)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-2.27.1 examples/v2/microsoft-teams-integration/UpdateApiHandle.rb