跳转到主要内容
DELETE
/
api
/
assets
/
{id}
/
tags
Remove tags from asset
curl --request DELETE \
  --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>"
  ]
}

授权

X-API-Key
string
header
必填

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.

路径参数

id
string<uuid>
必填

Asset ID

请求体

application/json
tags
string[]
必填

Tags to remove from the asset

Minimum array length: 1

响应

Tags removed successfully

total_tags
string[]
必填

All tags on the asset after the operation

added
string[]

Tags that were successfully added (for add operation)

removed
string[]

Tags that were successfully removed (for remove operation)

already_present
string[]

Tags that were already present (for add operation)

not_present
string[]

Tags that were not present (for remove operation)