---
title: "Add a candidate starter to a case definition"
method: POST
path: "/cmmn-repository/case-definitions/{caseDefinitionId}/identitylinks"
tags: ["Case Definitions"]
---

# Add a candidate starter to a case definition

`POST /cmmn-repository/case-definitions/{caseDefinitionId}/identitylinks`

## Request

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

It is possible to add either a user or a group.

## Path parameters

- `caseDefinitionId` string, required

## Request body

- RestIdentityLink
  - `url` string
  - `user` string
  - `group` string
  - `type` string

## Response `201`

Indicates the case definition was found and the identity link was created.

- RestIdentityLink
  - `url` string
  - `user` string
  - `group` string
  - `type` string

## Other responses

- `400`: Indicates the body does not contain the correct information.
- `404`: Indicates the requested case definition 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)
