For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Policy

Updates a custom policy for project.

A policy is a reusable set of permissions (allow/deny rules over modules and actions). Policies are attached to roles; a user's effective permissions are the union of the policies on all their roles. This method updates the policy β€” only the fields you send are changed.

This method is on the Hub surface (norbix.hub.membership) β€” call it from admin tooling or IaC.

These examples assume the SDK is installed and your credentials are set as environment variables β€” each client reads them automatically, so the constructors below take no arguments. See Install a Norbix SDK.

import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.membership.updatePolicy({
  id: 'pol_4kX9mQvR2tYw7ZbC1dFgHj',
  policyName: 'articles-editor',
  description: 'Read and write access to the articles collection.',
  policyDocumentJson: '{"allow":["articles:read","articles:write"]}',
});
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Membership.UpdatePolicyAsync(new UpdatePolicy
{
    Id = "pol_4kX9mQvR2tYw7ZbC1dFgHj",
    PolicyName = "articles-editor",
    Description = "Read and write access to the articles collection.",
    PolicyDocumentJson = "{\"allow\":[\"articles:read\",\"articles:write\"]}",
});

In the dashboard

Manage this visually in Norbix Cloud β€” see Membership β†’ Policies.

API reference

Full request and response for this endpoint: Update Policy.

Last updated