---
title: "Update case project"
method: PATCH
path: "/api/v2/cases/{case_id}/relationships/project"
tags: ["Case Management"]
---

# Update case project

`PATCH /api/v2/cases/{case_id}/relationships/project`

Update the project associated with a case

## Path parameters

- `case_id` string, required

## Request body

- ProjectRelationship — Relationship to project.
  - `data` ProjectRelationshipData, required — Relationship to project object.
    - `id` string, required — A unique identifier that represents the project.
    - `type` 'project', required — Project resource type.

## Response `200`

OK

- CaseResponse — Case response
  - `data` Case — A case
    - `attributes` CaseAttributes, required — Case resource attributes
      - `archived_at` string, date-time, nullable — Timestamp of when the case was archived
      - `attributes` CaseObjectAttributes — Key-value pairs of case attributes. Each key maps to an array of string values, used for flexible metadata such as labels or tags.
      - `closed_at` string, date-time, nullable — Timestamp of when the case was closed
      - `created_at` string, date-time — Timestamp of when the case was created
      - `custom_attributes` object — Case custom attributes
      - `description` string — Description
      - `jira_issue` JiraIssue, nullable — Jira issue attached to case
        - `result` JiraIssueResult — Jira issue information
          - `issue_id` string — Jira issue ID
          - `issue_key` string — Jira issue key
          - `issue_url` string — Jira issue URL
          - `project_key` string — Jira project key
        - `status` 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' — Case status
      - `key` string — Key
      - `modified_at` string, date-time, nullable — Timestamp of when the case was last modified
      - `priority` 'NOT_DEFINED' | 'P1' | 'P2' | 'P3' | 'P4' | 'P5' — Case priority
      - `service_now_ticket` ServiceNowTicket, nullable — ServiceNow ticket attached to case
        - `result` ServiceNowTicketResult — ServiceNow ticket information
          - `sys_target_link` string — Link to the Incident created on ServiceNow
        - `status` 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' — Case status
      - `status` 'OPEN' | 'IN_PROGRESS' | 'CLOSED' — Deprecated way of representing the case status, which only supports OPEN, IN_PROGRESS, and CLOSED statuses. Use `status_name` instead.
      - `status_group` 'SG_OPEN' | 'SG_IN_PROGRESS' | 'SG_CLOSED' — Status group of the case.
      - `status_name` string — Status of the case. Must be one of the existing statuses for the case's type.
      - `title` string — Title
      - `type` 'STANDARD' — Case type
      - `type_id` string — Case type UUID
    - `id` string, required — Case's identifier
    - `relationships` CaseRelationships — Resources related to a case
      - `assignee` NullableUserRelationship, nullable — Relationship to user.
        - `data` NullableUserRelationshipData, nullable, required — Relationship to user object.
          - `id` string, required — A unique identifier that represents the user.
          - `type` 'user', required — User resource type.
      - `created_by` NullableUserRelationship, nullable — Relationship to user.
        - `data` NullableUserRelationshipData, nullable, required — Relationship to user object.
          - `id` string, required — A unique identifier that represents the user.
          - `type` 'user', required — User resource type.
      - `modified_by` NullableUserRelationship, nullable — Relationship to user.
        - `data` NullableUserRelationshipData, nullable, required — Relationship to user object.
          - `id` string, required — A unique identifier that represents the user.
          - `type` 'user', required — User resource type.
      - `project` ProjectRelationship — Relationship to project.
        - `data` ProjectRelationshipData, required — Relationship to project object.
          - `id` string, required — A unique identifier that represents the project.
          - `type` 'project', required — Project resource type.
    - `type` 'case', required — JSON:API resource type for cases.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
