You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Request: GET /task/{task_id}/status

Permissions to Run the Request

Account OwnerAccount AdministratorsDepartment Administrators, or custom roles with the 'Can edit' access to the content item. 

Department Administrators and users with custom roles can get the ID of the request sent to update the status of a course or a module assigned to the users belonging to the departments they manage and their sub-departments.

Request Headers and Parameters

Header

Description

Authorization (required)Access token. You can obtain a token by making a request.
ParameterDescription
task_id (required)The ID of the request whose status you want to get.

Response Parameters

ParameterDescription
status

The status of the request sent to edit a course's or a module's status.

Possible values:

  • complete
  • failed
  • in progress

Possible Response Codes

Code

Text

Description

200OKThe request status has been successfully received.
400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission DeniedThe user is not allowed to handle the requested action (not enough permission) or can't edit the content item.

Sample Request

GET /task/58931/status 
Host: api-learn.ispringlearn.com
Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE
Content-Type:application/json

Sample Response

https/1.1 200 OK

<?xml version="1.0" encoding="UTF-8"?>
<status>complete</status>
  • No labels