class ChefZero::Endpoints::PolicyRevisionsEndpoint

/organizations/ORG/policies/NAME/revisions

Public Instance Methods

post(request) click to toggle source

POST /organizations/ORG/policies/NAME/revisions

# File lib/chef_zero/endpoints/policy_revisions_endpoint.rb, line 8
def post(request)
  policyfile_data = parse_json(request.body)
  create_data(request, request.rest_path, policyfile_data["revision_id"], request.body, :create_dir)
  already_json_response(201, request.body)
end