POST api/AdminProduct/AddProduct
Request Information
URI Parameters
None.
Body Parameters
AddProductModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PublisherId | integer |
None. |
|
| ProductId | integer |
None. |
|
| Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PublisherId": 1,
"ProductId": 2,
"Name": "sample string 3"
}
text/html
Sample:
{"PublisherId":1,"ProductId":2,"Name":"sample string 3"}
application/xml, text/xml
Sample:
<AddProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mediahuis.Models.Admin"> <Name>sample string 3</Name> <ProductId>2</ProductId> <PublisherId>1</PublisherId> </AddProductModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ProductViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CreatedOn | date |
None. |
|
| PublisherId | integer |
None. |
|
| ProductId | integer |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"CreatedOn": "2026-04-03T06:02:19.2406979Z",
"PublisherId": 3,
"ProductId": 4,
"Name": "sample string 5"
},
{
"Id": 1,
"CreatedOn": "2026-04-03T06:02:19.2406979Z",
"PublisherId": 3,
"ProductId": 4,
"Name": "sample string 5"
}
]
text/html
Sample:
[{"Id":1,"CreatedOn":"2026-04-03T06:02:19.2406979Z","PublisherId":3,"ProductId":4,"Name":"sample string 5"},{"Id":1,"CreatedOn":"2026-04-03T06:02:19.2406979Z","PublisherId":3,"ProductId":4,"Name":"sample string 5"}]
application/xml, text/xml
Sample:
<ArrayOfProductViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mediahuis.Models.Admin">
<ProductViewModel>
<Name>sample string 5</Name>
<ProductId>4</ProductId>
<CreatedOn>2026-04-03T06:02:19.2406979Z</CreatedOn>
<Id>1</Id>
<PublisherId>3</PublisherId>
</ProductViewModel>
<ProductViewModel>
<Name>sample string 5</Name>
<ProductId>4</ProductId>
<CreatedOn>2026-04-03T06:02:19.2406979Z</CreatedOn>
<Id>1</Id>
<PublisherId>3</PublisherId>
</ProductViewModel>
</ArrayOfProductViewModel>