---
title: "Map a created template to a department(s)."
method: POST
path: "/api/MapDepartments"
tags: ["Accounts"]
---

# Map a created template to a department(s).

`POST /api/MapDepartments`

## Headers

- `Authorization` string, required
- `UserName` string

## Request body

- EmsignerAPIBusinessObjectMapWorkflowToDepartments — Get OCR details by Document Id.
  - `DepartmentIds` string, required — Department Ids(fetched using ListDepartments)- Comma separated values of departments to be mapped, "" if want to remove access for all departments
  - `TemplateId` integer, required — TemplateId - Id of the Workflow for which access needs to be mapped (fetched using ListTemplates)

## Response `200`

OK

- EMDMSHelperReturnObjectSystemInt64
  - `IsSuccess` boolean
  - `Messages` string[]
  - `ErrorCode` integer
  - `Response` integer

---

[API](https://skmtc.dev/emsigner/apis/emsignerapi.md) · [All operations](https://skmtc.dev/emsigner/apis/emsignerapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/emsigner/emsignerapi/revisions/7d5d55e0d91d/schema)
