---
title: 케이스 제목 업데이트
description: 케이스 제목 업데이트
breadcrumbs: 문서 > API > 케이스 제목 업데이트
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/llms.txt).

# 케이스 제목 업데이트

## v2 (latest)

| Datadog site      | API endpoint                                                    |
| ----------------- | --------------------------------------------------------------- |
| app.datadoghq.com | POST https://api.datadoghq.com/api/v2/cases/{case_id}/title     |
| us3.datadoghq.com | POST https://api.us3.datadoghq.com/api/v2/cases/{case_id}/title |
| us5.datadoghq.com | POST https://api.us5.datadoghq.com/api/v2/cases/{case_id}/title |
| app.datadoghq.eu  | POST https://api.datadoghq.eu/api/v2/cases/{case_id}/title      |
| ap1.datadoghq.com | POST https://api.ap1.datadoghq.com/api/v2/cases/{case_id}/title |
| ap2.datadoghq.com | POST https://api.ap2.datadoghq.com/api/v2/cases/{case_id}/title |
| uk1.datadoghq.com | POST https://api.uk1.datadoghq.com/api/v2/cases/{case_id}/title |
| app.ddog-gov.com  | POST https://api.ddog-gov.com/api/v2/cases/{case_id}/title      |
| us2.ddog-gov.com  | POST https://api.us2.ddog-gov.com/api/v2/cases/{case_id}/title  |

### Overview

케이스 제목 업데이트

