---
title: "Update status of the record like approve and reject."
method: PUT
path: "/api/Public/updaterecordstatus"
tags: ["Public"]
---

# Update status of the record like approve and reject.

`PUT /api/Public/updaterecordstatus`

## Request

- Base URL: `https://apidocs.cflowapps.com` (the document declares no server; this is the origin it was published from)
- URL: `https://apidocs.cflowapps.com/api/Public/updaterecordstatus`
- Auth: API key in header `X-Api-Key` and API key in header `X-User-Key`
- TypeScript: <https://skmtc.dev/cflowapps/apis/cflow-public-api/docs/api/Public/updaterecordstatus/put.ts> (a function with typed inputs; its response is checked against the schema)

Sample request:
            
    PUT 
    {
         "RecordId":"10"
         "WorkflowName":"Test Workflow",
         "StageName":"Approval stage",
         "Status":"Approved",
         "Comments":""
    }

## Request body

- StatusChange
  - `recordId` integer, required: Record Id
  - `workflowName` string, required: Name of the workflow
  - `stageName` string, required: Name of the stage
  - `status` string, required: One of valid status values for this stage, such as Approved, Rejected, Completed and so on.
  - `comments` string, nullable: Comments to be added

## Response `200`

Return status of the request

- SubmitResponse
  - `recordId` string, nullable: Record Id
  - `status` string, nullable: Status of the Submitted Record
  - `message` string, nullable: Message provided when there is an invalid input

## Other responses

- `400`: The status does not exist. The record has not been updated as you have sent an invalid status.
- `401`: The record has not been updated as the user doesn't have access to the record.
- `403`: Forbidden
- `404`: The record has not been updated as the record is no longer present in this group. Please check if the record still exists in this group.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cflowapps/apis/cflow-public-api.md) - [All operations](https://skmtc.dev/cflowapps/apis/cflow-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cflowapps/apis/cflow-public-api/revisions/af0dadd0ad10?raw)
