{ "opencollection": "1.0.0", "info": { "name": "D2L Brightspace Valence Learning Framework Assignments Users API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://auth.brightspace.com/oauth2/auth", "accessTokenUrl": "https://auth.brightspace.com/core/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Users", "type": "folder" }, "items": [ { "info": { "name": "Get the current user context", "type": "http" }, "http": { "method": "GET", "url": "https://{host}/d2l/api/lp/1.53/users/whoami" }, "docs": "Retrieves a WhoAmIUser JSON block describing the identity the current access token is acting as." }, { "info": { "name": "List or search users", "type": "http" }, "http": { "method": "GET", "url": "https://{host}/d2l/api/lp/1.53/users/", "params": [ { "name": "orgDefinedId", "value": "", "type": "query" }, { "name": "userName", "value": "", "type": "query" }, { "name": "bookmark", "value": "", "type": "query" } ] }, "docs": "Retrieves a paged list of users, optionally filtered by orgDefinedId, userName, externalEmail, or a bookmark for paging." }, { "info": { "name": "Create a user", "type": "http" }, "http": { "method": "POST", "url": "https://{host}/d2l/api/lp/1.53/users/", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new user account from a CreateUserData block." }, { "info": { "name": "Get a user", "type": "http" }, "http": { "method": "GET", "url": "https://{host}/d2l/api/lp/1.53/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path" } ] }, "docs": "Retrieves a UserData block for the identified user." }, { "info": { "name": "Update a user", "type": "http" }, "http": { "method": "PUT", "url": "https://{host}/d2l/api/lp/1.53/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the identified user account." }, { "info": { "name": "Delete a user", "type": "http" }, "http": { "method": "DELETE", "url": "https://{host}/d2l/api/lp/1.53/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path" } ] }, "docs": "Permanently deletes the identified user account." }, { "info": { "name": "List roles", "type": "http" }, "http": { "method": "GET", "url": "https://{host}/d2l/api/lp/1.53/roles/" }, "docs": "Retrieves the list of all roles defined on the organization that the caller can see." } ] } ], "bundled": true }