Skip to main content
All CollectionsDimensions API
Create a Product with API
Create a Product with API

Learn how to create a product with consecutive API calls

Mor Mendelevi avatar
Written by Mor Mendelevi
Updated over a week ago

Creating a Product currently requires 3 Consecutive API Calls.

πŸ‘©β€πŸ’»β€‹ Create Products Entity

Method: POST

Body

{
"name": "product name",
"description": "product description",
"sku": "unique-identifier"
}

Response Example

{
"id": "f3591827-908b-4bc7-b801-032ea8e41e12",
"createdAt": "2023-07-06T14:22:53.531907065Z",
"updatedAt": "2023-07-06T14:22:53.531907065Z",
"deletedAt": null,
"name": "product name",
"description": "product description",
"sku": "unique-identifier"
}

πŸ‘¨β€πŸ’» Associate Product with Model

Method: POST

Product ID should be taken from the response in the first call

Body

{
"id": "{model-id}"
}

Model ID can be retrieved from getting the list of models at: https://api.dimensions.cloudinary.com/3DModel

πŸ‘©β€πŸ’» Associate Product with Preset

Product ID should be taken from the response in the first call

Body

[
"{preset-id}"
]

Preset ID can be retrieved from the web interface URL by opening an existing Preset or by listing presets at https://api.dimensions.cloudinary.com/preset

Did this answer your question?