---
title: "Create a Workflow Delegation"
method: POST
path: "/workflowdelegationmanager.add"
tags: ["Workflow Delegation"]
---

# Create a Workflow Delegation

`POST /workflowdelegationmanager.add`

Adds a new delegation record. Allows you to assign approval rights to another user and set the time period in which the delegation should be active.

<!-- theme: warning -->
> Use the `/workflowdelegationmanager.checkdates` (**Validate a Workflow Delegation**) endpoint to ensure that all provided dates are valid and there are no conflicts.

## Request body

- object
  - `data` object, required
    - `sourceUser` string — The name of the user whose workflow you want to delegate.
    - `targetUser` string — The name of the user you want to delegate a workflow to.
    - `startDate` string, required — The date from which the workflow delegation should come into effect.
    - `endDate` string, required — The date until which the workflow delegation should be effective.
    - `note` string — A comment for the workflow delegation.
    - `sourceUserId` string, required — The ID of the user whose workflow you want to delegate.
    - `targetUserId` string, required — The ID of the user you want to delegate a workflow to.

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` object[]
      - `version` number
      - `typedId` string
      - `uniqueName` string
      - `label` unknown
      - `sourceUserId` number
      - `sourceUser` string
      - `targetUserId` number
      - `targetUser` string
      - `status` string
      - `note` string
      - `createdByAdmin` boolean
      - `createDate` string
      - `createdBy` number
      - `lastUpdateDate` string
      - `lastUpdateBy` number
      - `startDate` string
      - `endDate` string
    - `status` number

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
