POST api/Bonus
Creates a new bonus
Request Information
URI Parameters
None.
Body Parameters
BonusDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| BonusTypeId | BonusTypeId |
None. |
|
| BonusTypeDescription | string |
None. |
|
| Description | string |
None. |
|
| Title | string |
None. |
|
| EstimatedMaxAmount | decimal number |
None. |
|
| WarningDate | date |
None. |
|
| Warn | boolean |
None. |
|
| LatinWarn | string |
None. |
|
| WarningSpanTime | integer |
None. |
|
| Active | boolean |
None. |
|
| LatinActive | string |
None. |
|
| Approved | boolean |
None. |
|
| LatinApproved | string |
None. |
|
| ApprovedDate | date |
None. |
|
| ApprovalUser | string |
None. |
|
| Amount | decimal number |
None. |
|
| SubcontractId | integer |
None. |
|
| FrequencyTypeId | FrequencyTypeId |
None. |
|
| FrequencyTypeDescription | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"bonusTypeId": 1,
"bonusTypeDescription": "EarlyDelivery",
"description": "sample string 2",
"title": "sample string 3",
"estimatedMaxAmount": 1.0,
"warningDate": "2026-05-09T14:03:44.8343245+02:00",
"warn": true,
"latinWarn": "Yes",
"warningSpanTime": 1,
"active": true,
"latinActive": "Yes",
"approved": true,
"latinApproved": "Yes",
"approvedDate": "2026-05-09T14:03:44.8343245+02:00",
"approvalUser": "sample string 7",
"amount": 1.0,
"subcontractId": 8,
"frequencyTypeId": 0,
"frequencyTypeDescription": "Default"
}
text/html
Sample:
{"id":1,"bonusTypeId":1,"bonusTypeDescription":"EarlyDelivery","description":"sample string 2","title":"sample string 3","estimatedMaxAmount":1.0,"warningDate":"2026-05-09T14:03:44.8343245+02:00","warn":true,"latinWarn":"Yes","warningSpanTime":1,"active":true,"latinActive":"Yes","approved":true,"latinApproved":"Yes","approvedDate":"2026-05-09T14:03:44.8343245+02:00","approvalUser":"sample string 7","amount":1.0,"subcontractId":8,"frequencyTypeId":0,"frequencyTypeDescription":"Default"}
application/xml, text/xml
Sample:
<BonusDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.BonusAgg"> <Active>true</Active> <Amount>1</Amount> <ApprovalUser>sample string 7</ApprovalUser> <Approved>true</Approved> <ApprovedDate>2026-05-09T14:03:44.8343245+02:00</ApprovedDate> <BonusTypeId>EarlyDelivery</BonusTypeId> <Description>sample string 2</Description> <EstimatedMaxAmount>1</EstimatedMaxAmount> <FrequencyTypeId>Default</FrequencyTypeId> <Id>1</Id> <SubcontractId>8</SubcontractId> <Title>sample string 3</Title> <Warn>true</Warn> <WarningDate>2026-05-09T14:03:44.8343245+02:00</WarningDate> <WarningSpanTime>1</WarningSpanTime> </BonusDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
URIResponse Formats
application/json, text/json, text/html
Sample:
"http://webapihelppage1.com"
application/xml, text/xml
Sample:
<anyURI xmlns="http://schemas.microsoft.com/2003/10/Serialization/">http://webapihelppage1.com/</anyURI>