Request: GET/training/session/participants/{session_id}
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, or custom roles that permit a training to be viewed.
Request Headers
Header | Description |
|---|---|
| X-Auth-Account-Url (required) | The base URL of the account, e.g. https://myaccount.ispringlearn.com. |
| X-Auth-Email (required) | The login of Account Owner, Account Administrator, Department Administrator, or a user with a role with custom settings. |
| X-Auth-Password (required) | The password of Account Owner, Account Administrator, Department Administrator, or a user with a role with custom settings. |
| Parameter | Description |
| sessionId (required) | The session ID you would like to get info on. |
Response Parameters
Parameter | Description |
|---|---|
participants | An array with users’s ID, enrolled in the training. |
Response Codes
Code | Text | Description |
|---|---|---|
| 200 | OK | The request has been successfully processed. The response body will contain XML data with the information on the training. |
| 400 | Bad Request | A request error. |
| 401 | Unauthorized | An authorization error. |
| 403 | Permission Denied | The user doesn't have enough permissions to get information on session. |
| 404 | Session not found | The session you requested could not be found. |
Sample Request
GET /training/session/participants/4728d100-c96a-11ed-a664-b6c48b3dc692 Host: api-learn.ispringlearn.com X-Auth-Account-Url: https://myaccount.ispringlearn.com X-Auth-Email: admin@company.com X-Auth-Password: password Content-Type:application/xml
Sample Response
<?xml version="1.0" encoding="UTF-8"?>
<response>
<participants>
<id>76a38028-c8b7-11ed-a616-0242ac15004f</id>
<id>f5bafbba-c7eb-11ed-a327-0242ac12004e</id>
</participants>
</response>