We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 515920d commit 074d29aCopy full SHA for 074d29a
src/main/java/org/opensearch/timeseries/rest/RestShareConfigAction.java
@@ -24,7 +24,21 @@
24
/**
25
* Registers REST API to handle detector/forecaster sharing.
26
* Here is an example request:
27
- *
+ * POST /_plugins/_anomaly_detection/detectors
28
+ * {
29
+ * "config_id" : <document_id>,
30
+ * "share_with" : {
31
+ * "AD_FULL_ACCESS": {
32
+ * "users": ["x"],
33
+ * "roles": ["y"],
34
+ * "backend_roles": ["z"]
35
+ * }
36
37
38
+ * example response:
39
40
+ * "message": "Resource <document_id> shared successfully with <share_with>"
41
42
*/
43
public class RestShareConfigAction extends BaseRestHandler {
44
public RestShareConfigAction() {}
0 commit comments