{ "opencollection": "1.0.0", "info": { "name": "Permit.io Access Requests (EAP) Access Requests (EAP) Environments API", "version": "2.0.0" }, "items": [ { "info": { "name": "Environments", "type": "folder" }, "items": [ { "info": { "name": "Stats Environments", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id/stats", "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\")." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Stats Environments" }, { "info": { "name": "List Environments", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/projects/:proj_id/envs", "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": "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 environments under a given project." }, { "info": { "name": "Create Environment", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/projects/:proj_id/envs", "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\")." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a new environment under a given project." }, { "info": { "name": "Get Environment", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id", "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\")." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Gets a single environment matching the given env_id, if such environment exists." }, { "info": { "name": "Update Environment", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id", "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": "Updates the environment." }, { "info": { "name": "Delete Environment", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id", "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\")." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes an environment and all its related data." }, { "info": { "name": "Copy Environment", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id/copy", "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": "Copy environment\n\nThis endpoint either duplicates an existing environment to a new environment\nin the same project, or copies from an existing environment to another\nexisting environment.\n\nThe `scope` object controls which objects will be copied to the target\nenvironment.\n\nTo clone to a new environment, the user must have write permissions\nto the containing project. To clone into an existing environment,\nthe user must have write permissions to the target environment.\n\nCopying environments across" }, { "info": { "name": "Copy Environment Async", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id/copy/async", "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": "wait", "value": "", "type": "query", "description": "Time in seconds to wait for the task to complete. Default is 0, means no wait." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Copy environment\n\nThis endpoint either duplicates an existing environment to a new environment\nin the same project, or copies from an existing environment to another\nexisting environment.\n\nThe `scope` object controls which objects will be copied to the target\nenvironment.\n\nTo clone to a new environment, the user must have write permissions\nto the containing project. To clone into an existing environment,\nthe user must have write permissions to the target environment.\n\nCopying environments across" }, { "info": { "name": "Get Copy Environment Task Result", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id/copy/async/:task_id/result", "params": [ { "name": "task_id", "value": "", "type": "path", "description": "The unique id of the task." }, { "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": "wait", "value": "", "type": "query", "description": "Time in seconds to wait for the task to complete. Default is 0, means no wait." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get the result of a copy environment task." }, { "info": { "name": "Test Jwks By Url", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/projects/:proj_id/envs/:env_id/test_jwks", "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": "url", "value": "", "type": "query", "description": "URL of JWKs to test" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Test Jwks Url." } ] } ], "bundled": true }