Update Workflow Approval Status
curl --request PATCH \
--url https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "approve",
"notes": "<string>"
}
'import requests
url = "https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval"
payload = {
"action": "approve",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'approve', notes: '<string>'})
};
fetch('https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'action' => 'approve',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval"
payload := strings.NewReader("{\n \"action\": \"approve\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"approve\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"approve\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workflow_run_id": "<string>",
"status": "pending",
"created_at": "<string>",
"updated_at": "<string>",
"approved_by_client_id": "<string>",
"approved_at": "<string>",
"notes": "<string>",
"auto_saved": false,
"changes_applied": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Workflows
Update Workflow Approval Status
Update the approval status of a workflow run’s output.
Request Body:
action: One of “approve”, “reject”, or “pending”notes: Optional notes about the decision
Approval Flow:
- When approved, the workflow output will be applied to the data asset
- When rejected, the workflow output is discarded
- When set to pending, the approval is reset for re-review (clears previous decision)
Returns:
- 200: Approval updated successfully
- 400: Invalid action (e.g., trying to set to pending when already pending)
- 404: Approval not found for this run
PATCH
/
api
/
data-readiness
/
workflows
/
runs
/
{run_id}
/
approval
Update Workflow Approval Status
curl --request PATCH \
--url https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "approve",
"notes": "<string>"
}
'import requests
url = "https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval"
payload = {
"action": "approve",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'approve', notes: '<string>'})
};
fetch('https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'action' => 'approve',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval"
payload := strings.NewReader("{\n \"action\": \"approve\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"approve\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/data-readiness/workflows/runs/{run_id}/approval")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"approve\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workflow_run_id": "<string>",
"status": "pending",
"created_at": "<string>",
"updated_at": "<string>",
"approved_by_client_id": "<string>",
"approved_at": "<string>",
"notes": "<string>",
"auto_saved": false,
"changes_applied": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
JWT Bearer token authentication. Include the token in the Authorization header as: Authorization: Bearer <token>. The JWT must contain valid client_id, and project_id claims for tenant isolation and SDK routing.
Path Parameters
Workflow run ID
Body
application/json
Response
Successful Response
Approval response with information about applied changes.
Unique approval identifier
Workflow run ID
Approval status
Examples:
"pending"
"approved"
"rejected"
Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Client ID of approver
Approval timestamp (ISO 8601)
Approval notes
Whether this approval was auto-saved (no manual approval step)
Details of changes applied to the data asset
Was this page helpful?

