POST api/v1/TrainingType/PostTrainingType
Request Information
URI Parameters
None.
Body Parameters
TrainingTypeName | Description | Type | Additional information |
---|---|---|---|
TypeId | integer |
None. |
|
Name | string |
None. |
|
TenantId | integer |
None. |
|
CanDelete | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "TypeId": 1, "Name": "sample string 2", "TenantId": 3, "CanDelete": true }
text/html
Sample:
{"TypeId":1,"Name":"sample string 2","TenantId":3,"CanDelete":true}
text/xml
Sample:
<TrainingType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models"> <CanDelete>true</CanDelete> <Name>sample string 2</Name> <TenantId>3</TenantId> <TypeId>1</TypeId> </TrainingType>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json, text/html
Sample:
true
text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>