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

# POST /ver2/WorkflowRoleService.svc/workflowrole

`POST /ver2/WorkflowRoleService.svc/workflowrole`

## 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`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/WorkflowRoleService.svc/workflowrole/post.ts> (a function with typed inputs; its response is checked against the schema)

envianceSdk.workflows.createWorkflowRole
```
[
  {
    "name": "WorkflowRole1",
    "description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo",
    "defaultMembers": {
      "userIdsOrNames": [
        "user1"
      ],
      "groupIdsOrNames": [
        "group1"
      ]
    }
  },
  "onsuccess",
  "onerror"
]
```
envianceSdk.workflows.createWorkflowRoleAsync
```
[
  {
    "name": "WorkflowRole1",
    "description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo",
    "defaultMembers": {
      "userIdsOrNames": [
        "user1"
      ],
      "groupIdsOrNames": [
        "group1"
      ]
    }
  },
  "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

- CreateWorkflowRole
  - `workflowRoleInfo` EnvianceRestServicesVer2WorkflowsRoleWorkflowRoleInfo
    - `id` string, guid
    - `name` string
    - `description` string
    - `defaultMembers` EnvianceRestServicesVer2WorkflowsRoleDefaultMembers
      - `userIdsOrNames` string[]
      - `groupIdsOrNames` 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)
