Getting Training Info
AVAILABLE WITH BUSINESS SUBSCRIPTION
Method: getTraining
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, or custom roles that permit a training to be viewed.
Parameters
Parameter | Type | Description |
---|---|---|
token (required) | string | Access token. You can obtain a token by making a request. |
trainingId (required) | string | The training ID you want to get info on. |
Return Value
After the request has been successfully processed, the system returns an object with the following properties:
Parameter | Type | Description |
---|---|---|
training | array | An array with the training’s data. |
title | string | The title of the training. |
organizer | string | The training organizer’s ID. |
sessions | array | An array with a session’s ID. |
type | string | The training type. |
Possible Errors
Error | Description |
---|---|
Permission denied | The user has no permissions to delete enrollments. |
Wrong parameters | The enrollment with the given ID hasn't been found. |
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://ispringlearn.com/go/services/api/soap">
<soapenv:Header/>
<soapenv:Body>
<soap:GetTrainingRequest>
<soap:credentials>
<soap:token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</soap:token>
</soap:credentials>
<soap:trainingId>b431d5a0-2d14-11ed-b56c-0242c0a87043</soap:trainingId>
</soap:GetTrainingRequest>
</soapenv:Body>
</soapenv:Envelope>
XML
Sample Response
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ispringlearn.com/go/services/api/soap">
<SOAP-ENV:Body>
<ns1:GetTrainingResult>
<ns1:training>
<ns1:title>Sales Training and Strategy</ns1:title>
<ns1:organizer>a5ae3268-2d13-11ed-9c2b-0242c0a87043</ns1:organizer>
<ns1:sessions>
<ns1:id>b437976a-2d14-11ed-9e57-0242c0a87043</ns1:id>
<ns1:id>da7f4200-2d1f-11ed-afa0-0242c0a88043</ns1:id>
<ns1:id>86c3a3c4-2dbd-11ed-842c-0242c0a88043</ns1:id>
<ns1:id>a2507782-2f40-11ed-a4b8-0242c0a8d043</ns1:id>
<ns1:id>3c952448-2f44-11ed-b496-0242c0a8e043</ns1:id>
<ns1:id>1cc8b7a2-37ea-11ed-a404-0242ac160043</ns1:id>
</ns1:sessions>
<ns1:type>Meeting</ns1:type>
</ns1:training>
</ns1:GetTrainingResult>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML