POST api/Training/InsertUpdateTraining
Request Information
URI Parameters
None.
Body Parameters
TrainingModuleModalName | Description | Type | Additional information |
---|---|---|---|
TrainingId | integer |
None. |
|
TrainingName | string |
None. |
|
Roles | string |
None. |
|
VideoURL | string |
None. |
|
Questions | string |
None. |
|
Answers | string |
None. |
|
IsMandatory | integer |
None. |
|
CreatedBy | integer |
None. |
|
Status | string |
None. |
|
Username | string |
None. |
|
ExpiryDate | date |
None. |
|
StartDate | date |
None. |
|
CompletedCount | integer |
None. |
|
Description | string |
None. |
|
Objective | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "TrainingId": 1, "TrainingName": "sample string 2", "Roles": "sample string 3", "VideoURL": "sample string 4", "Questions": "sample string 5", "Answers": "sample string 6", "IsMandatory": 7, "CreatedBy": 8, "Status": "sample string 9", "Username": "sample string 10", "ExpiryDate": "2025-04-04T06:32:19.8025836+01:00", "StartDate": "2025-04-04T06:32:19.8025836+01:00", "CompletedCount": 13, "Description": "sample string 14", "Objective": "sample string 15" }
application/xml, text/xml
Sample:
<TrainingModuleModal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <Answers>sample string 6</Answers> <CompletedCount>13</CompletedCount> <CreatedBy>8</CreatedBy> <Description>sample string 14</Description> <ExpiryDate>2025-04-04T06:32:19.8025836+01:00</ExpiryDate> <IsMandatory>7</IsMandatory> <Objective>sample string 15</Objective> <Questions>sample string 5</Questions> <Roles>sample string 3</Roles> <StartDate>2025-04-04T06:32:19.8025836+01:00</StartDate> <Status>sample string 9</Status> <TrainingId>1</TrainingId> <TrainingName>sample string 2</TrainingName> <Username>sample string 10</Username> <VideoURL>sample string 4</VideoURL> </TrainingModuleModal>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
VCAPIResponseName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
dateTime | string |
None. |
|
StatusCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Version": "1.0.0", "dateTime": "2025/04/04 06:32:19", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>