{ "opencollection": "1.0.0", "info": { "name": "Coda Account Workspaces API", "version": "1.5.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Workspaces", "type": "folder" }, "items": [ { "info": { "name": "List workspace users", "type": "http" }, "http": { "method": "GET", "url": "https://coda.io/apis/v1/workspaces/:workspaceId/users", "params": [ { "name": "workspaceId", "value": "ws-1Ab234", "type": "path", "description": "ID of the workspace." }, { "name": "includedRoles", "value": "Editor,DocMaker", "type": "query", "description": "Show only the members that match the included roles. Multiple roles can be specified with a comma-delimited list." }, { "name": "pageToken", "value": "eyJsaW1pd", "type": "query", "description": "An opaque token used to fetch the next page of results." } ] }, "docs": "Returns a list of members in the given workspace. This list will be ordered with the requesting user first and then ordered by role.\n" }, { "info": { "name": "Updates user role", "type": "http" }, "http": { "method": "POST", "url": "https://coda.io/apis/v1/workspaces/:workspaceId/users/role", "params": [ { "name": "workspaceId", "value": "ws-1Ab234", "type": "path", "description": "ID of the workspace." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the workspace user role of a user that matches the parameters. Only succeeds if the requesting user has admin permissions in the workspace.\n" }, { "info": { "name": "List workspace roles", "type": "http" }, "http": { "method": "GET", "url": "https://coda.io/apis/v1/workspaces/:workspaceId/roles", "params": [ { "name": "workspaceId", "value": "ws-1Ab234", "type": "path", "description": "ID of the workspace." } ] }, "docs": "Returns a list of the counts of users over time by role for the workspace.\n" } ] } ], "bundled": true }