Create a new user group.

Resource url

https://Your project.userecho.com/api/v2/users/groups.json

Parameters

Parameter Value Required? Default Options Description
name String yes Group name
vote_weight Integer no 1 1,2,3,4,5 Count votes allowed to each user for each topic
vote_count Integer no null (unlimited) positive integer or null Count votes allowed to each user for all topics

Request example #1

{
    "name": "New group"
}

Request example #2

{
    "name": "New group",
    "vote_weight": 3,
    "vote_count": 100
}

Response example

{
    "status": "success", 
    "data": {
        "id": 1, 
        "name": "New group",
        "vote_count": 3, 
        "vote_weight": 100
    }
}
© 2023 Stamul, LLC. All rights reserved.