Review a flagged project
const url = 'https://api.deploybase.eu/api/v1/api/v1/admin/abuse-scans/example/review';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"resolution":"example","review_status":"example","scope":"scan"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.deploybase.eu/api/v1/api/v1/admin/abuse-scans/example/review \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "resolution": "example", "review_status": "example", "scope": "scan" }'Marks a new scan dismissed or actioned, and with scope=project every other open flagged scan of its project too. Only a finished scan still in review_status new (or superseded but live again) can be reviewed.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Scan ID
Request Body
Section titled “ Request Body ”Decision
object
Scope “project” applies the decision to every open flagged scan of the scan’s project (other branches, an older deployment live again). Empty or “scan”: this scan only.
Responses
Section titled “ Responses ”OK
object
object
object
DeploymentURL is the scanned deployment’s URL, as text: never render it as a link.
object
object
object
object
OthersInProject is not a column: the admin list and detail fill it with the project’s other open listed scans (other branches, or an older deployment live again), DEP-880.
object
Example generated
{ "data": { "deployment_url": "example", "hosts": [ "example" ], "reports": [ { "category": "example", "created_at": "example", "id": "example", "status": "example" } ], "scan": { "branch": "example", "created_at": "example", "deployment_id": "example", "error": "example", "files_scanned": 1, "handled_at": "example", "handled_by": "example", "id": "example", "matches": [ { "category": "example", "examples": [ { "path": "example", "snippet": "example" } ], "hits": 1, "rule_id": "example" } ], "others_in_project": 1, "priority": "example", "project_id": "example", "resolution": "example", "review_status": "example", "scanned_at": "example", "score": 1, "status": "example", "team_id": "example", "truncated": true }, "team": { "name": "example", "plan": "example", "suspended": true } }, "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Bad Request
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Unauthorized
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Forbidden
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Not Found
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}The scan was already reviewed, was replaced by a newer deploy, or has not finished
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Internal Server Error
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Service Unavailable
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Live 582ac705 built