POST api/SetTrainingSession
Request Information
URI Parameters
None.
Body Parameters
TrainingSession| Name | Description | Type | Additional information |
|---|---|---|---|
| Total | integer |
None. |
|
| Id | integer |
None. |
|
| IdTraining | integer |
None. |
|
| TrainingShortLabel | string |
None. |
|
| TrainingCode | string |
None. |
|
| NbModulesSession | integer |
None. |
|
| CodeAnalytic | string |
None. |
|
| NotifRecipients | string |
None. |
|
| NotifRecipientsNames | Collection of string |
None. |
|
| TrainingVersionId | integer |
Required |
|
| TrainingVersion | TrainingVersion |
None. |
|
| Promoter | User |
None. |
|
| RegistrationStart | date |
Data type: Date |
|
| RegistrationStartStr | string |
Required Matching regular expression pattern: \d{2}/\d{2}/\d{4} |
|
| RegistrationEnd | date |
None. |
|
| RegistrationEndStr | string |
Required Matching regular expression pattern: \d{2}/\d{2}/\d{4} |
|
| NumberHours | integer |
Required |
|
| NumberDays | decimal number |
None. |
|
| StartDate | date |
Data type: Date |
|
| EndDate | date |
Data type: Date |
|
| NbMinAttendee | integer |
Required Range: inclusive between 1 and 2147483647 |
|
| NbMaxAttendee | integer |
Required Range: inclusive between 1 and 2147483647 |
|
| NbFinishedAttendees | integer |
None. |
|
| NbAttendeesPreRegistered | integer |
None. |
|
| NbAttendeesRegistered | integer |
None. |
|
| NbAttendeesPresent | integer |
None. |
|
| NbAttendeesRegisteredSelectedStructure | integer |
None. |
|
| NbAttendeesPresentSelectedStructure | integer |
None. |
|
| NbPreRegistrationRejected | integer |
None. |
|
| NbConvocationsSent | integer |
None. |
|
| NbAttendeesOnWaitingList | integer |
None. |
|
| AmountByDayParticipations | decimal number |
None. |
|
| Status | AggregateLabel |
None. |
|
| CreationDate | date |
Data type: Date |
|
| CreationUid | User |
None. |
|
| UpdateDate | date |
None. |
|
| UpdateUid | User |
None. |
|
| SessionModules | Collection of SessionModule |
None. |
|
| PlanningModules | Collection of PlanningModule |
None. |
|
| StructureId | integer |
None. |
|
| Structure | Structure |
None. |
|
| IsProvisional | boolean |
None. |
|
| NbDocuments | integer |
None. |
|
| NomDocuments | string |
None. |
|
| ParticipantFriendIds | Collection of integer |
None. |
Request Formats
application/json, text/json, application/xml, text/xml, 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>