OAuth apps require the `cases_write` authorization [scope](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/ko/api/latest/scopes.md#case-management) to access this endpoint.

### Arguments

#### Path Parameters

| Field                | Type   | Description             |
| -------------------- | ------ | ----------------------- |
| case_id [*required*] | string | Work item's UUID or key |

### Request

#### Body Data (required)

케이스 제목 업데이트 페이로드

{% tabs %}
{% tab label="Model" %}
| Parent field | Field                   | Type   | Description                                                                          |
| ------------ | ----------------------- | ------ | ------------------------------------------------------------------------------------ |
|              | data [*required*]       | object | 케이스 제목 업데이트 요청                                                                       |
| data         | attributes [*required*] | object | Work item update title attributes                                                    |
| attributes   | title [*required*]      | string | Work item new title                                                                  |
| data         | type [*required*]       | enum   | JSON:API resource type for work items. Allowed enum values: `case`. Default: `case`. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "title": "[UPDATED] Memory leak investigation on API"
    },
    "type": "case"
  }
}
```
{% /tab %}
{% /tabs %}

### Response

{% tabs %}
{% tab label="200" %}
OK

{% tabs %}
{% tab label="Model" %}
Work item response

| Parent field         | Field                   | Type      | Description                                                                                                                                                                                                       |
| -------------------- | ----------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                      | data                    | object    | A work item                                                                                                                                                                                                       |
| data                 | attributes [*required*] | object    | Work item resource attributes                                                                                                                                                                                     |
| attributes           | archived_at             | date-time | Timestamp of when the work item was archived Read-only.                                                                                                                                                           |
| attributes           | attributes              | object    | Key-value pairs of work item attributes. Each key maps to an array of string values, used for flexible metadata such as labels or tags.                                                                           |
| additionalProperties | <any-key>               | [string]  |                                                                                                                                                                                                                   |
| attributes           | closed_at               | date-time | Timestamp of when the work item was closed Read-only.                                                                                                                                                             |
| attributes           | created_at              | date-time | Timestamp of when the work item was created Read-only.                                                                                                                                                            |
| attributes           | custom_attributes       | object    | Work item custom attributes                                                                                                                                                                                       |
| additionalProperties | <any-key>               | object    | A typed value for a custom attribute on a specific work item.                                                                                                                                                     |
| <any-key>            | is_multi [*required*]   | boolean   | If true, value must be an array                                                                                                                                                                                   |
| <any-key>            | type [*required*]       | enum      | The data type of the custom attribute, which determines the allowed values and UI input control. Allowed enum values: `URL`, `TEXT`, `NUMBER`, `SELECT`.                                                          |
| <any-key>            | value [*required*]      | <oneOf>   | The value of a custom attribute. The accepted format depends on the attribute's type and whether it accepts multiple values.                                                                                      |
| value                | Object 1                | string    | A string value for a TEXT, URL, or SELECT-type custom attribute.                                                                                                                                                  |
| value                | Object 2                | [string]  | An array of string values for a multi-value TEXT, URL, or SELECT-type custom attribute.                                                                                                                           |
| value                | Object 3                | double    | A numeric value for a NUMBER-type custom attribute.                                                                                                                                                               |
| value                | Object 4                | [number]  | An array of numeric values for a multi-value NUMBER-type custom attribute.                                                                                                                                        |
| attributes           | description             | string    | Description                                                                                                                                                                                                       |
| attributes           | jira_issue              | object    | Jira issue attached to work item Read-only.                                                                                                                                                                       |
| jira_issue           | result                  | object    | Jira issue information                                                                                                                                                                                            |
| result               | issue_id                | string    | Jira issue ID                                                                                                                                                                                                     |
| result               | issue_key               | string    | Jira issue key                                                                                                                                                                                                    |
| result               | issue_url               | string    | Jira issue URL                                                                                                                                                                                                    |
| result               | project_key             | string    | Jira project key                                                                                                                                                                                                  |
| jira_issue           | status                  | enum      | Work item status Read-only. Allowed enum values: `IN_PROGRESS`, `COMPLETED`, `FAILED`. Default: `IN_PROGRESS`.                                                                                                    |
| attributes           | key                     | string    | Key                                                                                                                                                                                                               |
| attributes           | modified_at             | date-time | Timestamp of when the work item was last modified Read-only.                                                                                                                                                      |
| attributes           | priority                | enum      | Work item priority Allowed enum values: `NOT_DEFINED`, `P1`, `P2`, `P3`, `P4`, `P5`. Default: `NOT_DEFINED`.                                                                                                      |
| attributes           | service_now_ticket      | object    | ServiceNow ticket attached to work item Read-only.                                                                                                                                                                |
| service_now_ticket   | result                  | object    | ServiceNow ticket information                                                                                                                                                                                     |
| result               | sys_target_link         | string    | Link to the Incident created on ServiceNow                                                                                                                                                                        |
| service_now_ticket   | status                  | enum      | Work item status Read-only. Allowed enum values: `IN_PROGRESS`, `COMPLETED`, `FAILED`. Default: `IN_PROGRESS`.                                                                                                    |
| attributes           | status                  | enum      | **DEPRECATED**: Deprecated way of representing the work item status, which only supports OPEN, IN_PROGRESS, and CLOSED statuses. Use `status_name` instead. Allowed enum values: `OPEN`, `IN_PROGRESS`, `CLOSED`. |
| attributes           | status_group            | enum      | Status group of the work item. Allowed enum values: `SG_OPEN`, `SG_IN_PROGRESS`, `SG_CLOSED`.                                                                                                                     |
| attributes           | status_name             | string    | Status of the work item. Must be one of the existing statuses for the work item's type.                                                                                                                           |
| attributes           | title                   | string    | Title                                                                                                                                                                                                             |
| attributes           | type                    | enum      | **DEPRECATED**: Work item type Allowed enum values: `STANDARD`.                                                                                                                                                   |
| attributes           | type_id                 | string    | Work item type UUID                                                                                                                                                                                               |
| data                 | id [*required*]         | string    | Work item's identifier                                                                                                                                                                                            |
| data                 | relationships           | object    | Resources related to a work item                                                                                                                                                                                  |
| relationships        | assignee                | object    | Relationship to user.                                                                                                                                                                                             |
| assignee             | data [*required*]       | object    | Relationship to user object.                                                                                                                                                                                      |
| data                 | id [*required*]         | string    | A unique identifier that represents the user.                                                                                                                                                                     |
| data                 | type [*required*]       | enum      | User resource type. Allowed enum values: `user`. Default: `user`.                                                                                                                                                 |
| relationships        | created_by              | object    | Relationship to user.                                                                                                                                                                                             |
| created_by           | data [*required*]       | object    | Relationship to user object.                                                                                                                                                                                      |
| data                 | id [*required*]         | string    | A unique identifier that represents the user.                                                                                                                                                                     |
| data                 | type [*required*]       | enum      | User resource type. Allowed enum values: `user`. Default: `user`.                                                                                                                                                 |
| relationships        | modified_by             | object    | Relationship to user.                                                                                                                                                                                             |
| modified_by          | data [*required*]       | object    | Relationship to user object.                                                                                                                                                                                      |
| data                 | id [*required*]         | string    | A unique identifier that represents the user.                                                                                                                                                                     |
| data                 | type [*required*]       | enum      | User resource type. Allowed enum values: `user`. Default: `user`.                                                                                                                                                 |
| relationships        | project                 | object    | Relationship to project.                                                                                                                                                                                          |
| project              | data [*required*]       | object    | Relationship to project object.                                                                                                                                                                                   |
| data                 | id [*required*]         | string    | A unique identifier that represents the project.                                                                                                                                                                  |
| data                 | type [*required*]       | enum      | Project resource type. Allowed enum values: `project`. Default: `project`.                                                                                                                                        |
| data                 | type [*required*]       | enum      | JSON:API resource type for work items. Allowed enum values: `case`. Default: `case`.                                                                                                                              |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "archived_at": "2019-09-19T10:00:00.000Z",
      "attributes": {
        "<any-key>": []
      },
      "closed_at": "2019-09-19T10:00:00.000Z",
      "created_at": "2019-09-19T10:00:00.000Z",
      "custom_attributes": {
        "<any-key>": {
          "is_multi": false,
          "type": "NUMBER",
          "value": {
            "description": "",
            "type": ""
          }
        }
      },
      "description": "string",
      "jira_issue": {
        "result": {
          "issue_id": "string",
          "issue_key": "string",
          "issue_url": "string",
          "project_key": "string"
        },
        "status": "COMPLETED"
      },
      "key": "CASEM-4523",
      "modified_at": "2019-09-19T10:00:00.000Z",
      "priority": "NOT_DEFINED",
      "service_now_ticket": {
        "result": {
          "sys_target_link": "string"
        },
        "status": "COMPLETED"
      },
      "status": "OPEN",
      "status_group": "SG_OPEN",
      "status_name": "Open",
      "title": "Memory leak investigation on API",
      "type": "STANDARD",
      "type_id": "3b010bde-09ce-4449-b745-71dd5f861963"
    },
    "id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
    "relationships": {
      "assignee": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "user"
        }
      },
      "created_by": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "user"
        }
      },
      "modified_by": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "user"
        }
      },
      "project": {
        "data": {
          "id": "e555e290-ed65-49bd-ae18-8acbfcf18db7",
          "type": "project"
        }
      }
    },
    "type": "case"
  }
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="400" %}
Bad Request

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="401" %}
Unauthorized

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="403" %}
Forbidden

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="404" %}
Not Found

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Path parameters
export case_id="f98a5a5b-e0ff-45d4-b2f5-afe6e74de504"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/cases/${case_id}/title" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "[UPDATED] Memory leak investigation on API"
    },
    "type": "case"
  }
}
EOF
```
{% /tab %}

