top of page

Create a Product with API

Learn how to create a product with consecutive API calls.


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

Related Posts

See All

Generate Assets with API

Learn how to generate assets using API calls. To generate the assets, the following API call can be made: URL:...

Webhook Notification

Learn how to configure a webhook endpoint that will be called whenever a Generate job is finished. To configure a webhook endpoint that...

ความคิดเห็น


ปิดการแสดงความคิดเห็น
bottom of page