POST api/Sections

Creates a new section

Request Information

URI Parameters

None.

Body Parameters

SectionCreateDto
NameDescriptionTypeAdditional information
Title

string

Required

String length: inclusive between 0 and 250

SectionTypeId

integer

Required

CertificationModeId

integer

None.

SubcontractId

integer

Required

Pep

string

String length: inclusive between 0 and 72

SectionScopeTypeId

integer

Required

ItemGroupCode

string

None.

SignedPrice

decimal number

None.

DisciplineId

string

None.

ByProgressPercentage

decimal number

None.

ByPrgPercContractClause

string

None.

Request Formats

application/json, text/json

Sample:
{
  "title": "sample string 1",
  "sectionTypeId": 2,
  "certificationModeId": 3,
  "subcontractId": 4,
  "pep": "sample string 5",
  "sectionScopeTypeId": 6,
  "itemGroupCode": "sample string 7",
  "signedPrice": 8.0,
  "disciplineId": "sample string 9",
  "byProgressPercentage": 1.0,
  "byPrgPercContractClause": "sample string 10"
}

text/html

Sample:
{"title":"sample string 1","sectionTypeId":2,"certificationModeId":3,"subcontractId":4,"pep":"sample string 5","sectionScopeTypeId":6,"itemGroupCode":"sample string 7","signedPrice":8.0,"disciplineId":"sample string 9","byProgressPercentage":1.0,"byPrgPercContractClause":"sample string 10"}

application/xml, text/xml

Sample:
<SectionCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SectionAgg">
  <ByPrgPercContractClause>sample string 10</ByPrgPercContractClause>
  <ByProgressPercentage>1</ByProgressPercentage>
  <CertificationModeId>3</CertificationModeId>
  <DisciplineId>sample string 9</DisciplineId>
  <ItemGroupCode>sample string 7</ItemGroupCode>
  <Pep>sample string 5</Pep>
  <SectionScopeTypeId>6</SectionScopeTypeId>
  <SectionTypeId>2</SectionTypeId>
  <SignedPrice>8</SignedPrice>
  <SubcontractId>4</SubcontractId>
  <Title>sample string 1</Title>
</SectionCreateDto>

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>