Skip to main content

Vote For Company

Applies to: v3 (Turso)
Method
GET
Auth
JWT (user)
Effect
Updates user + company votes
Response
{ updatedUser, updatedCompany }
Componentv3
Entry endpointn/a
Primary storeDirectus (source data)
Authx-api-key for admin tools
Effectn/a

Sequence

Quickstart (v3)

curl -H "Authorization: Bearer <JWT>" \
https://api.example.com/v3/users/<device_id>/up/boycott/<company_id>

Differences (v2 vs v3)

  • v2: no user-facing vote endpoint in this worker.
  • v3: updates both user and company in Turso, returns updated records.

See also

Code references