---
title: "Change current pre employee workflow step"
method: PATCH
path: "/pre-employees/workflow-steps"
tags: ["WorkflowSteps"]
---

# Change current pre employee workflow step

`PATCH /pre-employees/workflow-steps`

Change pre employees current step. It's not allowed to move back to INVITED or PENDING step after admission has started. Also, it's not allowed to move to BENEFITS step if all required documents hasn't been sent and approved.

## Request body

- object
  - `ids` number[], required — Pre-employee internal id found in the route [GET] /pre-employees
  - `currentWorkflowStep` string, required — Current step
  - `newWorkflowStep` string, required — New step

## Response `200`

Pre employees moved successfully

- object
  - `data` object[] — List off all updated pre employees
    - `id` number — Pre employee internal id
    - `hiringDate` string, date-time — Hiring date of the pre employee (ISO 8601 format)
    - `fullName` string — Full name of the pre employee
    - `email` string, email — Email of the pre employee
    - `identificationDocument` string — Brazilian CPF number of the pre employee (only numbers)
    - `workflowStep` string — Pre employee current step

## Other responses

- `400` — Error while updating pre employee workflow step

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/revisions/3f26defa2a42/schema)
