The Tools actions let an organization manage the tools available to an instance: turn them on and off, set org unit defaults, and so forth.
Attributes¶
- Tools.UpdateStatus¶
When you use an action to update a tool status, you should provide a JSON block like this:
{ "Status": <boolean> }
Organization¶
- Tools.OrgInformation¶
When you make a query about a tool’s information at the organization level (tool status, or its OUDefault property), the service provides a JSON block like this:
{ "ToolId": <string:D2LID>, "DisplayName": <string>, "OrgId": <number:D2LID>, "Status": <boolean>, "OUDefault": <boolean> }
Org units¶
- Tools.OrgUnitInformation¶
When you make a query about a tool’s status at the org unit level, the service provides a JSON block like this:
{ "ToolId": <string:D2LID>, "DisplayName": <string>, "OrgUnitId": <number:D2LID>, "Status": <boolean>, "CustomNavbarName": <string> }
- Tools.ToolWithName¶
When you make a query for a list of tool names, or make a query about a tool’s status at the org unit level and specify the optional query parameter namesOnly, the service provides a JSON block like this:
{ "ToolId": <string:D2LID>, "DisplayName": <string> }
The DisplayName corresponds to the tool’s
CustomNavbarName
if that property is not null; otherwise, it corresponds to the tool’s DisplayName. The calling user does not require elevated permissions to retrieve only the tool names.
Actions¶
Organization¶
- GET /d2l/api/lp/(version)/tools/org/¶
Retrieve the current organization-level information for all tools.
- Parameters:
version (D2LVERSION) – API version.
- Query Parameters:
includeRestrictedTools (boolean) – Optional. Include restricted tools as possible to retrieve (off by default).
bookmark (string) – Optional. Bookmark to use for fetching next data set segment.
- Status Codes:
200 OK – Action succeeded.
403 Forbidden – No permission to view tools’ information.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Input You can use a bookmark query parameter as a paging offset, to indicate that the service should return the segment of results immediately following your bookmark.
Note that you can use the includeRestrictedTools query parameter to include restricted tools in the list retrieved with this action; however, these tools still have the property of being restricted (you cannot change their status, etc).
Return. This action returns a
paged result set
containing the resultingOrgInformation
data blocks for the segment following your bookmark parameter (or the first segment, if the parameter is empty or missing).Note
This action employs the tool’s ToolId property enclosed within the
OrgInformation
block as the paging control value. You can fetch the segment of results following any tool’s entry in the entire data set by passing that tool’s ToolId as the bookmark value.
- GET /d2l/api/lp/(version)/tools/org/(toolId)¶
Retrieve the current organization-level information for a tool.
- Parameters:
version (D2LVERSION) – API version.
toolId (D2LID) – Tool ID.
- Status Codes:
200 OK – Action succeeded.
403 Forbidden – No permission to view tool’s status.
404 Not Found – No such tool.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Return. This action returns an
OrgInformation
JSON block, containing information about the provided tool.
- PUT /d2l/api/lp/(version)/tools/org/(toolId)¶
Update the organization-level status for a tool.
- Parameters:
version (D2LVERSION) – API version.
toolId (D2LID) – Tool ID.
- Status Codes:
200 OK – Action succeeded.
400 Bad Request – Tool not enabled at the instance level.
403 Forbidden – No permission to set information for tool.
404 Not Found – No such tool.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Input. Provide an
UpdateStatus
JSON block for the new status of the provided tool.
- PUT /d2l/api/lp/(version)/tools/org/(toolId)/OUDefault¶
Update a tool’s default status for new org units.
- Parameters:
version (D2LVERSION) – API version.
toolId (D2LID) – Tool ID.
- Status Codes:
200 OK – Action succeeded.
400 Bad Request – Tool not enabled at the instance or organization level.
403 Forbidden – No permission to set OUDefault value for tool.
404 Not Found – No such tool.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Input. Provide an
UpdateStatus
JSON block for the new OUDefault value assigned to the provided tool.Note
This call does not update the org unit status for currently existing org units; it only sets the default value for org units yet to be created.
- PUT /d2l/api/lp/(version)/tools/org/(toolId)/OUDefault/override¶
Update a tool’s current status for all org units.
- Parameters:
version (D2LVERSION) – API version.
toolId (D2LID) – Tool ID.
- Status Codes:
200 OK – Action successfully initiated.
400 Bad Request – Tool not enabled at the instance and/or organization level.
403 Forbidden – No permission to set OUDefault value for tool.
404 Not Found – No such tool.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Input. Provide an
UpdateStatus
JSON block for the new OUDefault value assigned to the provided tool.Note
This call will both set the default org unit status for org units yet to be created, and override the status for all existing org units descended from this organization. As a result, this is a system-intensive task and the action will not complete before the action returns.
This action initiates a worker task to complete the action in batches to avoid adversely affecting performance of the back-end service.
Org units¶
- GET /d2l/api/lp/(version)/tools/orgUnits/(orgUnitId)¶
Retrieve the current information for all tools enabled for the provided org unit.
- Parameters:
version (D2LVERSION) – API version.
orgUnitId (D2LID) – Org unit ID.
- Query Parameters:
bookmark (string) – Optional. Bookmark to use for fetching next data set segment.
namesOnly (boolean) – Optional. If true, only tool ids and names are returned, and fewer permissions are required.
- Status Codes:
200 OK – Action succeeded.
403 Forbidden – No permission to view tools’ information.
404 Not Found – No such org unit.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Input. You can use a bookmark query parameter as a paging offset, to indicate that the service should return the segment of results immediately following your bookmark.
Return. If you provide true for the namesOnly query parameter, this action returns a
paged result set
containingToolWithName
data blocks for the segment following your bookmark query parameter (or the first segment if the bookmark parameter is missing or empty).If, instead, you provide false for the namesOnly query parameter, or omit it, this action returns a
paged result set
containingOrgUnitInformation
data blocks instead.Note
This action employs the tool’s ToolId property enclosed within the
OrgUnitInformation
block as the paging control value. You can fetch the segment of results following any tool’s entry in the entire data set by passing that tool’s ToolId as the bookmark value.
- GET /d2l/api/lp/(version)/tools/orgUnits/(orgUnitId)/toolNames¶
Retrieve the current id and localized name information for all tools enabled for the provided org unit, including restricted tools.
- Parameters:
version (D2LVERSION) – API version.
orgUnitId (D2LID) – Org unit ID.
- Query Parameters:
bookmark (string) – Optional. Bookmark to use for fetching next data set segment.
- Status Codes:
200 OK – Action succeeded.
403 Forbidden – No permission to view tools’ information.
404 Not Found – No such org unit.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Input. You can use a bookmark query parameter as a paging offset, to indicate that the service should return the segment of results immediately following your bookmark.
Return. This action returns a
paged result set
containingToolWithName
data blocks for the segment following your bookmark query parameter (or the first segment if the bookmark parameter is missing or empty).
- GET /d2l/api/lp/(version)/tools/orgUnits/(orgUnitId)/(toolId)¶
Retrieve the current information for a tool enabled for the provided org unit.
- Parameters:
version (D2LVERSION) – API version.
orgUnitId (D2LID) – Org unit ID.
toolId (D2LID) – Tool ID.
- Query Parameters:
namesOnly (boolean) – Optional. If true, only tool id and name is returned, and fewer permissions are required.
- Status Codes:
200 OK – Action succeeded.
403 Forbidden – No permission to view tools’ information.
404 Not Found – No such org unit or tool.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Return. If you provide true for the namesOnly query parameter, this action returns a
ToolWithName
JSON block; otherwise, this action returns anOrgUnitInformation
JSON block.
- PUT /d2l/api/lp/(version)/tools/orgUnits/(orgUnitId)/(toolId)¶
Update the org unit-level information for a tool.
- Parameters:
version (D2LVERSION) – API version.
orgUnitId (D2LID) – Org unit ID.
toolId (D2LID) – Tool ID.
- Status Codes:
200 OK – Action succeeded.
400 Bad Request – Tool not enabled at the instance or organization level.
403 Forbidden – No permission to view tools’ information.
404 Not Found – No such org unit or tool.
429 Too Many Requests – API call-rate limit exceeded.
- API Versions:
1.43+ – Route first appears in LMS v20.23.5.
1.35-1.42 – Deprecated as of LMS v20.24.1.
1.34- – Obsolete as of LMS v20.24.1.
Input. Provide an
OrgUnitInformation
JSON block for the new status of the provided tool.