We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30d0c56 + 907a76e commit cbca969Copy full SHA for cbca969
src/cbapi/response/models.py
@@ -308,6 +308,17 @@ def feed(self):
308
def trigger_ioc(self):
309
return self.ioc_attr
310
311
+ # override the Alert API URL to /api/v1/alert when performing POST/PUTs
312
+ def _build_api_request_uri(self, http_method="GET"):
313
+ if http_method == "GET":
314
+ return super(Alert, self)._build_api_request_uri(http_method)
315
+ else:
316
+ baseuri = "/api/v1/alert"
317
+ if self._model_unique_id is not None:
318
+ return baseuri + "/%s" % self._model_unique_id
319
320
+ return baseuri
321
+
322
323
class Feed(MutableBaseModel, CreatableModelMixin):
324
swagger_meta_file = "response/models/feed.yaml"
0 commit comments