{ "opencollection": "1.0.0", "info": { "name": "Permit.io Access Requests (EAP) Access Requests (EAP) Condition Sets API", "version": "2.0.0" }, "items": [ { "info": { "name": "Condition Sets", "type": "folder" }, "items": [ { "info": { "name": "List Condition Sets", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/schema/:proj_id/:env_id/condition_sets", "params": [ { "name": "proj_id", "value": "my_project", "type": "path", "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")." }, { "name": "env_id", "value": "my_environment", "type": "path", "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")." }, { "name": "search", "value": "", "type": "query", "description": "Text search for the condition sets name or key" }, { "name": "type", "value": "", "type": "query", "description": "if provided, will return only the condition sets of the specified type. e.g: only user sets." }, { "name": "include_total_count", "value": "", "type": "query", "description": "Include total count in response" }, { "name": "page", "value": "", "type": "query", "description": "Page number of the results to fetch, starting at 1." }, { "name": "per_page", "value": "", "type": "query", "description": "The number of results per page (max 100)." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Lists all condition sets matching a filter." }, { "info": { "name": "Create Condition Set", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/schema/:proj_id/:env_id/condition_sets", "params": [ { "name": "proj_id", "value": "my_project", "type": "path", "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")." }, { "name": "env_id", "value": "my_environment", "type": "path", "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a new condition set (can be either a user set or a resource set)." }, { "info": { "name": "Get Condition Set", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/schema/:proj_id/:env_id/condition_sets/:condition_set_id", "params": [ { "name": "condition_set_id", "value": "", "type": "path", "description": "Either the unique id of the condition set, or the URL-friendly key of the condition set (i.e: the \"slug\")." }, { "name": "proj_id", "value": "my_project", "type": "path", "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")." }, { "name": "env_id", "value": "my_environment", "type": "path", "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Gets a single condition set, if such condition set exists." }, { "info": { "name": "Update Condition Set", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/v2/schema/:proj_id/:env_id/condition_sets/:condition_set_id", "params": [ { "name": "condition_set_id", "value": "", "type": "path", "description": "Either the unique id of the condition set, or the URL-friendly key of the condition set (i.e: the \"slug\")." }, { "name": "proj_id", "value": "my_project", "type": "path", "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")." }, { "name": "env_id", "value": "my_environment", "type": "path", "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Partially updates a condition set.\nFields that will be provided will be completely overwritten." }, { "info": { "name": "Delete Condition Set", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v2/schema/:proj_id/:env_id/condition_sets/:condition_set_id", "params": [ { "name": "condition_set_id", "value": "", "type": "path", "description": "Either the unique id of the condition set, or the URL-friendly key of the condition set (i.e: the \"slug\")." }, { "name": "proj_id", "value": "my_project", "type": "path", "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")." }, { "name": "env_id", "value": "my_environment", "type": "path", "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes a condition set and all its related data.\nThis includes any permissions granted to said condition set (i.e: any matching condition set users_with_role)." }, { "info": { "name": "Get Condition Set Ancestors", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/schema/:proj_id/:env_id/condition_sets/:condition_set_id/ancestors", "params": [ { "name": "condition_set_id", "value": "", "type": "path", "description": "Either the unique id of the condition set, or the URL-friendly key of the condition set (i.e: the \"slug\")." }, { "name": "proj_id", "value": "my_project", "type": "path", "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")." }, { "name": "env_id", "value": "my_environment", "type": "path", "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")." }, { "name": "page", "value": "", "type": "query", "description": "Page number of the results to fetch, starting at 1." }, { "name": "per_page", "value": "", "type": "query", "description": "The number of results per page (max 100)." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Gets all ancestors (parent, parent of parent, and so on)" }, { "info": { "name": "Get Condition Set Descendants", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/schema/:proj_id/:env_id/condition_sets/:condition_set_id/descendants", "params": [ { "name": "condition_set_id", "value": "", "type": "path", "description": "Either the unique id of the condition set, or the URL-friendly key of the condition set (i.e: the \"slug\")." }, { "name": "proj_id", "value": "my_project", "type": "path", "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")." }, { "name": "env_id", "value": "my_environment", "type": "path", "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")." }, { "name": "page", "value": "", "type": "query", "description": "Page number of the results to fetch, starting at 1." }, { "name": "per_page", "value": "", "type": "query", "description": "The number of results per page (max 100)." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Gets all descendants (children, children of children, and so on)" } ] } ], "bundled": true }