lib/hackerone/client/program.rb in hackerone-client-0.14.2 vs lib/hackerone/client/program.rb in hackerone-client-0.15.0
- old
+ new
@@ -47,9 +47,19 @@
def find_group(groupname)
groups.find { |group| group.name == groupname }
end
+ def update_policy(policy:)
+ body = {
+ type: "program-policy",
+ attributes: {
+ policy: policy
+ }
+ }
+ make_put_request("programs/#{id}/policy", request_body: body)
+ end
+
def common_responses(page_number: 1, page_size: 100)
make_get_request(
"programs/#{id}/common_responses",
params: { page: { number: page_number, size: page_size } }
)