---
title: "PATCH /ver2/WorkflowService.svc/workflows/bulk"
method: PATCH
path: "/ver2/WorkflowService.svc/workflows/bulk"
tags: ["Workflow"]
---

# PATCH /ver2/WorkflowService.svc/workflows/bulk

`PATCH /ver2/WorkflowService.svc/workflows/bulk`

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

envianceSdk.workflows.updateWorkflowStep
```
[
  "22cf40b5-b001-47ce-8853-020dc9e9aa8e",
  "Oleg FT Step1",
  {
    "comment": "my comment",
    "transition": {
      "dueDate": "2013-02-15T00:00:00",
      "stepActionName": "Oleg FT Step1 Action1",
      "assignTo": [
        {
          "userIdOrName": "oleg"
        },
        {
          "userIdOrName": "vitek"
        },
        {
          "groupIdOrName": "Administrators"
        },
        {
          "groupIdOrName": "BL Group"
        }
      ]
    },
    "fields": [
      {
        "name": "Oleg FT 1 = dt date",
        "values": [
          "2013-02-01T00:00:00"
        ]
      },
      {
        "name": "Oleg FT 1 = url",
        "urlItems": [
          {
            "label": "may label",
            "url": "http://mail.ru"
          }
        ]
      },
      {
        "name": "oleg FT 1 = num ddl linked 2",
        "values": [
          "100",
          "100"
        ]
      },
      {
        "name": "oleg FT 1 = text multi",
        "values": [
          "val1",
          "val3"
        ]
      }
    ]
  },
  "onsuccess",
  "onerror"
]
```
envianceSdk.workflows.updateWorkflowStepExt
```
[
  {
    "workflowIdOrUniqueId": "22cf40b5-b001-47ce-8853-020dc9e9aa8e",
    "stepIdOrName": "Oleg FT Step1",
    "stepInfo": {
      "comment": "my comment",
      "transition": {
        "dueDate": "2013-02-15T00:00:00",
        "stepActionName": "Oleg FT Step1 Action1",
        "assignTo": [
          {
            "userIdOrName": "oleg"
          },
          {
            "userIdOrName": "vitek"
          },
          {
            "groupIdOrName": "Administrators"
          },
          {
            "groupIdOrName": "BL Group"
          }
        ]
      },
      "fields": [
        {
          "name": "Oleg FT 1 = dt date",
          "values": [
            "2013-02-01T00:00:00"
          ]
        },
        {
          "name": "Oleg FT 1 = url",
          "urlItems": [
            {
              "label": "may label",
              "url": "http://mail.ru"
            }
          ]
        },
        {
          "name": "oleg FT 1 = num ddl linked 2",
          "values": [
            "100",
            "100"
          ]
        },
        {
          "name": "oleg FT 1 = text multi",
          "values": [
            "val1",
            "val3"
          ]
        }
      ]
    },
    "clientRequestId": "64AA5290-15F2-451B-9EF3-4494F66FE59E"
  },
  "onsuccess",
  "onerror"
]
```
envianceSdk.workflows.updateWorkflows
```
[
  [
    {
      "workflowIdOrUniqueId": "2022.01.24.02.37D8CC867814",
      "dueDate": "2021-01-24T04:00:00",
      "name": "ryWIbulk-1-rename",
      "assignedTo": [
        {
          "userIdOrName": "yuromanova"
        },
        {
          "groupIdOrName": "TESTGroup"
        }
      ],
      "objects": [
        "/-- div"
      ],
      "calendars": [
        "My",
        "Object",
        "System"
      ],
      "comment": "commentstest",
      "documents": [
        "/RY Folder WF/RY Folder 2/eql.txt"
      ],
      "step": {
        "fields": [
          {
            "name": "GX2BooleanCB",
            "values": [
              "true"
            ]
          },
          {
            "name": "GX2NumberTextBox",
            "values": [
              "0"
            ]
          }
        ]
      }
    },
    {
      "workflowIdOrUniqueId": "2022.01.24.02.37D8CC867815",
      "dueDate": "2021-01-24T04:00:00",
      "name": "ryWIbulk-2-rename",
      "assignedTo": [
        {
          "userIdOrName": "yuromanova"
        }
      ],
      "objects": [
        "/-- div"
      ],
      "step": {
        "fields": [
          {
            "name": "GX2BooleanCB",
            "values": [
              "true"
            ]
          }
        ]
      }
    }
  ],
  "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

- UpdateWorkflows
  - `workflowUpdateInfos` EnvianceRestServicesVer2WorkflowsWorkflowWithStepUpdateInfo[]
    - `id` string, guid
    - `uniqueId` string
    - `name` string
    - `workflowTypeName` string
    - `parentUniqueId` string, guid
    - `parentWorkflowSourceCustomField` EnvianceRestServicesCommonCustomFieldInfo
      - `id` string, guid
      - `name` string
    - `dueDate` string, date-time
    - `status` string
    - `creator` string
    - `created` string, date-time
    - `lastRun` string, date-time
    - `assignedBy` string
    - `assignedTo` EnvianceRestServicesCommonAssigneeV2[]
      - `userIdOrName` string
      - `groupIdOrName` string
    - `objects` string[]
    - `documents` string[]
    - `calendars` string[]
    - `comment` string
    - `closeDate` string, date-time
    - `jsonData` object
    - `workflowIdOrUniqueId` string
    - `step` EnvianceRestServicesVer2WorkflowsWorkflowStepInfo
      - `id` string, guid
      - `name` string
      - `comment` string
      - `fields` EnvianceRestServicesUdfsProperty[]
        - `name` string
        - `urlItems` EnvianceBusinessUdfRestUrlItem[]
          - `label` string
          - `url` string
        - `values` string[]
        - `beginDate` string, date-time
        - `endDate` string, date-time
        - `caption` string
        - `captionLocalized` string
      - `transition` EnvianceRestServicesVer2WorkflowsTransition
        - `stepActionName` string
        - `assignTo` EnvianceRestServicesCommonAssigneeV2[]
          - `userIdOrName` string
          - `groupIdOrName` string
        - `dueDate` string, date-time
        - `closeDate` string, date-time
      - `taskCompletion` EnvianceRestServicesVer2TasksTaskOccurrenceInfo[]
        - `statusChangeDate` string, date-time
        - `objectIdOrPath` string
        - `dismissed` boolean
        - `percentComplete` string, byte
        - `hoursToComplete` number, double
        - `costToComplete` number
        - `comment` string
        - `eventInstanceId` string, guid
        - `compliancePeriodStartDate` string, date-time
        - `compliancePeriodEndDate` string, date-time
        - `comply` string
        - `ObjectId` string, guid

## Response `default`

not available

---

[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)
