POST api/Penalty

Creates a new penalty

Request Information

URI Parameters

None.

Body Parameters

PenaltyDto
NameDescriptionTypeAdditional information
Id

integer

None.

PenaltyTypeId

PenaltyTypeId

None.

PenaltyTypeDescription

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.

FrequencyTypeId

FrequencyTypeId

None.

FrequencyTypeDescription

string

None.

SubcontractId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "penaltyTypeId": 0,
  "penaltyTypeDescription": "sample string 2",
  "description": "sample string 3",
  "title": "sample string 4",
  "estimatedMaxAmount": 1.0,
  "warningDate": "2026-05-09T11:55:48.1882697+02:00",
  "warn": true,
  "latinWarn": "Yes",
  "warningSpanTime": 1,
  "active": true,
  "latinActive": "Yes",
  "approved": true,
  "latinApproved": "Yes",
  "approvedDate": "2026-05-09T11:55:48.1882697+02:00",
  "approvalUser": "sample string 8",
  "amount": 1.0,
  "frequencyTypeId": 0,
  "frequencyTypeDescription": "Default",
  "subcontractId": 9
}

text/html

Sample:
{"id":1,"penaltyTypeId":0,"penaltyTypeDescription":"sample string 2","description":"sample string 3","title":"sample string 4","estimatedMaxAmount":1.0,"warningDate":"2026-05-09T11:55:48.1882697+02:00","warn":true,"latinWarn":"Yes","warningSpanTime":1,"active":true,"latinActive":"Yes","approved":true,"latinApproved":"Yes","approvedDate":"2026-05-09T11:55:48.1882697+02:00","approvalUser":"sample string 8","amount":1.0,"frequencyTypeId":0,"frequencyTypeDescription":"Default","subcontractId":9}

application/xml, text/xml

Sample:
<PenaltyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.PenaltyAgg">
  <Active>true</Active>
  <Amount>1</Amount>
  <ApprovalUser>sample string 8</ApprovalUser>
  <Approved>true</Approved>
  <ApprovedDate>2026-05-09T11:55:48.1882697+02:00</ApprovedDate>
  <Description>sample string 3</Description>
  <EstimatedMaxAmount>1</EstimatedMaxAmount>
  <FrequencyTypeId>Default</FrequencyTypeId>
  <Id>1</Id>
  <PenaltyTypeDescription>sample string 2</PenaltyTypeDescription>
  <PenaltyTypeId>Default</PenaltyTypeId>
  <SubcontractId>9</SubcontractId>
  <Title>sample string 4</Title>
  <Warn>true</Warn>
  <WarningDate>2026-05-09T11:55:48.1882697+02:00</WarningDate>
  <WarningSpanTime>1</WarningSpanTime>
</PenaltyDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

URI

Response 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>