Q a

Toggle an upvote on behalf of a user

POST
/api/v1/questions/{id}/upvote

Authorization

tenant-api-key
x-api-key<token>

Tenant API key (backend only — never expose to a browser)

In: header

Path Parameters

id*string

Question ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/questions/string/upvote" \  -H "Content-Type: application/json" \  -d '{    "voterExternalId": "user_abc123"  }'
{  "id": "string",  "roomId": "string",  "text": "string",  "status": "OPEN",  "askerExternalId": {},  "askerName": {},  "upvoteCount": 0,  "answerText": {},  "answeredByExternalId": {},  "answeredAt": {},  "createdAt": "2019-08-24T14:15:22Z"}