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

# \[DEPRECATED\] Update record details and status of the record like approve and reject.

`PUT /api/Public/update`

## 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/update`
- 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/update/put.ts> (a function with typed inputs; its response is checked against the schema)

Sample Request

         PUT
         {
           "RecordId":"23",
           "WorkflowName": "Test Workflow",
           "StageName": "Approval stage",  
           "IsDraft": false,        ///            
           "Values":{"Product Name":"Test Data","Product code":"1"}, //All section data except table sections
           "TableValues":[{
               "TableName":"Employees", //Name of the table
               "TableRowIds":"31|!32",  //Row id of the specific table. Refer "recorddetails" api response
               "Values":{   // All field values seperated by '|!' symbol
                   "Name":"xyz|!abc",      // "Fieldname":"all fieldvalues of the field"
                   "Designation":"Engg|!Marketing"
               }
           },
           {
               "TableName":"Employees", //Name of the table
               "TableRowIds":"31|!32",  //Row id of the specific table. Refer "recorddetails" api response
               "Values":{   // All field values seperated by '|!' symbol
                   "Name":"xyz|!abc",      // "Fieldname":"all fieldvalues of the field"
                   "Designation":"Engg|!Marketing"
               }
           }],
           "Status":"Approved",
           "IsWorkflow": true
        }

## Request body

- UpdateRequest
  - `recordId` integer, required: Record Id
  - `workflowName` string, required: Name of the workflow / lookup
  - `stageName` string, required: For workflows, enter the workflow stage display name as stage name. For lookup workflows, enter the lookup name as the stage name
  - `isDraft` boolean, required: Save the record as draft or not. True - If this need to be saved as draft, False - If needs to be submitted.
  - `values` unknown, required
  - `tableValues` TableValueUpdate[], required: Table section data
    - `tableName` string, required: Table section name
    - `tableRowIds` string, required: Table row id
    - `values` unknown
  - `status` string, required: Status of the record
  - `isWorkflow` boolean: True for Workflows (default) and False for Lookups

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