---
title: "POST /ver2/WorkflowRoleService.svc/workflowrole/copy"
method: POST
path: "/ver2/WorkflowRoleService.svc/workflowrole/copy"
tags: ["WorkflowRole"]
---

# POST /ver2/WorkflowRoleService.svc/workflowrole/copy

`POST /ver2/WorkflowRoleService.svc/workflowrole/copy`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/WorkflowRoleService.svc/workflowrole/copy`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/WorkflowRoleService.svc/workflowrole/copy/post.ts> (a function with typed inputs; its response is checked against the schema)

envianceSdk.workflows.copyWorkflowRole
```
[
  "5cd5138d-c792-4dec-ae92-8a6fc70ae4c4",
  "WorkflowRole1copied",
  "onsuccess",
  "onerror"
]
```
envianceSdk.workflows.copyWorkflowRoleAsync
```
[
  "5cd5138d-c792-4dec-ae92-8a6fc70ae4c4",
  "WorkflowRole1copied",
  "onsuccess",
  "onerror"
]
```

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- CopyWorkflowRole
  - `sourceId` string
  - `newRoleName` string

## Response `default`

not available

- string, guid

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
