Skip to main content

Get Upload Tags

Retrieve all tags associated with an upload.

Request

curl https://api.fucksornot.com/api/uploads/550e8400-e29b-41d4-a716-446655440000/tags

Response

{
  "tags": [
    {
      "id": "tag-uuid-1",
      "name": "gadget",
      "slug": "gadget"
    },
    {
      "id": "tag-uuid-2",
      "name": "tech",
      "slug": "tech"
    }
  ]
}

Add Tags to Upload

Add tags to an existing upload.

Request

curl -X POST https://api.fucksornot.com/api/uploads/550e8400-e29b-41d4-a716-446655440000/tags \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tags": ["new-tag", "another-tag"]}'

Parameters

ParameterTypeDescription
tagsarrayArray of tag names (max 10 total on upload)

Response

{
  "success": true
}

Tag Limits

  • Maximum 10 tags per upload
  • If adding tags would exceed the limit, the request is rejected
  • Tags are automatically normalized (lowercase, trimmed)

Authorization

  • Only the upload owner can add tags
  • Admins can add tags to any upload

Errors

StatusDescription
400Too many tags or invalid tag names
401Not authenticated
403Not authorized (not the owner)
404Upload not found