Replace a vault item’s content tags
API reference

Replace a vault item’s content tags

Replaces (not merges) the content tags on a vault item. Send the full list every time.

View as MarkdownUpdated Aug 19, 2026
PATCH/api/external/vault/{id}/tags

Replaces (not merges) the content tags on a vault item. Send the full list every time.

Tags are trimmed, de-duplicated, silently truncated to 64 characters each, and capped at 50 tags — the response echoes what was actually stored, so compare it to what you sent.

Field name

The body field is contentTags, not tags.

Authentication

Send the creator's API key as a bearer token: Authorization: Bearer dpfn_…. See Authentication & API keys.

Path parameters

NameTypeRequiredDescription
idstringRequiredThe vault item id.

Request body

Content type: application/json

NameTypeRequiredDescription
contentTagsstring[]RequiredThe complete new tag list (≤50 kept).
Max items: 50
Set two tags
{
  "contentTags": [
    "beach",
    "bikini"
  ]
}

Responses

200Stored — `contentTags` echoes the normalised list.
NameTypeDescription
successbooleanAlways true.
contentTagsstring[]The tags after trimming, de-duplication and capping.
Example response
{
  "success": true,
  "contentTags": [
    "beach",
    "bikini"
  ]
}

Errors

StatusBodyWhen
400{"error":"Invalid JSON body"}The body is not valid JSON.
400{"error":"contentTags must be an array of strings"}Missing, not an array, or contains non-strings.
401{"error":"Unauthorized","code":"unauthorized"}Missing or invalid API key.
404{"error":"Vault item not found"}No such item on this account.

Rate limiting

Every response carries the X-RateLimit-Tier header and, on limited tiers, the per-minute and per-day trios — read X-RateLimit-Remaining and X-RateLimit-Reset instead of hardcoding limits. Details in Rate limits.

Code samples

curl -X PATCH "https://www.dropfans.io/api/external/vault/$VAULT_ITEM_ID/tags" \
  -H "Authorization: Bearer $DROPFANS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contentTags": [
    "beach",
    "bikini"
  ]
}'

Questions? [email protected]