...
material_uuid
: Product UUID from PIM or retrieved through the API.code
layout
: Layout code. Some products may have multiple layouts, allowing you to choose which to apply.custom_rotation_angle
: For flooring materials and tiles on walls, you can specify a rotation angle to apply the material in different orientations.
...
Code Block |
---|
{ "room_data": { "room": { "id": "example-room-uuid", "floor": { "material": { "material_uuid": "example-floor-material-uuid", "custom_rotation_angle": 0, "codelayout": "no_pattern" } }, "ceiling": { "material": { "material_uuid": "example-ceiling-material-uuid", "codelayout": "no_pattern" } }, "walls": [ { "wall_id": 0, "is_active": true, "material": { "material_uuid": "example-floor-material-uuid", "codelayout": "no_pattern" } }, { "wall_id": 1, "is_active": true, "custom_rotation_angle": 0, "material": { "material_uuid": "example-wall-material-uuid", "codelayout": "no_pattern" } } ] } } } |
...
API Endpoint:
POST /api/v1/rooms/{room_uuid}/apply-materials
Use the room_data
structure as the request body, and the API will return the room with the specified materials applied to the surfaces.
...