---
title: "Updates the BDMS.Models.Workflow defined in the workflowChangeRequest and creates a corresponding BDMS.Models.WorkflowChange."
method: POST
path: "/api/v{version}/workflow/change"
tags: ["Workflow"]
---

# Updates the BDMS.Models.Workflow defined in the workflowChangeRequest and creates a corresponding BDMS.Models.WorkflowChange.

`POST /api/v{version}/workflow/change`

## Path parameters

- `version` string, required

## Request body

- WorkflowChangeRequest — Represents a request to apply a change to a borehole's workflow, including updates to the status, assignee, and optional comments.
  - `boreholeId` integer, required — Gets or sets the identifier of the borehole whose workflow is being updated.
  - `newStatus` 'Draft' | 'InReview' | 'Reviewed' | 'Published' — Represents the status of a BDMS.Models.Workflow.
  - `comment` string, nullable — Gets or sets an optional comment.
  - `newAssigneeId` integer, nullable — Gets or sets the identifier of the new user assigned to the workflow.
  - `hasRequestedChanges` boolean, nullable — Gets or sets whether the workflow has requested changes.

## Response `200`

Applies a workflow change and updates the workflow.

## Other responses

- `400` — The workflow could not be created due to invalid input.
- `401` — The current user is not authorized to create workflow changes.
- `500` — The server encountered an unexpected condition that prevented it from fulfilling the request.

---

[API](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geoadmin/boreholes-rest-api-v2/revisions/e6d0b4ee0f52/schema)
