{ "opencollection": "1.0.0", "info": { "name": "Posit Connect API Reference API Keys Environment Permissions API", "version": "1.0.1" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "Environment Permissions", "type": "folder" }, "items": [ { "info": { "name": "List permissions", "type": "http" }, "http": { "method": "GET", "url": "/__api__/v1/environments/:guid/permissions", "params": [ { "name": "guid", "value": "", "type": "path" } ] }, "docs": "List the users and groups that have access to this execution environment.\nYou must have administrator privileges to perform this action." }, { "info": { "name": "Add permission", "type": "http" }, "http": { "method": "POST", "url": "/__api__/v1/environments/:guid/permissions", "params": [ { "name": "guid", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Grants a user or group access to this execution environment.\nYou must have administrator privileges to perform this action." }, { "info": { "name": "Get permission", "type": "http" }, "http": { "method": "GET", "url": "/__api__/v1/environments/:guid/permissions/:permission_guid", "params": [ { "name": "guid", "value": "", "type": "path" }, { "name": "permission_guid", "value": "", "type": "path" } ] }, "docs": "Get a single permission entry for the execution environment, given its GUID.\nYou must have administrator privileges to perform this action." }, { "info": { "name": "Delete permission", "type": "http" }, "http": { "method": "DELETE", "url": "/__api__/v1/environments/:guid/permissions/:permission_guid", "params": [ { "name": "guid", "value": "", "type": "path" }, { "name": "permission_guid", "value": "", "type": "path" } ] }, "docs": "Removes access to this execution environment from a user or group.\nYou must have administrator privileges to perform this action." } ] } ], "bundled": true }