POST
/
review-status
const options = {
  method: 'POST',
  headers: {
    'x-api-key': '<your-api-key>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    jobId: '123e4567-e89b-12d3-a456-426614174000',
    reviewStatus: 'APPROVED',
  }),
};

fetch('https://api.getomni.ai/review-status', options)
  .then((response) => response.json())
  .then((response) => console.log(response))
  .catch((err) => console.error(err));
{
  "success": true
}

This endpoint allows you to update the review status of a specific job. This is useful for human-in-the-loop workflows where you need to mark jobs as approved, rejected, or under review.

Request Body

jobId
string
required

The ID of the job to update

reviewStatus
enum
required

Update the review status of the job. Valid values are: APPROVED, CANCELLED, PENDING, REJECTED

Response

success
boolean

Whether the review status was updated successfully

const options = {
  method: 'POST',
  headers: {
    'x-api-key': '<your-api-key>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    jobId: '123e4567-e89b-12d3-a456-426614174000',
    reviewStatus: 'APPROVED',
  }),
};

fetch('https://api.getomni.ai/review-status', options)
  .then((response) => response.json())
  .then((response) => console.log(response))
  .catch((err) => console.error(err));
{
  "success": true
}