API ReferenceManagementPolicy Rules Management
POST
/v1/mgmt/policies/rule/load

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

id?string

Load a single policy rule row by id.

curl -X POST "https://api.descope.com/v1/mgmt/policies/rule/load" \  -H "Content-Type: application/json" \  -d '{}'
{  "policyRule": {    "id": "string",    "version": "string",    "name": "string",    "description": "string",    "enabled": true,    "ruleFamily": "string",    "actionKinds": [      "string"    ],    "effect": "string",    "principalType": "string",    "principalSelector": [      "string"    ],    "resourceTargets": [      {        "type": "string",        "allOfType": true,        "ids": [          "string"        ]      }    ],    "grants": [      {        "scopes": [          "string"        ],        "allowedAudiences": [          "string"        ]      }    ],    "conditions": "string",    "cedarText": "string",    "createdTime": 0,    "modifiedTime": 0  }}
export interface Response {policyRule?: {id?: stringversion?: stringname?: stringdescription?: stringenabled?: booleanruleFamily?: stringactionKinds?: string[]effect?: stringprincipalType?: stringprincipalSelector?: string[]resourceTargets?: RuleResourceTarget[]grants?: PolicyRuleGrant[]conditions?: stringcedarText?: string/** * int32 epoch seconds: proto3 emits int64 as JSON string. See .claude/rules/proto-files.md. */createdTime?: numbermodifiedTime?: number}}/** * RuleResourceTarget identifies a Resource subset for an PolicyRule. A *  target with AllOfType=true matches every resource of Type; otherwise the *  IDs list enumerates the specific resources. */export interface RuleResourceTarget {type?: stringallOfType?: booleanids?: string[]}export interface PolicyRuleGrant {scopes?: string[]allowedAudiences?: string[]}
Was this helpful?