diff --git a/openapi-specs/cwpp/desc/trust/data_put.md b/openapi-specs/cwpp/desc/trust/data_put.md index 0e6a0ba49..61180b43c 100644 --- a/openapi-specs/cwpp/desc/trust/data_put.md +++ b/openapi-specs/cwpp/desc/trust/data_put.md @@ -10,7 +10,30 @@ $ curl -k \ -u \ -H 'Content-Type: application/json' \ -X PUT \ - -d '{"image":"ubuntu/16.04", "_id":"docker-ubuntu-group"}' \ + -d '{ + "groups": [ + { + "_id": "test", + "images": [ + "docker.io/skywalke34/struts:*" + ] + } + ], + "policy": { + "enabled": true, + "rules": [ + { + "collections": [ + { + "name": "All" + } + ], + "effect": "alert", + "name": "Default - alert all" + } + ] + } +}' \ https:///api/v/trust/data ```