Attributes of a case type, which define a classification category for cases. Organizations use case types to model different workflows (for example, Security Incident, Bug Report, Change Request).
deleted_at
date-time
Timestamp when the case type was marked as deleted. A null value indicates the case type is active.
description
string
A detailed description explaining when this case type should be used.
emoji
string
An emoji icon representing the case type in the UI.
name [required]
string
The display name of the case type, shown in the Case Management UI when creating or viewing cases.
id
string
Case type's identifier
type
enum
JSON:API resource type for case types.
Allowed enum values: case_type
default: case_type
{"data":[{"attributes":{"deleted_at":"2019-09-19T10:00:00.000Z","description":"Investigations done in case management","emoji":"🕵🏻♂️","name":"Investigation"},"id":"aeadc05e-98a8-11ec-ac2c-da7ad0900001","type":"case_type"}]}
"""
Get all case types returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.case_management_type_apiimportCaseManagementTypeApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=CaseManagementTypeApi(api_client)response=api_instance.get_all_case_types()print(response)
# Get all case types returns "OK" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::CaseManagementTypeAPI.newpapi_instance.get_all_case_types()
// Get all case types returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewCaseManagementTypeApi(apiClient)resp,r,err:=api.GetAllCaseTypes(ctx)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `CaseManagementTypeApi.GetAllCaseTypes`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `CaseManagementTypeApi.GetAllCaseTypes`:\n%s\n",responseContent)}
// Get all case types returns "OK" responseimportcom.datadog.api.client.ApiClient;importcom.datadog.api.client.ApiException;importcom.datadog.api.client.v2.api.CaseManagementTypeApi;importcom.datadog.api.client.v2.model.CaseTypesResponse;publicclassExample{publicstaticvoidmain(String[]args){ApiClientdefaultClient=ApiClient.getDefaultApiClient();CaseManagementTypeApiapiInstance=newCaseManagementTypeApi(defaultClient);try{CaseTypesResponseresult=apiInstance.getAllCaseTypes();System.out.println(result);}catch(ApiExceptione){System.err.println("Exception when calling CaseManagementTypeApi#getAllCaseTypes");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace();}}}
// Get all case types returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_case_management_type::CaseManagementTypeAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=CaseManagementTypeAPI::with_config(configuration);letresp=api.get_all_case_types().await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Get all case types returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.CaseManagementTypeApi(configuration);apiInstance.getAllCaseTypes().then((data: v2.CaseTypesResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));