Request: GET /task/{task_id}/status
Permissions to Run the Request
Account Owner, Account Administrators, Department 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. |
| Parameter | Description |
| task_id (required) | The ID of the request whose status you want to get. |
Response Parameters
| Parameter | Description |
|---|---|
| status | The status of the request sent to edit a course's or a module's status. Possible values:
|
Possible Response Codes
Code | Text | Description |
|---|---|---|
| 200 | OK | The request status has been successfully received. |
| 400 | Bad Request | A request error. |
| 401 | Unauthorized | An authorization error. |
| 403 | Permission Denied | The 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>