Skip to content

Advance Target

POST
/api/integrations/targets/{composite_key}/advance
curl --request POST \
--url https://app.lionrapid.com/api/integrations/targets/example/advance

Advance a single confirmed row to the next workflow stage.

Preconditions:

  • Caller must be able to edit this row at its current stage
  • Row must be confirmed (or locked) — same gate as dashboard’s bulk advance, prevents pushing unreviewed work forward

On success:

  • row.stage_index += 1 (capped at total_stages — postreview)
  • is_confirmed cleared so the next stage’s reviewer starts fresh
  • emits ROW_STAGE_ADVANCED so other browsers / dashboard refresh

Per-file workflow note: this endpoint refuses per_file projects because in that mode rows advance together as a target, not individually. The sidebar should hide the Advance button when workflow_mode == ‘per_file’.

composite_key
required
Composite Key
string
surface
Any of:
string
x-api-key
Any of:
string
x-lr-surface
Any of:
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}