---
title: "Create an identity link on a task"
method: POST
path: "/cmmn-runtime/tasks/{taskId}/identitylinks"
tags: ["Task Identity Links"]
---

# Create an identity link on a task

`POST /cmmn-runtime/tasks/{taskId}/identitylinks`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-runtime/tasks/{taskId}/identitylinks`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-runtime/tasks/:taskId/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

- `taskId` string, required

## Request body

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

## Response `201`

Indicates the task was found and the identity link was created.

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

## Other responses

- `404`: Indicates the requested task was not found or the task does not have the requested identityLink. The status contains additional information about this error.

---

[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)
