Admin Design Catalog

Update material (multipart: any subset of name, llmPrompt, textureScale, textureLightness, textureRotation, isSeamless, texture, thumbnail)

Changed on
patch/v1/admin/materials/{materialId}

Request

  • Base URL
    http://localhost:3000
  • URL
    http://localhost:3000/v1/admin/materials/{materialId}
  • Auth
    none declared

Path parameters

materialIdstring required

Request body multipart/form-data

namestring

Name of the material

llmPromptstring nullable

Prompt used to describe material

category'wood_flooring' | 'concrete' | 'tile' | 'fabric' | 'wood' | 'stone' | 'metal' | 'rug' | 'plant' | 'wood_paneling' | 'brick' | 'outdoor' | 'carpet'
textureScaleunknown
textureLightnessunknown
textureRotationunknown
isSeamlessboolean

Response

Material updated successfully

successboolean required

Indicates if the request was successful

messagestring required

Human readable message

timestampstring date-time required

Timestamp of the response

Changes

    • warning

      added the new custom enum value to the / response property for the response status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • warning

      added the new carpet enum value to the / response property for the response status

    • info

      added the new carpet enum value to the request property