Approve SecObserve Assessments
secobserve_approve_observation_logApprove or reject pending observation log assessments in a four-eyes workflow. Requires a non-submitter approver; rejection includes a remark for the submitter.
Instructions
Approve or reject assessments waiting in 'Needs approval' (the four-eyes workflow).
Only an approver other than the submitter can clear a pending assessment, and until it is cleared the observation accepts no further assessment. Rejection requires a remark, which is what the submitter sees.
Args: params (ApproveInput): Validated input containing: - observation_log_ids (List[int]): 1-250 pending observation log ids. - assessment_status (ApprovalStatus): "Approved", "Approved with edits" or "Rejected". - rejection_remark (Optional[str]): Required when rejecting. - observation_log_comment (Optional[str]): Replacement comment, only with "Approved with edits". - observation_log_vex_justification (Optional[VexJustification]): Replacement justification, only with "Approved with edits" and one id.
Returns: str: A confirmation naming the verdict and how many logs it was applied to. Single-id calls use the per-log endpoint, several ids the bulk endpoint.
Examples: - Use when: "approve the pending assessment on log 991" -> observation_log_ids=[991], assessment_status="Approved" - Use when: "reject 991, the justification does not match the evidence" -> assessment_status="Rejected", rejection_remark="..." - Use when: clearing a review queue -> list observation_logs filtered by assessment_status="Needs approval", then pass the ids here. - Don't use when: making the assessment itself (use secobserve_assess_observation).
Error Handling: 403 means the token may not approve, or is the submitter's own -- SecObserve refuses self-approval. 400 means the log is not in 'Needs approval' any more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |