Manage Write Policies
Write policies API endpoint reference guide
The policies resource allows you to manage and apply policies to your data sources. The endpoints and examples provided in this guide are specific to creating global write policies.
Endpoints
POST /dataSource/{dataSourceId}/access
POST /dataSource/{dataSourceId}/accessManually grants write access to a user.
curl -X 'POST' \
'https://www.organization.immuta.com/dataSource/6/access' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: 846e9e43c86a4ct1be14290d95127d13f' \
-d '{
"profileId": 3,
"state": "subscribed",
"accessGrant": "WRITE"
}'Path parameter
dataSourceId integer
The unique identifier of the data source.
Body parameters
The request accepts a JSON or YAML payload. See the write access manual grant payload description for parameter details.
Response
The response returns a JSON object. See the payload reference guide for details about the response schema.
POST /policy/global
POST /policy/globalCreates a global policy.
The example below grants write access to users with the attribute has.write and applies the global policy to all data sources.
The example below grants users write access when they are individually selected by data owners and applies the policy to data sources with columns tagged Discovered.Person Name.
Body parameters
The request accepts a JSON or YAML payload. See the global policy payload description for parameter details.
Response
The response returns the global policy configuration. See the payload reference guide for details about the response schema.
DELETE /policy/global/{policyId}
DELETE /policy/global/{policyId}Deletes the specified policy.
Path parameter
policyId integer
The unique identifier of the policy.
Response
The response returns the deleted global policy configuration. See the payload reference guide for details about the response schema.
GET /policy/global/{policyId}
GET /policy/global/{policyId}Gets the specified policy.
Path parameter
policyId integer
The unique identifier of the policy.
Response
The response returns the global policy configuration. See the payload reference guide for details about the response schema.
PUT /policy/global/{policyId}
PUT /policy/global/{policyId}Updates the specified policy.
Body parameters
The request accepts a JSON or YAML payload. See the global policy payload description for parameter details.
Response
The response returns the updated global policy configuration. See the payload reference guide for details about the response schema.
Last updated
Was this helpful?

