Skip to content

Commit cc999e9

Browse files
authored
Some payloads coming from Atomic Red team are marked as "Manual"
1 parent bbb261b commit cc999e9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyobas/apis/payload.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ def upsert(self, payload: Dict[str, Any], **kwargs: Any) -> Dict[str, Any]:
1717
path = f"{self.path}/upsert"
1818
result = self.openbas.http_post(path, post_data=payload, **kwargs)
1919
return result
20+
21+
@exc.on_http_error(exc.OpenBASUpdateError)
22+
def deprecate(
23+
self, payloads_processed: Dict[str, Any], **kwargs: Any
24+
) -> Dict[str, Any]:
25+
path = f"{self.path}/deprecate"
26+
result = self.openbas.http_post(path, post_data=payloads_processed, **kwargs)
27+
return result

0 commit comments

Comments
 (0)