Skip to content

Update Policy Permissions

Request

Updates policy permissions.

Security
ApiKeyAuth
Path
policy_idinteger(AccessControlPolicyId)required
Example:67
Bodyapplication/json
WorkflowProjectArray of objects

Permissions on resource

WorkflowProjectLevelArray of objects

Permissions on resource

WorkflowRestrictedOperatorsArray of objects

Permissions on resource

SegmentationArray of objects

Permissions on resource

PersonalizationStudioArray of objects

Permissions on resource

MasterSegmentConfigsArray of objects

Permissions on resource

MasterSegmentConfigArray of objects

Permissions on resource

MasterSegmentColumnArray of objects

Permissions on MasterSegmentColumn

MasterSegmentAllColumnsArray of objects

Permissions on MasterSegmentAllColumns

CookieConsentArray of objects

Permissions on CookieConsent

SegmentAllFoldersArray of objects

Permissions on resource

SegmentFolderArray of objects

Permissions on resource

ProfilesArray of objects

Permissions on resource

ProfilesApiTokenArray of objects

Permissions on resource

ActivationTemplateArray of objects

Permissions on ActivationTemplate

AuthenticationsArray of objects

Permissions on resource

SourcesArray of objects

Permissions on resource

DestinationsArray of objects

Permissions on resource

DatabasesArray of objects

Permissions on databases

UniversalConsentArray of objects

Permissions on UniversalConsent

TrafficControlsArray of objects

Permissions on TrafficControl

TrafficControlArray of objects

Permissions on TrafficControl

JourneysArray of objects

Permissions on Journeys

JourneyArray of objects

Permissions on Journeys in the audience

LlmProjectArray of objects

Permissions on LLM Projects

RawDataAccessArray of objects

Permissions on Raw Data Access for Audience Studio

curl -i -X PATCH \
  https://api.treasuredata.com/v3/access_control/policies/67/permissions \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "WorkflowProject": [
      {
        "operation": "view"
      }
    ],
    "WorkflowProjectLevel": [
      {
        "operation": "view",
        "name": "my_wf"
      }
    ],
    "WorkflowRestrictedOperators": [
      {
        "operation": "edit"
      }
    ],
    "Segmentation": [
      {
        "operation": "full"
      }
    ],
    "PersonalizationStudio": [
      {
        "operation": "full"
      }
    ],
    "MasterSegmentConfigs": [
      {
        "operation": "view"
      }
    ],
    "MasterSegmentConfig": [
      {
        "operation": "view",
        "id": "42"
      }
    ],
    "MasterSegmentColumn": [
      {
        "operation": "view_clear",
        "column_identifiers": "1$attribute.customers.age,1$attribute.customers.first_name"
      }
    ],
    "MasterSegmentAllColumns": [
      {
        "operation": "view_clear",
        "audience_id": "1"
      }
    ],
    "CookieConsent": [
      {
        "operation": "view"
      }
    ],
    "SegmentAllFolders": [
      {
        "operation": "view",
        "audience_id": "42"
      }
    ],
    "SegmentFolder": [
      {
        "operation": "view",
        "id": "42"
      }
    ],
    "Profiles": [
      {
        "operation": "view",
        "audience_id": "42"
      }
    ],
    "ProfilesApiToken": [
      {
        "operation": "full",
        "audience_id": "42"
      }
    ],
    "ActivationTemplate": [
      {
        "operation": "view"
      }
    ],
    "Authentications": [
      {
        "operation": "use_limited",
        "ids": "1,2,3"
      }
    ],
    "Sources": [
      {
        "operation": "restricted"
      }
    ],
    "Destinations": [
      {
        "operation": "restricted"
      }
    ],
    "Databases": [
      {
        "operation": "query",
        "ids": "1,2,3"
      }
    ],
    "UniversalConsent": [
      {
        "operation": "full"
      }
    ],
    "TrafficControls": [
      {
        "operation": "full"
      }
    ],
    "TrafficControl": [
      {
        "operation": "full",
        "audience_id": "42"
      }
    ],
    "Journeys": [
      {
        "operation": "full"
      }
    ],
    "Journey": [
      {
        "operation": "full",
        "audience_id": "42"
      }
    ],
    "LlmProject": [
      {
        "operation": "full",
        "project_id": "1"
      }
    ],
    "RawDataAccess": [
      {
        "operation": "query",
        "audience_id": "123"
      }
    ]
  }'

Responses

OK

Bodyapplication/json
WorkflowProjectArray of objects

Permissions on resource

WorkflowProjectLevelArray of objects

Permissions on resource

WorkflowRestrictedOperatorsArray of objects

Permissions on resource

SegmentationArray of objects

Permissions on resource

PersonalizationStudioArray of objects

Permissions on resource

MasterSegmentConfigsArray of objects

Permissions on resource

MasterSegmentConfigArray of objects

Permissions on resource

MasterSegmentColumnArray of objects

Permissions on MasterSegmentColumn

MasterSegmentAllColumnsArray of objects

Permissions on MasterSegmentAllColumns

CookieConsentArray of objects

Permissions on CookieConsent

SegmentAllFoldersArray of objects

Permissions on resource

SegmentFolderArray of objects

Permissions on resource

ProfilesArray of objects

Permissions on resource

ProfilesApiTokenArray of objects

Permissions on resource

ActivationTemplateArray of objects

Permissions on ActivationTemplate

AuthenticationsArray of objects

Permissions on resource

SourcesArray of objects

Permissions on resource

DestinationsArray of objects

Permissions on resource

DatabasesArray of objects

Permissions on databases

UniversalConsentArray of objects

Permissions on UniversalConsent

TrafficControlsArray of objects

Permissions on TrafficControl

TrafficControlArray of objects

Permissions on TrafficControl

JourneysArray of objects

Permissions on Journeys

JourneyArray of objects

Permissions on Journeys in the audience

LlmProjectArray of objects

Permissions on LLM Projects

RawDataAccessArray of objects

Permissions on Raw Data Access for Audience Studio

Response
{ "WorkflowProject": [ {} ], "WorkflowProjectLevel": [ {} ], "WorkflowRestrictedOperators": [ {} ], "Segmentation": [ {} ], "PersonalizationStudio": [ {} ], "MasterSegmentConfigs": [ {} ], "MasterSegmentConfig": [ {} ], "MasterSegmentColumn": [ {} ], "MasterSegmentAllColumns": [ {} ], "CookieConsent": [ {} ], "SegmentAllFolders": [ {} ], "SegmentFolder": [ {} ], "Profiles": [ {} ], "ProfilesApiToken": [ {} ], "ActivationTemplate": [ {} ], "Authentications": [ {} ], "Sources": [ {} ], "Destinations": [ {} ], "Databases": [ {} ], "UniversalConsent": [ {} ], "TrafficControls": [ {} ], "TrafficControl": [ {} ], "Journeys": [ {} ], "Journey": [ {} ], "LlmProject": [ {} ], "RawDataAccess": [ {} ] }