Products | Update
Create new product, update if exists
Sample request for adding a product with three variants, market prices and customer specific price, assets and a custom property.
POST /api/products
{
"id": "ABC-123_no",
"productId": "ABC-123",
"parentId": "ABC",
"language": "no",
"name": "Omnium Super Stylish sweater /w logo",
"color": "black",
"shortDescription": "A black cotton sweater",
"description": "A beautifully made sweater, with a stylish black color and the well known Omnium logo in white large print. 100% cotton. Designed in Oslo.",
"brand": "Omnium Sweaters 'n Jeans",
"season": "FW22",
"unit": "pcs",
"weight": 900,
"created": "2022-11-11T00:00:00",
"published": "2022-12-12T00:00:00",
"discontinued": "2026-06-03T00:00:00",
"isActive": true,
"variants": [
{
"skuId": "000000000001",
"isActive": true,
"isSku": true,
"size": "S"
},
{
"skuId": "000000000002",
"isActive": true,
"isSku": true,
"size": "M"
},
{
"skuId": "000000000003",
"isActive": true,
"isSku": true,
"size": "L"
}
],
"prices": [
{
"marketId": "NOR",
"unitPrice": 500,
"currencyCode": "NOK"
},
{
"marketId": "NOR",
"code": "000000000002",
"validFrom": "2022-01-01T00:00:00",
"validUntil": "2023-01-01T00:00:00",
"unitPrice": 250,
"currencyCode": "NOK",
"customerGroup": "100",
"discountAmount": 250,
"discountPercent": 50,
"originalUnitPrice": 500
}
],
"assets": [
{
"assetId": "78901",
"sortOrder": 1,
"url": "https://omnium-cdn-url-goes-here.com/id/305/200/300",
"externalUrl": "https://i.picsum.photos/id/305/200/300.jpg?hmac=qqxVDT5GPIxyVNSo9Y_9u_qZSwXU4Cy94gp7VAMVRIw",
"isMainImage": true
},
{
"assetId": "12345",
"sortOrder": 2,
"url": "https://omnium-cdn-url-goes-here.com/id/544/200/300",
"externalUrl": "https://i.picsum.photos/id/544/200/300.jpg?hmac=YL3M_fg_84Kqg0EQTvbltmjeGeQetARWPFA5YLn5hS0",
"name": "Close-up Omnium Awesome Sweater",
"description": "Close-up on the sweater, but this is just a random image though.",
"altText": "Close-up"
}
],
"properties": [
{
"key": "CollarType",
"value": "CrewNeck"
},
{
"key": "IsAwesome",
"value": "true",
"valueType": "Boolean"
}
]
}
post/api/Products
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/Products
- Auth: API key in header Authorization
Request body
Response
Product created successfully
Changes
No recorded changes to this operation across all 1 revision of this API.