Update user group.

Resource url

https://yourproject.userecho.com/api/v2/users/groups.json

Parameters

Parameter Value Required? Default Options Description
id Integer yes Group ID
name String no 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

    { "id": 1, "name": "New group" }
  

Request example #2

    { "id": 1, "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 } }
  
© 2024 Stamul, LLC. All rights reserved.