---
title: "PATCH /ver2/WorkflowRoleService.svc/workflowrole/{roleId}"
method: PATCH
path: "/ver2/WorkflowRoleService.svc/workflowrole/{roleId}"
tags: ["WorkflowRole"]
---

# PATCH /ver2/WorkflowRoleService.svc/workflowrole/{roleId}

`PATCH /ver2/WorkflowRoleService.svc/workflowrole/{roleId}`

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

["7bd06df1-041b-4d1e-8091-1e74f7dd7219",{"name":"WorkflowRole1update""description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo","defaultMembers": {"userIdsOrNames": ["User1"],"groupIdsOrNames": ["group1"]},"onsuccess","onerror"]["7bd06df1-041b-4d1e-8091-1e74f7dd7219",{"name":"WorkflowRole1update""description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo","defaultMembers": {"userIdsOrNames": ["User1"],"groupIdsOrNames": ["group1"]},"onsuccess","onerror"]

## Path parameters

- `roleId` string, required

## 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

- UpdateWorkflowRole
  - `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)
