POST
/
policies
{
  "environment_id": "ENV01FXJJFRNH8J1RBX7CCV2APD1M",
  "id": "POL01FXJJFRNH8J1RBX7CCV2APD1G",
  "name": "multi_tenant_policy",
  "permissions": [
    "query"
  ],
  "query_rules": [
    {
      "tables": [
        "users",
        "orders"
      ],
      "columns": [
        {
          "allow": [
            "id",
            "email",
            "name"
          ],
          "deny": [
            "password",
            "ssn"
          ]
        }
      ],
      "rows": "tenant_id = '123'"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z"
}

Body

application/json

The policy to create.

The body is of type object.

Response

200 - application/json

The request has succeeded.

The response is of type object.