curl --request POST \
--url https://cloud.comfy.org/api/assets/{id}/tags \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"tags": [
"<string>"
]
}
'{
"total_tags": [
"<string>"
],
"added": [
"<string>"
],
"removed": [
"<string>"
],
"already_present": [
"<string>"
],
"not_present": [
"<string>"
]
}Adds one or more tags to an existing asset
curl --request POST \
--url https://cloud.comfy.org/api/assets/{id}/tags \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"tags": [
"<string>"
]
}
'{
"total_tags": [
"<string>"
],
"added": [
"<string>"
],
"removed": [
"<string>"
],
"already_present": [
"<string>"
],
"not_present": [
"<string>"
]
}API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.
Asset ID
Tags to add to the asset
1Tags added successfully
All tags on the asset after the operation
Tags that were successfully added (for add operation)
Tags that were successfully removed (for remove operation)
Tags that were already present (for add operation)
Tags that were not present (for remove operation)
Was this page helpful?