Sha256: 23aef9b0f8bf652302024e1022d8034f95b87a760a2ed08273e5380a2d7ab2e4

Contents?: true

Size: 752 Bytes

Versions: 2

Compression:

Stored size: 752 Bytes

Contents

# Update tenant-based handle returns "OK" response

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

body = DatadogAPIClient::V2::MicrosoftTeamsUpdateTenantBasedHandleRequest.new({
  data: DatadogAPIClient::V2::MicrosoftTeamsUpdateTenantBasedHandleRequestData.new({
    attributes: DatadogAPIClient::V2::MicrosoftTeamsTenantBasedHandleAttributes.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::MicrosoftTeamsTenantBasedHandleType::TENANT_BASED_HANDLE,
  }),
})
p api_instance.update_tenant_based_handle("handle_id", body)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb
datadog_api_client-2.28.1 examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb