put https://gateway.metafuse.me/v1/item/
The /v1/item/{id}
route provides a comprehensive interface for fetching, updating, and deleting a specified item within a Metafuse project. Here’s a breakdown of the operations available on this route:
-
GET Method:
Retrieves the details of a specified item.id
(required, path): Identifies the item to fetch.
A successful query returns a200
status code along with the item's details, while a400
status code denotes client-side errors like missing required parameters or incorrect query format.
-
PUT Method:
Updates the specified item’s details with the provided JSON payload adhering to the schema (MetafuApiDe7EW7DQuJtCln
). The schema includes:image
(optional): A base64 encoded string representing the updated image of the item.allowDuplicatesOverride
(optional): A boolean flag to control the allowance of duplicate items, defaulted tofalse
.traits
(optional): An array of objects representing updated trait values and types.visibility
(optional): A string value of eitherPUBLIC
orPRIVATE
determining the visibility of the item's image and metadata.id
(required, path): Identifies the item to update.
A successful update returns a200
status code, indicating the successful modification of the item. A400
status code is returned for client-side errors like missing required parameters or incorrect data format.
-
DELETE Method:
Deletes the specified item from the Metafuse platform.id
(required, path): Identifies the item to delete.
A successful deletion returns a200
status code, indicating the successful removal of the item. A400
status code is returned for client-side errors like missing required parameters.