Sha256: 5c0a189cd0ca180ea3debdfa9596083f8d87a3a48ebc34492522dace6ab75829

Contents?: true

Size: 581 Bytes

Versions: 8

Compression:

Stored size: 581 Bytes

Contents

# Assign case 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"]

# there is a valid "user" in the system
USER_DATA_ID = ENV["USER_DATA_ID"]

body = DatadogAPIClient::V2::CaseAssignRequest.new({
  data: DatadogAPIClient::V2::CaseAssign.new({
    attributes: DatadogAPIClient::V2::CaseAssignAttributes.new({
      assignee_id: USER_DATA_ID,
    }),
    type: DatadogAPIClient::V2::CaseResourceType::CASE,
  }),
})
p api_instance.assign_case(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/AssignCase.rb
datadog_api_client-2.27.1 examples/v2/case-management/AssignCase.rb
datadog_api_client-2.26.1 examples/v2/case-management/AssignCase.rb
datadog_api_client-2.26.0 examples/v2/case-management/AssignCase.rb
datadog_api_client-2.25.0 examples/v2/case-management/AssignCase.rb
datadog_api_client-2.24.0 examples/v2/case-management/AssignCase.rb
datadog_api_client-2.22.0 examples/v2/case-management/AssignCase.rb
datadog_api_client-2.21.0 examples/v2/case-management/AssignCase.rb