---
title: "Update case instance properties or execute an action on a case instance (body needs to contain an 'action' property for the latter)."
method: PUT
path: "/cmmn-runtime/case-instances/{caseInstanceId}"
tags: ["Case Instances"]
---

# Update case instance properties or execute an action on a case instance (body needs to contain an 'action' property for the latter).

`PUT /cmmn-runtime/case-instances/{caseInstanceId}`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-runtime/case-instances/{caseInstanceId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-runtime/case-instances/:caseInstanceId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `caseInstanceId` string, required

## Request body

- CaseInstanceUpdateRequest
  - `action` string
  - `name` string
  - `businessKey` string
  - `businessStatus` string
  - `dueDate` string, date-time
  - `assignee` string

## Response `200`

Indicates the case instance was found and the action/update is performed.

- CaseInstanceResponse
  - `id` string
  - `name` string
  - `url` string
  - `businessKey` string
  - `businessStatus` string
  - `dueDate` string, date-time
  - `claimTime` string, date-time
  - `claimedBy` string
  - `startTime` string, date-time
  - `startUserId` string
  - `state` string
  - `ended` boolean
  - `caseDefinitionId` string
  - `caseDefinitionUrl` string
  - `caseDefinitionName` string
  - `caseDefinitionDescription` string
  - `parentId` string
  - `callbackId` string
  - `callbackType` string
  - `referenceId` string
  - `referenceType` string
  - `variables` RestVariable[]
    - `name` string: Name of the variable
    - `type` string: Type of the variable.
    - `value` object: Value of the variable.
    - `valueUrl` string
    - `scope` string
  - `tenantId` string
  - `completed` boolean

## Other responses

- `204`: Indicates the case was found, the change was performed and it caused the case instance to end.
- `400`: Indicates an illegal parameter was passed, required parameters are missing in the request body or illegal variables are passed in. Status description contains additional information about the error.
- `404`: Indicates the case instance was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/revisions/afdfa1fcacd0?raw)
