MinMaxHub
Documentation
  • Introduction
  • Architecture
  • Frontend
Domains
  • Nodes
  • Entities
  • Consensus
  • Suggestions
Resources
  • API Reference

Copyright 2026 MinMaxHub

  • Documentation
  • Domains
  • API Reference
Information
Consensus
    Trigger consensus recomputation for an entitypostApprove or reject a suggestion via moderationpostList suggestions pending moderationgetGet consensus page data for SSR renderinggetResolve a full page by slug pathget
Entities
    Create a new entity under a nodepostGet an entity by its unique identifiergetUpdate an entity's title and statusputDelete an entitydeleteRefresh an entity's layout from its parent node templatespatchList entities belonging to a nodegetGet an entity by its full slug pathgetList all entity slug pathsget
Media
    Get a presigned URL for image uploadpost
Nodes
    Create a new node in the taxonomy treepostGet a node by its unique identifiergetArchive a nodepatchUpdate a node's layout templatesputList ancestor nodes for a slug pathgetList direct children of a nodegetList all descendants of a nodegetGet a node by its slug pathget
Rules
    List all rules in a foldergetGet a single rule by folder and component keygetUpdate an existing ruleputCreate a new rulepost
Suggestions
    Create a new content suggestionpostGet a suggestion by its unique identifiergetSoft-delete a suggestiondeleteUpdate a suggestion's value or statuspatchList suggestions by a specific authorgetList suggestions for a specific entitygetList suggestions by target (entity + topic + item)get
Users
    List all usersgetGet a user profile by IDgetGet a user profile by usernameget
Votes
    Cast or change a vote on a suggestionpostGet the authenticated user's votesget
Schemas
powered by Zudoku
MinMaxHub API
MinMaxHub API

Votes

Endpoint{apiBaseUrl}
Download schema

Community voting on suggestions (Write path). Votes are +1 (upvote), 0 (remove), or -1 (downvote).


Cast or change a vote on a suggestion

POST
{apiBaseUrl}
/votes

Casts a vote on a suggestion. Value 1 is an upvote, -1 is a downvote, and 0 removes a previous vote. Each user can have at most one active vote per suggestion. Returns the updated vote tallies (score, upvotes, downvotes). Requires authentication.

Cast or change a vote on a suggestion › Request Body

Request body for casting a vote on a suggestion. Value 1 is upvote, -1 is downvote, 0 removes a previous vote.
suggestionId
​string · minLength: 1 · required

ID of the suggestion to vote on

value
​integer · enum · required

Vote value: 1 (upvote), 0 (remove), -1 (downvote)

Enum values:
1
0
-1

Cast or change a vote on a suggestion › Responses

Vote recorded successfully

Standard response envelope wrapping all API responses. Every response includes a trace ID for debugging, a machine-readable status, and a human-readable message.
status
​string · enum · required

Machine-readable status code

Enum values:
OK
CREATED
ACCEPTED
NO_CONTENT
BAD_REQUEST
UNAUTHORIZED
FORBIDDEN
NOT_FOUND
message
​string · required

Human-readable status message

traceId
​string

Unique request trace ID for debugging and log correlation

​object

Updated vote tallies returned after casting a vote. Reflects the new totals for the target suggestion.

POST/votes
curl --request POST \ --url %7BapiBaseUrl%7D/votes \ --header 'Content-Type: application/json' \ --data ' { "suggestionId": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "value": 1 } '
shell
Example Request Body
{ "suggestionId": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "value": 1 }
json
application/json
Example Responses
{ "traceId": "req_vote001", "status": "OK", "message": "Vote recorded", "data": { "score": 7, "upvotes": 9, "downvotes": 2 } }
json
application/json

Get the authenticated user's votes

GET
{apiBaseUrl}
/votes/me

Returns the current user's votes, optionally filtered by a comma-separated list of suggestion IDs. Returns a map of suggestionId to vote value. Requires authentication.

Get the authenticated user's votes › query Parameters

suggestionIds
​string

Comma-separated list of suggestion IDs to filter votes for. Omit to return all votes.

Get the authenticated user's votes › Responses

Votes retrieved successfully

Standard response envelope wrapping all API responses. Every response includes a trace ID for debugging, a machine-readable status, and a human-readable message.
status
​string · enum · required

Machine-readable status code

Enum values:
OK
CREATED
ACCEPTED
NO_CONTENT
BAD_REQUEST
UNAUTHORIZED
FORBIDDEN
NOT_FOUND
message
​string · required

Human-readable status message

traceId
​string

Unique request trace ID for debugging and log correlation

​object

Map of the authenticated user's votes. Keys are suggestion IDs, values are vote values (1, 0, or -1).

GET/votes/me
curl --request GET \ --url %7BapiBaseUrl%7D/votes/me
shell
Example Responses
{ "traceId": "req_myvotes001", "status": "OK", "message": "Votes retrieved", "data": { "votes": { "b2c3d4e5-f6a7-8901-bcde-f12345678901": 1, "c3d4e5f6-a7b8-9012-cdef-234567890abc": -1 } } }
json
application/json

Users