POST
/v1/mgmt/authz/re/targetallAuthorization
Descope Project ID and Management Key AuthorizationBearer <token>
Project ID:Management Key as bearer token.
In: header
Request Body
application/json
target*string
Length
1 <= lengthcontext?object
Optional flat key-value context for evaluating ABAC conditions and facts. Relations gated by a condition are returned only when this context satisfies it (same semantics as Check).
Load a list of relations for the given target including all derived relations.
curl -X POST "https://api.descope.com/v1/mgmt/authz/re/targetall" \ -H "Content-Type: application/json" \ -d '{ "target": "string" }'{ "relations": [ { "resource": "string", "relationDefinition": "string", "namespace": "string", "target": "string", "targetNamespace": "string", "targetSetResource": "string", "targetSetRelationDefinition": "string", "targetSetRelationDefinitionNamespace": "string" } ]}export interface Response {relations?: Relation[]}/** * Relation is specified between resource and target where target can be direct target (user or related resource), targetSet (anyone who has another relation), and list of users matching query */export interface Relation {/** * Relation is defined on the resource */resource: string/** * The name of the relation definition */relationDefinition: string/** * The namespace of the relation definition */namespace: string/** * The target for given the relation */target?: string/** * The target namespace for the relation */targetNamespace?: string/** * The targetSet target resource for the relation */targetSetResource?: string/** * The targetSet target relation definition for the relation */targetSetRelationDefinition?: string/** * The targetSet target relation definition namespace for the relation */targetSetRelationDefinitionNamespace?: string} Was this helpful?