Sha256: bd110ae7308bfcc4689f1a5527976e4c05ffbe15c1e78d807919eddb74557c32

Contents?: true

Size: 565 Bytes

Versions: 8

Compression:

Stored size: 565 Bytes

Contents

# Update case priority returns "OK" response

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

# there is a valid "case" in the system
CASE_ID = ENV["CASE_ID"]

body = DatadogAPIClient::V2::CaseUpdatePriorityRequest.new({
  data: DatadogAPIClient::V2::CaseUpdatePriority.new({
    attributes: DatadogAPIClient::V2::CaseUpdatePriorityAttributes.new({
      priority: DatadogAPIClient::V2::CasePriority::P3,
    }),
    type: DatadogAPIClient::V2::CaseResourceType::CASE,
  }),
})
p api_instance.update_priority(CASE_ID, body)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/case-management/UpdatePriority.rb
datadog_api_client-2.27.1 examples/v2/case-management/UpdatePriority.rb
datadog_api_client-2.26.1 examples/v2/case-management/UpdatePriority.rb
datadog_api_client-2.26.0 examples/v2/case-management/UpdatePriority.rb
datadog_api_client-2.25.0 examples/v2/case-management/UpdatePriority.rb
datadog_api_client-2.24.0 examples/v2/case-management/UpdatePriority.rb
datadog_api_client-2.22.0 examples/v2/case-management/UpdatePriority.rb
datadog_api_client-2.21.0 examples/v2/case-management/UpdatePriority.rb