POST api/Products
Request Information
URI Parameters
None.
Body Parameters
productName | Description | Type | Additional information |
---|---|---|---|
productid | integer |
None. |
|
productcategoryid | integer |
None. |
|
lastupdatedate | date |
None. |
|
lastupdateid | integer |
None. |
|
isactive | boolean |
None. |
|
code | string |
None. |
|
name | string |
None. |
|
description | string |
None. |
|
comment | string |
None. |
|
priceexcl | decimal number |
None. |
|
sold | boolean |
None. |
|
markedassolddate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "productid": 1, "productcategoryid": 2, "lastupdatedate": "2024-09-30T11:30:56.6303294+02:00", "lastupdateid": 4, "isactive": true, "code": "sample string 5", "name": "sample string 6", "description": "sample string 7", "comment": "sample string 8", "priceexcl": 1.0, "sold": true, "markedassolddate": "2024-09-30T11:30:56.6303294+02:00" }
application/xml, text/xml
Sample:
<product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agribkWebAPI.Models"> <code>sample string 5</code> <comment>sample string 8</comment> <description>sample string 7</description> <isactive>true</isactive> <lastupdatedate>2024-09-30T11:30:56.6303294+02:00</lastupdatedate> <lastupdateid>4</lastupdateid> <markedassolddate>2024-09-30T11:30:56.6303294+02:00</markedassolddate> <name>sample string 6</name> <priceexcl>1</priceexcl> <productcategoryid>2</productcategoryid> <productid>1</productid> <sold>true</sold> </product>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
productName | Description | Type | Additional information |
---|---|---|---|
productid | integer |
None. |
|
productcategoryid | integer |
None. |
|
lastupdatedate | date |
None. |
|
lastupdateid | integer |
None. |
|
isactive | boolean |
None. |
|
code | string |
None. |
|
name | string |
None. |
|
description | string |
None. |
|
comment | string |
None. |
|
priceexcl | decimal number |
None. |
|
sold | boolean |
None. |
|
markedassolddate | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "productid": 1, "productcategoryid": 2, "lastupdatedate": "2024-09-30T11:30:56.6303294+02:00", "lastupdateid": 4, "isactive": true, "code": "sample string 5", "name": "sample string 6", "description": "sample string 7", "comment": "sample string 8", "priceexcl": 1.0, "sold": true, "markedassolddate": "2024-09-30T11:30:56.6303294+02:00" }
application/xml, text/xml
Sample:
<product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agribkWebAPI.Models"> <code>sample string 5</code> <comment>sample string 8</comment> <description>sample string 7</description> <isactive>true</isactive> <lastupdatedate>2024-09-30T11:30:56.6303294+02:00</lastupdatedate> <lastupdateid>4</lastupdateid> <markedassolddate>2024-09-30T11:30:56.6303294+02:00</markedassolddate> <name>sample string 6</name> <priceexcl>1</priceexcl> <productcategoryid>2</productcategoryid> <productid>1</productid> <sold>true</sold> </product>