Skip to main content
PUT
/
v1
/
datasets
/
{dataset_id}
/
policies
/
{pdp_id}
Update a Personalized Data Permission (PDP) policy
curl --request PUT \
  --url https://api.domo.com/v1/datasets/{dataset_id}/policies/{pdp_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Not Attending",
  "filters": [
    {
      "column": "Attending",
      "values": [
        "TRUE"
      ],
      "operator": "EQUALS",
      "not": true
    }
  ]
}
'
{
  "id": 8,
  "type": "user",
  "name": "Not Attending",
  "filters": [
    {
      "column": "Attending",
      "values": [
        "TRUE"
      ],
      "operator": "EQUALS",
      "not": true
    }
  ],
  "users": [
    27
  ],
  "groups": [
    4
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string
required
pdp_id
string
required

Body

application/json

Name of the Policy

name
string
filters
object[]
type
string

Type of policy (user or system)

users
integer[]

List of user IDs the policy applies to

groups
integer[]

List of group IDs the policy applies to

Response

200 - application/json

Returns a subset of the DataSet object specific to the data permission policy.

id
integer
type
string
name
string
filters
object[]
users
integer[]
groups
integer[]