POST api/Subcontracts/Marian
Creates a subcontract
Request Information
URI Parameters
None.
Body Parameters
MarianSubcontractCreateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
Required |
|
| Code | string |
Required String length: inclusive between 0 and 10 |
Request Formats
application/json, text/json
Sample:
{
"projectId": 1,
"code": "sample string 2"
}
text/html
Sample:
{"projectId":1,"code":"sample string 2"}
application/xml, text/xml
Sample:
<MarianSubcontractCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SubcontractAgg"> <Code>sample string 2</Code> <ProjectId>1</ProjectId> </MarianSubcontractCreateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SubcontractSummaryDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Description | string |
None. |
|
| Name | string |
None. |
|
| Code | string |
None. |
|
| ProjectName | string |
None. |
|
| ProjectId | integer |
None. |
|
| DivisionName | string |
None. |
|
| Progress | decimal number |
None. |
|
| FromMarian | boolean |
None. |
|
| StateName | string |
None. |
|
| Pep | string |
None. |
|
| PepDescription | string |
None. |
|
| ItemGroupCode | string |
None. |
|
| DisciplineId | string |
None. |
|
| PendingForDeferredApprovalSending | boolean |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| ForecastStartDate | date |
None. |
|
| ForecastEndDate | date |
None. |
|
| ForecastAmount | decimal number |
None. |
|
| PoAmount | decimal number |
None. |
|
| SubcontractCertifiedAmount | decimal number |
None. |
|
| StorBlSupAllowedFor | string |
None. |
|
| StorBlDescSupAllowedFor | string |
None. |
|
| StorBlFinantialAlert | string |
None. |
|
| StorBlStatusId | integer |
None. |
|
| StorBlDescStatus | string |
None. |
|
| NotConnectedToSap | boolean |
None. |
|
| NeedsPepWarning | boolean |
None. |
|
| ProyectUseNewSIMethod | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"description": "sample string 2",
"name": "sample string 3",
"code": "sample string 4",
"projectName": "sample string 5",
"projectId": 6,
"divisionName": "sample string 7",
"progress": 8.0,
"fromMarian": true,
"stateName": "sample string 9",
"pep": "sample string 10",
"pepDescription": "sample string 11",
"itemGroupCode": "sample string 12",
"disciplineId": "sample string 13",
"pendingForDeferredApprovalSending": true,
"startDate": "2026-05-09T14:07:13.3398508+02:00",
"endDate": "2026-05-09T14:07:13.3398508+02:00",
"forecastStartDate": "2026-05-09T14:07:13.3398508+02:00",
"forecastEndDate": "2026-05-09T14:07:13.3398508+02:00",
"forecastAmount": 1.0,
"poAmount": 1.0,
"subcontractCertifiedAmount": 1.0,
"storBlSupAllowedFor": "sample string 15",
"storBlDescSupAllowedFor": "sample string 16",
"storBlFinantialAlert": "sample string 17",
"storBlStatusId": 1,
"storBlDescStatus": "sample string 18",
"notConnectedToSap": true,
"needsPepWarning": true,
"proyectUseNewSIMethod": true
}
text/html
Sample:
{"id":1,"description":"sample string 2","name":"sample string 3","code":"sample string 4","projectName":"sample string 5","projectId":6,"divisionName":"sample string 7","progress":8.0,"fromMarian":true,"stateName":"sample string 9","pep":"sample string 10","pepDescription":"sample string 11","itemGroupCode":"sample string 12","disciplineId":"sample string 13","pendingForDeferredApprovalSending":true,"startDate":"2026-05-09T14:07:13.3398508+02:00","endDate":"2026-05-09T14:07:13.3398508+02:00","forecastStartDate":"2026-05-09T14:07:13.3398508+02:00","forecastEndDate":"2026-05-09T14:07:13.3398508+02:00","forecastAmount":1.0,"poAmount":1.0,"subcontractCertifiedAmount":1.0,"storBlSupAllowedFor":"sample string 15","storBlDescSupAllowedFor":"sample string 16","storBlFinantialAlert":"sample string 17","storBlStatusId":1,"storBlDescStatus":"sample string 18","notConnectedToSap":true,"needsPepWarning":true,"proyectUseNewSIMethod":true}
application/xml, text/xml
Sample:
<SubcontractSummaryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SubcontractAgg"> <Code>sample string 4</Code> <Description>sample string 2</Description> <DisciplineId>sample string 13</DisciplineId> <DivisionName>sample string 7</DivisionName> <EndDate>2026-05-09T14:07:13.3398508+02:00</EndDate> <ForecastAmount>1</ForecastAmount> <ForecastEndDate>2026-05-09T14:07:13.3398508+02:00</ForecastEndDate> <ForecastStartDate>2026-05-09T14:07:13.3398508+02:00</ForecastStartDate> <FromMarian>true</FromMarian> <Id>1</Id> <ItemGroupCode>sample string 12</ItemGroupCode> <Name>sample string 3</Name> <NeedsPepWarning>true</NeedsPepWarning> <NotConnectedToSap>true</NotConnectedToSap> <PendingForDeferredApprovalSending>true</PendingForDeferredApprovalSending> <Pep>sample string 10</Pep> <PepDescription>sample string 11</PepDescription> <PoAmount>1</PoAmount> <Progress>8</Progress> <ProjectId>6</ProjectId> <ProjectName>sample string 5</ProjectName> <ProyectUseNewSIMethod>true</ProyectUseNewSIMethod> <StartDate>2026-05-09T14:07:13.3398508+02:00</StartDate> <StateName>sample string 9</StateName> <StorBlDescStatus>sample string 18</StorBlDescStatus> <StorBlDescSupAllowedFor>sample string 16</StorBlDescSupAllowedFor> <StorBlFinantialAlert>sample string 17</StorBlFinantialAlert> <StorBlStatusId>1</StorBlStatusId> <StorBlSupAllowedFor>sample string 15</StorBlSupAllowedFor> <SubcontractCertifiedAmount>1</SubcontractCertifiedAmount> </SubcontractSummaryDto>