Skip to main content
POST
/
api
/
govern
/
data-access
/
policies
/
bulk
Create or update many Ranger policies in one request
curl --request POST \
  --url https://api.example.com/api/govern/data-access/policies/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'rows=<string>' \
  --form 'excel_file=<string>'
{
  "total": 123,
  "created": 123,
  "updated": 123,
  "failed": 123,
  "results": [
    {
      "row_index": 123,
      "name": "<string>",
      "policy_id": 123,
      "error": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
rows
string | null

JSON array of PolicyRow

excel_file
string | null

Response

Successful Response

Aggregate response for the bulk-create endpoint.

total
integer
required

Total result lines — equals created + updated + failed. A multi-database row contributes one line per derived policy, so this may exceed the number of submitted rows.

created
integer
required
updated
integer
required
failed
integer
required
results
BulkPolicyResult · object[]
required