Approve or reject an approval request
Requires ADMIN.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
Tenant project id (row-level isolation on every query).
id
required
string
Resource id.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
action
required
string
note
string | null
Responses
Section titled “Responses”Reviewed; returns resulting status (approved/rejected).
Media typeapplication/json
object
ok
boolean
status
string
Request body failed Zod validation.
Media typeapplication/json
Validation error envelope with per-field issues.
object
error
string
issues
Array<object>
object
path
string
message
string
Examplegenerated
{ "error": "example", "issues": [ { "path": "example", "message": "example" } ]}Not authenticated (no valid session/principal).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Authenticated but lacks the required project role.
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}