POST api/Subcontracts/{subcontractId}/TMPriceList/AddNpas
Add TM price items from a list of NPA identifiers
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
TmPriceItemCreateFromNpaListCommand| Name | Description | Type | Additional information |
|---|---|---|---|
| SectionId | integer |
None. |
|
| NpaIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"sectionId": 1,
"npaIds": [
1,
2
]
}
text/html
Sample:
{"sectionId":1,"npaIds":[1,2]}
application/xml, text/xml
Sample:
<TmPriceItemCreateFromNpaListCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.AppServices.TMPriceListAgg.CommandHandlers">
<NpaIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</NpaIds>
<SectionId>1</SectionId>
</TmPriceItemCreateFromNpaListCommand>
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.