Setting metadata value
Learn how to update the collection using the Alphamoon's API
Last updated
Learn how to update the collection using the Alphamoon's API
Last updated
Alphamoon's API lets you update collections with metadata in just a few clicks.
Let's say you want to indicate that the given collection has already been printed. In this case, you can use the endpoint below to include such information in the server response:
This endpoint only allows you to edit the metadata of the collection. You can read more about metadata here.
PATCH
/api/v0.3/collections/{collection_id}
Path parameters
Name | Type | Description |
---|---|---|
You can get the collection_id from:
Upload a file endpoint (Base64 or Binary)
Get collections endpoint
URL e.g. https://workspace.alphamoon.ai/supervision/223742cc9bca43fd81b2d41b0018e4c7
Request body*
Add your metadata in the request body. For the purposes of this tutorial, let's stick with the printing example. Our metadata will be as follows:
See the example:
Go to the Metadata tab to learn more.
See next:
collection_id*
String
The ID of the selected collection.