A saved work item view that provides a filtered, reusable list of work items matching a specific query. Views act as persistent dashboards for monitoring work item subsets.
attributes [required]
object
Attributes of a work item view, including the filter query and optional notification rule.
created_at [required]
date-time
Timestamp when the view was created.
modified_at
date-time
Timestamp when the view was last modified.
name [required]
string
A human-readable name for the view, displayed in the Work Management UI.
np_rule_id
string
The identifier of a notification rule linked to this view. When set, users subscribed to the view receive alerts for matching work items.
query [required]
string
The search query that determines which work items appear in this view. Uses the same syntax as the Work Management search bar (for example, status:open priority:P1).
id [required]
string
The view's identifier.
relationships
object
Related resources for the work item view, including the creator, last modifier, and associated project.
## default
#
# Path parameters exportview_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890" # Use a Personal Access Token or Service Access Token exportDD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
"""
Update a case view returns "OK" response
"""fromosimportenvironfromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.case_management_apiimportCaseManagementApifromdatadog_api_client.v2.model.case_view_resource_typeimportCaseViewResourceTypefromdatadog_api_client.v2.model.case_view_updateimportCaseViewUpdatefromdatadog_api_client.v2.model.case_view_update_attributesimportCaseViewUpdateAttributesfromdatadog_api_client.v2.model.case_view_update_requestimportCaseViewUpdateRequestbody=CaseViewUpdateRequest(data=CaseViewUpdate(attributes=CaseViewUpdateAttributes(),type=CaseViewResourceType.VIEW,),)configuration=Configuration()configuration.access_token=environ["DD_BEARER_TOKEN"]withApiClient(configuration)asapi_client:api_instance=CaseManagementApi(api_client)response=api_instance.update_case_view(view_id="view_id",body=body)print(response)
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"python3"example.py"
# Update a case view returns "OK" responserequire"datadog_api_client"DatadogAPIClient.configuredo|config|config.access_token=ENV["DD_BEARER_TOKEN"]endapi_instance=DatadogAPIClient::V2::CaseManagementAPI.newbody=DatadogAPIClient::V2::CaseViewUpdateRequest.new({data:DatadogAPIClient::V2::CaseViewUpdate.new({attributes:DatadogAPIClient::V2::CaseViewUpdateAttributes.new({}),type:DatadogAPIClient::V2::CaseViewResourceType::VIEW,}),})papi_instance.update_case_view("view_id",body)
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"rb"example.rb"
// Update a case view 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(){body:=datadogV2.CaseViewUpdateRequest{Data:datadogV2.CaseViewUpdate{Attributes:&datadogV2.CaseViewUpdateAttributes{},Type:datadogV2.CASEVIEWRESOURCETYPE_VIEW,},}ctx:=datadog.NewDefaultContext(context.Background())ctx=context.WithValue(ctx,datadog.ContextAccessToken,os.Getenv("DD_BEARER_TOKEN"))configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewCaseManagementApi(apiClient)resp,r,err:=api.UpdateCaseView(ctx,"view_id",body)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `CaseManagementApi.UpdateCaseView`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `CaseManagementApi.UpdateCaseView`:\n%s\n",responseContent)}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"go run"main.go"
// Update a case view returns "OK" responseimportcom.datadog.api.client.ApiClient;importcom.datadog.api.client.ApiException;importcom.datadog.api.client.v2.api.CaseManagementApi;importcom.datadog.api.client.v2.model.CaseViewResourceType;importcom.datadog.api.client.v2.model.CaseViewResponse;importcom.datadog.api.client.v2.model.CaseViewUpdate;importcom.datadog.api.client.v2.model.CaseViewUpdateAttributes;importcom.datadog.api.client.v2.model.CaseViewUpdateRequest;publicclassExample{publicstaticvoidmain(String[]args){ApiClientdefaultClient=ApiClient.getDefaultApiClient();defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));CaseManagementApiapiInstance=newCaseManagementApi(defaultClient);CaseViewUpdateRequestbody=newCaseViewUpdateRequest().data(newCaseViewUpdate().attributes(newCaseViewUpdateAttributes()).type(CaseViewResourceType.VIEW));try{CaseViewResponseresult=apiInstance.updateCaseView("a1b2c3d4-e5f6-7890-abcd-ef1234567890",body);System.out.println(result);}catch(ApiExceptione){System.err.println("Exception when calling CaseManagementApi#updateCaseView");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace();}}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"java"Example.java"
// Update a case view returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_case_management::CaseManagementAPI;usedatadog_api_client::datadogV2::model::CaseViewResourceType;usedatadog_api_client::datadogV2::model::CaseViewUpdate;usedatadog_api_client::datadogV2::model::CaseViewUpdateAttributes;usedatadog_api_client::datadogV2::model::CaseViewUpdateRequest;#[tokio::main]asyncfnmain(){letbody=CaseViewUpdateRequest::new(CaseViewUpdate::new(CaseViewResourceType::VIEW).attributes(CaseViewUpdateAttributes::new()),);letconfiguration=datadog::Configuration::new();letapi=CaseManagementAPI::with_config(configuration);letresp=api.update_case_view("view_id".to_string(),body).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="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
/**
* Update a case view returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration({authMethods:{AuthZ:{accessToken: process.env.DD_BEARER_TOKENasstring,},},});constapiInstance=newv2.CaseManagementApi(configuration);constparams: v2.CaseManagementApiUpdateCaseViewRequest={body:{data:{attributes:{},type:"view",},},viewId:"view_id",};apiInstance.updateCaseView(params).then((data: v2.CaseViewResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"tsc"example.ts"
Request a personalized demo
Get Started with Datadog
Ask AI
AI-generated responses may be inaccurate. Verify important info.