{ "opencollection": "1.0.0", "info": { "name": "Permit.io Access Requests (EAP) Access Requests (EAP) Elements Configs (EAP) API", "version": "2.0.0" }, "items": [ { "info": { "name": "Elements Configs (EAP)", "type": "folder" }, "items": [ { "info": { "name": "List Elements Configs", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/elements/:proj_id/:env_id/config", "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": "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 the elements_configs under the active organization." }, { "info": { "name": "Create Elements Config", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/elements/:proj_id/:env_id/config", "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 elements_config under the active organization." }, { "info": { "name": "Get Elements Config", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/elements/:proj_id/:env_id/config/:elements_config_id", "params": [ { "name": "elements_config_id", "value": "my_elements_config", "type": "path", "description": "Either the unique id of the elements_config, or the URL-friendly key of the elements_config (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 elements_config matching the given elements_config_id, if such elements_config exists." }, { "info": { "name": "Update Elements Config", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/v2/elements/:proj_id/:env_id/config/:elements_config_id", "params": [ { "name": "elements_config_id", "value": "my_elements_config", "type": "path", "description": "Either the unique id of the elements_config, or the URL-friendly key of the elements_config (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": "Updates the elements_config." }, { "info": { "name": "Get Elements Config Runtime", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/elements/:proj_id/:env_id/config/:elements_config_id/runtime", "params": [ { "name": "elements_config_id", "value": "my_elements_config", "type": "path", "description": "Either the unique id of the elements_config, or the URL-friendly key of the elements_config (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": "resource_instance_id", "value": "", "type": "query", "description": "For ReBAC Elements, the resource instance ID or key to work on" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Gets a single elements_config matching the given elements_config_id, if such elements_config exists." }, { "info": { "name": "Delete Elements Config", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v2/elements/:proj_id/:env_id/:elements_config_id", "params": [ { "name": "elements_config_id", "value": "my_elements_config", "type": "path", "description": "Either the unique id of the elements_config, or the URL-friendly key of the elements_config (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 the elements_config and all its related data." } ] } ], "bundled": true }