Skip to content

Approve, reject, or edit a single requirement suggestion

POST
/projects/{id}/roadmap-check/{checkId}/suggestions/{suggestionId}/action
curl --request POST \
--url https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/roadmap-check/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/suggestions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "action": "approve" }'

Updates the row’s approval_status and (for edits) stores edited_payload which overrides the AI’s defaults at apply time. Idempotent.

id
required
string format: uuid

Project UUID

checkId
required
string format: uuid
suggestionId
required
string format: uuid
Media type application/json
One of:
object
action
required
string
Allowed values: approve

Updated suggestion row

Media type application/json
object
suggestion
object

Invalid action body

Not authenticated

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
reconnect

True if re-linking GitHub may fix the issue

boolean

Forbidden

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Suggestion not found

Suggestion has already been applied and cannot be modified