action openpolicy_post_simple_query { label: "Execute a simple query" description: "This API queries the document at */data/system/main* by default (however, you can [configure OPA](https://www.openpolicyagent.org/docs/latest/configuration/) to use a different path to serve these queries). That document defines the response.\nFor example, use the following in `PUT /v1/policies/{path}`) to define a rule that will produce a value for the */data/system/main* document:\n\n ```yaml\n package system\n main = msg {\n msg := sprintf(\"hello, %v\", input.user)\n }\n ```\n\nThe server will return a *not found* (404) response if */data/system/main* is undefined." provider: openpolicy method: POST path: "/" encoding: json input: { type: "object" } output: { type: "object" additionalProperties: true } }