Projects > Visuals Vote


Vote type

Vote type name
0 none
1 up
2 down

Store

POST : /api/designnest/v1/projects/{projectID}/visuals/{visualID}/vote

projectID : the ID of the current project

Request :

{
    "vote" : {
        "type" : 0 / 1 / 2
    }
}

Response :

{
    "code" : 1 ,
    "message" : "" ,
}

Update

PATCH : /api/designnest/v1/projects/{projectID}/visuals/{visualID}/vote

projectID : the ID of the current project

Request :

{
    "vote" : {
        "type" : 0 / 1 / 2
    }
}

Response :

{
    "code" : 1 ,
    "message" : "" ,
}