v4

latestOpenAPI 3.1.02026-08-02261331761.5 KB
Condition Set Rules

Unassign Set Permissions

Revokes permissions to a user set on a resource set.

If the permission is not granted, it is skipped.

delete/v2/facts/{proj_id}/{env_id}/set_rules

Path parameters

proj_idstring required

Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

env_idstring required

Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

Request body

user_setstring required

The userset that will be unassigned these permission, i.e: all the users matching this rule will lose the specified permission

permissionstring required

The permission that will be removed from the userset on the resourceset. The permission can be either a resource action id, or {resource_key}:{action_key}, i.e: the "permission name".

resource_setstring required

The resourceset that represents the resources that are no longer granted for access, i.e: all the resources matching this rule can no longer be accessed by the userset, and will be revoked the specified permission

is_roleboolean

if True, will set the condition set rule to the role's autogen user-set.

is_resourceboolean

if True, will set the condition set rule to the resource's autogen resource-set.

Example request

{
  "user_set": "us_based_employees",
  "permission": "repository:clone",
  "resource_set": "private_repos"
}

Response

Successful Response