{ "opencollection": "1.0.0", "info": { "name": "Superhuman Docs Admin Account Doc Permissions API", "version": "0.0.2" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Doc Permissions", "type": "folder" }, "items": [ { "info": { "name": "List doc permissions", "type": "http" }, "http": { "method": "GET", "url": "https://docs.superhuman.com/apis/admin/v1/organizations/:organizationId/workspaces/:workspaceId/docs/:docId/acl/permissions", "params": [ { "name": "organizationId", "value": "org-AbCDeFGHIj", "type": "path", "description": "ID of the organization." }, { "name": "workspaceId", "value": "ws-AbCDeFGHIj", "type": "path", "description": "ID of the workspace." }, { "name": "docId", "value": "d-AbCDeFGHIj", "type": "path", "description": "ID of the doc." }, { "name": "limit", "value": "10", "type": "query", "description": "Maximum number of results to return in this query." }, { "name": "pageToken", "value": "eyJsaW1pd", "type": "query", "description": "An opaque token used to fetch the next page of results." } ] }, "docs": "Returns a list of permissions for this doc" }, { "info": { "name": "Add permission to a doc", "type": "http" }, "http": { "method": "POST", "url": "https://docs.superhuman.com/apis/admin/v1/organizations/:organizationId/workspaces/:workspaceId/docs/:docId/acl/permissions", "params": [ { "name": "organizationId", "value": "org-AbCDeFGHIj", "type": "path", "description": "ID of the organization." }, { "name": "workspaceId", "value": "ws-AbCDeFGHIj", "type": "path", "description": "ID of the workspace." }, { "name": "docId", "value": "d-AbCDeFGHIj", "type": "path", "description": "ID of the doc." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Adds a new permission to the doc." }, { "info": { "name": "Delete doc permission", "type": "http" }, "http": { "method": "DELETE", "url": "https://docs.superhuman.com/apis/admin/v1/organizations/:organizationId/workspaces/:workspaceId/docs/:docId/acl/permissions/:docPermissionId", "params": [ { "name": "organizationId", "value": "org-AbCDeFGHIj", "type": "path", "description": "ID of the organization." }, { "name": "workspaceId", "value": "ws-AbCDeFGHIj", "type": "path", "description": "ID of the workspace." }, { "name": "docId", "value": "d-AbCDeFGHIj", "type": "path", "description": "ID of the doc." }, { "name": "docPermissionId", "value": "f88ba9d9-037d-41df-a49c-49798701ed41", "type": "path", "description": "ID of a permission on an doc." } ] }, "docs": "Deletes an existing permission." }, { "info": { "name": "List doc permissions", "type": "http" }, "http": { "method": "GET", "url": "https://docs.superhuman.com/apis/admin/v1/organizations/:organizationId/docs/:docId/acl/permissions", "params": [ { "name": "organizationId", "value": "org-AbCDeFGHIj", "type": "path", "description": "ID of the organization." }, { "name": "docId", "value": "d-AbCDeFGHIj", "type": "path", "description": "ID of the doc." }, { "name": "limit", "value": "10", "type": "query", "description": "Maximum number of results to return in this query." }, { "name": "pageToken", "value": "eyJsaW1pd", "type": "query", "description": "An opaque token used to fetch the next page of results." } ] }, "docs": "Returns a list of permissions for this doc" }, { "info": { "name": "Add permission to a doc", "type": "http" }, "http": { "method": "POST", "url": "https://docs.superhuman.com/apis/admin/v1/organizations/:organizationId/docs/:docId/acl/permissions", "params": [ { "name": "organizationId", "value": "org-AbCDeFGHIj", "type": "path", "description": "ID of the organization." }, { "name": "docId", "value": "d-AbCDeFGHIj", "type": "path", "description": "ID of the doc." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Adds a new permission to the doc." }, { "info": { "name": "Delete doc permission", "type": "http" }, "http": { "method": "DELETE", "url": "https://docs.superhuman.com/apis/admin/v1/organizations/:organizationId/docs/:docId/acl/permissions/:docPermissionId", "params": [ { "name": "organizationId", "value": "org-AbCDeFGHIj", "type": "path", "description": "ID of the organization." }, { "name": "docId", "value": "d-AbCDeFGHIj", "type": "path", "description": "ID of the doc." }, { "name": "docPermissionId", "value": "f88ba9d9-037d-41df-a49c-49798701ed41", "type": "path", "description": "ID of a permission on an doc." } ] }, "docs": "Deletes an existing permission." } ] } ], "bundled": true }