Approve SecObserve Assessments
secobserve_approve_observation_logApprove or reject pending observation assessments in the four-eyes workflow, clearing the 'Needs approval' queue. Rejections require 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: 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 |
|---|---|---|---|
| rejection_remark | No | Why the assessment was rejected. Required when assessment_status is 'Rejected'. | |
| assessment_status | Yes | 'Approved' accepts the assessment as submitted, 'Approved with edits' accepts it with the observation_log_* overrides below, 'Rejected' discards it. | |
| observation_log_ids | Yes | Observation log ids awaiting approval, 1 to 250. Find them with secobserve_list(resource='observation_logs', filters={'assessment_status': 'Needs approval'}). | |
| observation_log_comment | No | Replacement comment, only with 'Approved with edits'. | |
| observation_log_vex_justification | No | Replacement VEX justification, only with 'Approved with edits' and a single id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |