Skip to main content
PUT
/
v1
/
resource-policies
/
user
Update user policy
curl --request PUT \
  --url https://{tenant}.cubecloud.dev/api/v1/resource-policies/user \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resourceId": 123,
  "userId": 123
}
'

Authorizations

Authorization
string
header
required

API key authentication. Send Authorization: Api-Key <YOUR_API_KEY>.

Body

application/json

UpdateResourceUserPolicyBody

resourceId
integer
required
resourceType
enum<string>
required
Available options:
Global,
Deployment,
Report,
ReportFolder,
Agent,
AgentSpace,
Workbook,
Dashboard,
Folder,
ChatThread
action
enum<string> | null
Available options:
All,
DeploymentsManage,
DeploymentCreate,
DeploymentRead,
DeploymentUpdate,
DeploymentDelete,
PlaygroundRead,
SchemaRead,
SchemaUpdate,
SchemaUpdateDevBranches,
APMRead,
PreAggregationBuild,
AlertsCreate,
AlertsRead,
AlertsUpdate,
AlertsDelete,
AuditLogManage,
BillingRead,
SqlRunnerRead,
DataAssetsRead,
DataAssetsManage,
CubeNetworkConnect,
ReportRead,
ReportEdit,
ReportManage,
WorkbookManage,
WorkbookRead,
WorkbookEdit,
ChatThreadRead,
AgentManage,
AgentRead,
AgentSpaceManage,
AgentAdmin,
DeploymentAgentRead,
OAuthIntegrationsManage,
OAuthIntegrationsIssueTokens,
AIBIDevelop,
AIBIExplore,
AIBIView,
ChartPalettesManage,
DashboardThemesManage,
AIBIDeveloper,
AIBIUser,
AIBIViewer,
EmbedDeploymentRead,
EmbedDashboardRead,
FolderRead,
FolderEdit,
FolderManage
userId
integer | null

Response

200 - application/json

Successful response