{% tab label="Go" %}
```go
// Update case title returns "OK" response

package main

import (
	"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"
)

func main() {
	// there is a valid "case" in the system
	CaseID := os.Getenv("CASE_ID")

	body := datadogV2.CaseUpdateTitleRequest{
		Data: datadogV2.CaseUpdateTitle{
			Attributes: datadogV2.CaseUpdateTitleAttributes{
				Title: "[UPDATED] Memory leak investigation on API",
			},
			Type: datadogV2.CASERESOURCETYPE_CASE,
		},
	}
	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.UpdateCaseTitle(ctx, CaseID, body)

	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CaseManagementApi.UpdateCaseTitle`: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}

	responseContent, _ := json.MarshalIndent(resp, "", "  ")
	fmt.Fprintf(os.Stdout, "Response from `CaseManagementApi.UpdateCaseTitle`:\n%s\n", responseContent)
}
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=go) and then save the example to `main.go` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"
```
{% /tab %}

{% tab label="Java" %}
```java
// Update case title returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.CaseResourceType;
import com.datadog.api.client.v2.model.CaseResponse;
import com.datadog.api.client.v2.model.CaseUpdateTitle;
import com.datadog.api.client.v2.model.CaseUpdateTitleAttributes;
import com.datadog.api.client.v2.model.CaseUpdateTitleRequest;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = ApiClient.getDefaultApiClient();
    defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
    CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

    // there is a valid "case" in the system
    String CASE_ID = System.getenv("CASE_ID");

    CaseUpdateTitleRequest body =
        new CaseUpdateTitleRequest()
            .data(
                new CaseUpdateTitle()
                    .attributes(
                        new CaseUpdateTitleAttributes()
                            .title("[UPDATED] Memory leak investigation on API"))
                    .type(CaseResourceType.CASE));

    try {
      CaseResponse result = apiInstance.updateCaseTitle(CASE_ID, body);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling CaseManagementApi#updateCaseTitle");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=java) and then save the example to `Example.java` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"
```
{% /tab %}

{% tab label="Python" %}
```python
"""
Update case title returns "OK" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.case_management_api import CaseManagementApi
from datadog_api_client.v2.model.case_resource_type import CaseResourceType
from datadog_api_client.v2.model.case_update_title import CaseUpdateTitle
from datadog_api_client.v2.model.case_update_title_attributes import CaseUpdateTitleAttributes
from datadog_api_client.v2.model.case_update_title_request import CaseUpdateTitleRequest

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

body = CaseUpdateTitleRequest(
    data=CaseUpdateTitle(
        attributes=CaseUpdateTitleAttributes(
            title="[UPDATED] Memory leak investigation on API",
        ),
        type=CaseResourceType.CASE,
    ),
)

configuration = Configuration()
configuration.access_token = environ["DD_BEARER_TOKEN"]
with ApiClient(configuration) as api_client:
    api_instance = CaseManagementApi(api_client)
    response = api_instance.update_case_title(case_id=CASE_ID, body=body)

    print(response)
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=python) and then save the example to `example.py` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"
```
{% /tab %}

{% tab label="Ruby" %}
```ruby
# Update case title returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.access_token = ENV["DD_BEARER_TOKEN"]
end
api_instance = DatadogAPIClient::V2::CaseManagementAPI.new

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

body = DatadogAPIClient::V2::CaseUpdateTitleRequest.new({
  data: DatadogAPIClient::V2::CaseUpdateTitle.new({
    attributes: DatadogAPIClient::V2::CaseUpdateTitleAttributes.new({
      title: "[UPDATED] Memory leak investigation on API",
    }),
    type: DatadogAPIClient::V2::CaseResourceType::CASE,
  }),
})
p api_instance.update_case_title(CASE_ID, body)
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=ruby) and then save the example to `example.rb` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" rb "example.rb"
```
{% /tab %}

{% tab label="Rust" %}
```rust
// Update case title returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_case_management::CaseManagementAPI;
use datadog_api_client::datadogV2::model::CaseResourceType;
use datadog_api_client::datadogV2::model::CaseUpdateTitle;
use datadog_api_client::datadogV2::model::CaseUpdateTitleAttributes;
use datadog_api_client::datadogV2::model::CaseUpdateTitleRequest;

#[tokio::main]
async fn main() {
    // there is a valid "case" in the system
    let case_id = std::env::var("CASE_ID").unwrap();
    let body = CaseUpdateTitleRequest::new(CaseUpdateTitle::new(
        CaseUpdateTitleAttributes::new("[UPDATED] Memory leak investigation on API".to_string()),
        CaseResourceType::CASE,
    ));
    let configuration = datadog::Configuration::new();
    let api = CaseManagementAPI::with_config(configuration);
    let resp = api.update_case_title(case_id.clone(), body).await;
    if let Ok(value) = resp {
        println!("{:#?}", value);
    } else {
        println!("{:#?}", resp.unwrap_err());
    }
}
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=rust) and then save the example to `src/main.rs` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" cargo run
```
{% /tab %}

{% tab label="TypeScript" %}
```typescript
/**
 * Update case title returns "OK" response
 */

import { client, v2 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration({
  authMethods: {
    AuthZ: {
      accessToken: process.env.DD_BEARER_TOKEN as string,
    },
  },
});
const apiInstance = new v2.CaseManagementApi(configuration);

// there is a valid "case" in the system
const CASE_ID = process.env.CASE_ID as string;

const params: v2.CaseManagementApiUpdateCaseTitleRequest = {
  body: {
    data: {
      attributes: {
        title: "[UPDATED] Memory leak investigation on API",
      },
      type: "case",
    },
  },
  caseId: CASE_ID,
};

apiInstance
  .updateCaseTitle(params)
  .then((data: v2.CaseResponse) => {
    console.log(
      "API called successfully. Returned data: " + JSON.stringify(data)
    );
  })
  .catch((error: any) => console.error(error));
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=typescript) and then save the example to `example.ts` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" tsc "example.ts"
```
{% /tab %}
{% /tabs %}
