Item
#ItemController
Overview
Description
Path /v2/items
Handles all requests regarding items: creating, updating, deleting.
Item JSON object
An example for a item json object.
fields
width
height
depth
displayedWidth
displayedHeight
displayedDepth
perspectiveImage
perspectiveImageHD
topImage
assets : the known 3dAssets for this item.
configuration
hidden - deprecated - superseded by visibilityStatus
visibilityStatus : possible values
0 : SHOWN (visible everywhere)
1 : SHOWN_IN_CMS (visible only in cms context)
2 : ARCHIVED (hidden everywhere)
created
manufacturerSKU
updated
type
detailType
flipable
scaleable
colorable
layer
orderable
requestable
retailPriceAllowed
label
language
catalog
id
tags
affiliateIds
links
attributes
basecolor
version
API Reference
GET /
Generates: json
Query item data based on given filters. If no filter is added by query parameters, all visible items for the requested user will be returned.
query-param:
deltaSince: has to be a date string with timezone. This string has to match following example
2016-06-01T07:54:07.000Z
. Only if given date string is matching this format, the response will be reduced to only updated items after given date.
Filter:
Each bullet point describes an available filter, where each secondary bullet point/s names the query parameter, which has to be added to the request in order to execute that filter correctly. If requirements for a filter are not met, then the request will behave like no filter was added and therefore will return all visible items.
all items for one catalog
catalog
all items for many catalogs
catalog[]
all items which are visible to the requested user and match types
types[]
specific items per id
ids[]
perfect fit items per item ids
perfectFitItemIds[]
perfect fit items per component ids
perfectFitComponentIds[]
similar items
type
detailType
color
width
depth
height
Response:
Item objects are described in Section Item JSON Object
PUT /:id (multipart)
updates assets on an item
Accepts: multipart-formdata
Generates: application/json
parameters:
file : datafile to be uploaded
type: type of the asset
possible types are images: "perspectiveImage","perspectiveImageHD","topImage" assetSource for 3d data: "src"
Response: Item object as described in section Item JSON Object
PUT /:id (json)
Updates an existing Item.
Accepts: application/json
Generates: application/json
Response: Item object as described in section Item JSON Object
GET /:id/topImage
returns a temporary redirect (307) to the URL of the topImage for this item
GET /:id/perspectiveImage
returns a temporary redirect (307) to the URL of the perspectiveImage for this item
GET /:id/perspectiveImageHD
returns a temporary redirect (307) to the URL of the perspectiveImageHD for this item
Uploading 3D Assets
You can upload 3D Assets for an item which will then be processed for realtime usage within the roomle plattform. If processed successfully, the dimensions of the 3D Asset will be taken as dimensions for the object, overriding any previously existing dimensions.
Asset Processing JSON object
An example for an asset processing object.
GET /:id/threeDimensionalAssets
Generates: json
Returns all asset processing statuses for requested item
Response: Asset Processing objects are described in Section Asset Processing JSON Object
POST /:id/threeDimensionalAssets
Accepts: multipart-formdata
Generates: json
Creating a new asset processing (DAP-job) for requested item. needs to provide either the compressed source file or a url to the compressed sourcefile. if both are provided, the URL is ignored.
form-parameters:
threeDimensionalAsset (file) : the source file to be processed (zip or tar.gz)
threeDimensionalAssetUrl (string) : URL to the source file
PUT /:id/threeDimensionalAssets
Accepts: multipart-formdata
Generates: json
Updating asset processing with either just a progress update or with a finished zipped file.
POST /:id/threeDimensionalAsset Deprecated
use POST /:id/threeDimensionalAssets instead
PUT /:id/threeDimensionalAsset Deprecated
use PUT /:id/threeDimensionalAssets instead
POST /:id/renderings
Creating a new asset processing rendering job (DAP-job) for requested item.
Accepts: multipart-formdata
Generates: json
path-parameters:
id : item id
form-parameters: The form parameter body for rendering require the settings property to be present and views field of this property to be non-empty.
settings: contains all settings for import/render/export
POST /:id/3d-exports
Creating a new asset processing 3d-exports job (DAP-job) for requested item.
Accepts: multipart-formdata
Generates: json
path-parameters: -id : item id
form-parameters: The form parameter body for 3d-exports require the settings property to be present and the export field of this property to be non-empty.
settings: contains all settings for import/render/export.
POST /:id/assets
Saving a new asset for the given item.
Accepts: multipart-formdata
Generates: json
path-parameters: -id : item id
form-parameters:
assetFile: body with file disposition - contains the file
assetUrl : field - url to the asset
type : field - string identifier of the asset type
The multipart should contain either an asset file or a url to the asset. It also requires a type for the asset. The type can be any string except internally reserved ones. The files will keep their extensions. The posts can only be made in a cms context
POST /:id/conversions
Creating a new asset processing conversion job (DAP-job) targeting the item.
Accepts: multipart-formdata
Generates: json
path-parameters:
id : String - combinedId of the item where the results of the conversion will be saved, must be already created
form-parameters:
sourceId : String - combined id of the item that is the source of the conversion
type : String - identifier of the conversion type
settings: contains all settings for import/render/export/convert.
Settings json example:
Conversion types:
'static-to-configurable' : This conversion takes the source static item and converts it into a configurable item by creating materials, textures, meshes and components. The resulting component is then set as the target items root component, to achieve an immediately usable configurable item.
Last updated