Approve a suggestion
Changed onApprove a pending suggestion. The owning agent will then execute the fix.
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/action_item/{actionItemId}/suggestions/{id}/approve
- AuthHTTP bearer
Path parameters
The action item ID.
The suggestion ID.
Response
The approved suggestion.
Example response
{
"id": "sUg123AbCdEf",
"slug": "update-dockerfile-base-image",
"action_item_id": "xYz789AbCdEf",
"status": "pending",
"created_by": "security-scanner-agent",
"owner": "image-updater-agent",
"confidence": 0.92,
"description": "Update the Dockerfile base image to resolve CVE-2026-1234.",
"metadata": {
"repository": "org/my-api-service",
"branch": "fix/cve-2026-1234"
},
"user_metadata": {
"target_version": "20-alpine3.19"
},
"execution_result": {
"success": true,
"message": "Base image updated successfully.",
"details": {
"pull_request": "https://github.com/org/my-api-service/pull/42"
}
},
"expires_at": "2026-05-15",
"created_at": "2026-04-06T12:30:00.000Z",
"updated_at": "2026-04-06T12:30:00.000Z"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response property
became optional for the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
removed
subschema #1subschema #2from the response bodyoneOflist for the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
response property
messagedeprecated - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking