Skip to main content

Report Boycott Company

Applies to: v3 (Turso)
Method
POST multipart/form-data
Auth
JWT (user)
Stores
Turso (reports), R2 (image)
Response
{ report, user }
Componentv3
Entry endpointn/a
Primary storeDirectus (source data)
Image storageR2 (via v2 utilities)
Authx-api-key for admin tools

System Context

Sequence

Quickstart (v3)

curl -X POST \
-H "Authorization: Bearer <JWT>" \
-F "productName=Organic tea" \
-F "barcode=4800361005500" \
-F "proof=https://example.com/article" \
-F "categories=food,beverage" \
-F "regions=1,2" \
-F "productImage=@/path/to/photo.jpg" \
https://api.example.com/v3/users/<device_id>/report/boycott

Differences (v2 vs v3)

  • v2: no user-facing report endpoint in this worker; images can be copied via v2 utilities; data originates in Directus.
  • v3: full report flow with validation, image upload to R2, Turso persistence, and report + updated user response.

See also

Code references