POST api/Supplements/subcontracts/{subcontractId}
Creates a Supplement
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
SupplementCreateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | integer |
Required |
|
| VersionName | string |
Required String length: inclusive between 0 and 60 |
|
| VersionDescription | string |
Required String length: inclusive between 0 and 2000 |
|
| VersionSignedPrice | decimal number |
None. |
|
| ApprovedExternally | boolean |
None. |
|
| AutomaticallySendToSap | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"typeId": 1,
"versionName": "sample string 1",
"versionDescription": "sample string 2",
"versionSignedPrice": 1.0,
"approvedExternally": true,
"automaticallySendToSap": true
}
text/html
Sample:
{"typeId":1,"versionName":"sample string 1","versionDescription":"sample string 2","versionSignedPrice":1.0,"approvedExternally":true,"automaticallySendToSap":true}
application/xml, text/xml
Sample:
<SupplementCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SuplementAgg"> <ApprovedExternally>true</ApprovedExternally> <AutomaticallySendToSap>true</AutomaticallySendToSap> <TypeId>1</TypeId> <VersionDescription>sample string 2</VersionDescription> <VersionName>sample string 1</VersionName> <VersionSignedPrice>1</VersionSignedPrice> </SupplementCreateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | boolean |
None. |
|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Collection of CustomError |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.