POST api/Invoice/UpdateProductsToGearLinks
Request Information
URI Parameters
None.
Body Parameters
Collection of InvoiceProductToGearLinkUpdateModelName | Description | Type | Additional information |
---|---|---|---|
InvoiceProductID | integer |
None. |
|
Links | Collection of InvoiceProductToGearLinkModel |
None. |
Request Formats
application/json, text/json
Sample:
[ { "InvoiceProductID": 1, "Links": [ { "ID": 1, "InvoiceProductID": 2, "GearTypeID": 3, "GearType": "sample string 4", "IsService": true, "IsReplacement": true }, { "ID": 1, "InvoiceProductID": 2, "GearTypeID": 3, "GearType": "sample string 4", "IsService": true, "IsReplacement": true } ] }, { "InvoiceProductID": 1, "Links": [ { "ID": 1, "InvoiceProductID": 2, "GearTypeID": 3, "GearType": "sample string 4", "IsService": true, "IsReplacement": true }, { "ID": 1, "InvoiceProductID": 2, "GearTypeID": 3, "GearType": "sample string 4", "IsService": true, "IsReplacement": true } ] } ]
application/xml, text/xml
Sample:
<ArrayOfInvoiceProductToGearLinkUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO"> <InvoiceProductToGearLinkUpdateModel> <InvoiceProductID>1</InvoiceProductID> <Links> <InvoiceProductToGearLinkModel> <GearType>sample string 4</GearType> <GearTypeID>3</GearTypeID> <ID>1</ID> <InvoiceProductID>2</InvoiceProductID> <IsReplacement>true</IsReplacement> <IsService>true</IsService> </InvoiceProductToGearLinkModel> <InvoiceProductToGearLinkModel> <GearType>sample string 4</GearType> <GearTypeID>3</GearTypeID> <ID>1</ID> <InvoiceProductID>2</InvoiceProductID> <IsReplacement>true</IsReplacement> <IsService>true</IsService> </InvoiceProductToGearLinkModel> </Links> </InvoiceProductToGearLinkUpdateModel> <InvoiceProductToGearLinkUpdateModel> <InvoiceProductID>1</InvoiceProductID> <Links> <InvoiceProductToGearLinkModel> <GearType>sample string 4</GearType> <GearTypeID>3</GearTypeID> <ID>1</ID> <InvoiceProductID>2</InvoiceProductID> <IsReplacement>true</IsReplacement> <IsService>true</IsService> </InvoiceProductToGearLinkModel> <InvoiceProductToGearLinkModel> <GearType>sample string 4</GearType> <GearTypeID>3</GearTypeID> <ID>1</ID> <InvoiceProductID>2</InvoiceProductID> <IsReplacement>true</IsReplacement> <IsService>true</IsService> </InvoiceProductToGearLinkModel> </Links> </InvoiceProductToGearLinkUpdateModel> </ArrayOfInvoiceProductToGearLinkUpdateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of InvoiceProductToGearLinkModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
InvoiceProductID | integer |
None. |
|
GearTypeID | integer |
None. |
|
GearType | string |
None. |
|
IsService | boolean |
None. |
|
IsReplacement | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ID": 1, "InvoiceProductID": 2, "GearTypeID": 3, "GearType": "sample string 4", "IsService": true, "IsReplacement": true }, { "ID": 1, "InvoiceProductID": 2, "GearTypeID": 3, "GearType": "sample string 4", "IsService": true, "IsReplacement": true } ]
application/xml, text/xml
Sample:
<ArrayOfInvoiceProductToGearLinkModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO"> <InvoiceProductToGearLinkModel> <GearType>sample string 4</GearType> <GearTypeID>3</GearTypeID> <ID>1</ID> <InvoiceProductID>2</InvoiceProductID> <IsReplacement>true</IsReplacement> <IsService>true</IsService> </InvoiceProductToGearLinkModel> <InvoiceProductToGearLinkModel> <GearType>sample string 4</GearType> <GearTypeID>3</GearTypeID> <ID>1</ID> <InvoiceProductID>2</InvoiceProductID> <IsReplacement>true</IsReplacement> <IsService>true</IsService> </InvoiceProductToGearLinkModel> </ArrayOfInvoiceProductToGearLinkModel>