PUT api/ActivateTrainingVersion
Request Information
URI Parameters
None.
Body Parameters
TrainingVersion| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| TrainingCode | string |
None. |
|
| Version | integer |
None. |
|
| Theme | Theme |
None. |
|
| Contact | TrainingContact |
None. |
|
| Status | AggregateLabel |
None. |
|
| StatusCode | string |
None. |
|
| LongLabel | string |
Required |
|
| ShortLabel | string |
Required |
|
| Description | string |
None. |
|
| Objectives | string |
None. |
|
| Content | string |
None. |
|
| Comment | string |
None. |
|
| NumberHours | integer |
None. |
|
| NumberDays | decimal number |
None. |
|
| Creation | date |
None. |
|
| CreatorId | integer |
None. |
|
| Creator | User |
None. |
|
| Update | date |
None. |
|
| UpdaterId | integer |
None. |
|
| Updater | User |
None. |
|
| ModulesVersions | Collection of TrainingModuleVersion |
None. |
|
| PrerequisiteComment | string |
String length: inclusive between 0 and 200 |
|
| Prerequisites | Collection of Training |
None. |
|
| PrerequisiteCodes | Collection of string |
None. |
|
| TargetedAudience | string |
None. |
|
| Rate | string |
None. |
|
| GroupRegistration | boolean |
None. |
|
| OrderHome | integer |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Code | integer |
None. |
|
| Modifications | integer |
None. |
|
| Id | integer |
None. |
|
| Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Code": 2,
"Modifications": 3,
"Id": 4,
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Models">
<Code>2</Code>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<Id>4</Id>
<Modifications>3</Modifications>
<Success>true</Success>
</Response>