Update a Group's Members
curl --request PUT \
--url https://api.vomo.org/v1/groups/{id}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"members": [
"1"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({members: ['1']})
};
fetch('https://api.vomo.org/v1/groups/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vomo.org/v1/groups/{id}/members"
payload = { "members": ["1"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.vomo.org/v1/groups/{id}/members");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"members\": [\n \"1\"\n ]\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vomo.org/v1/groups/{id}/members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'members' => [
'1'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.put("https://api.vomo.org/v1/groups/{id}/members")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"members\": [\n \"1\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vomo.org/v1/groups/{id}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"members\": [\n \"1\"\n ]\n}"
response = http.request(request)
puts response.read_bodyconst url = 'https://api.vomo.org/v1/groups/{id}/members';
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({members: ['1']})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"data": [
{
"type": "user",
"id": "7903",
"first_name": "Priya",
"last_name": "Sharma",
"full_name": "Priya Sharma",
"email": "priya.sharma@example.org",
"address": "123 Maple Ave, McKinney, TX 75069, USA",
"phone": "(555) 012-0103",
"birthday": "1990-03-15",
"gender": "F",
"created_at": "2025-11-01T09:00:00+00:00",
"updated_at": "2025-11-05T14:22:00+00:00",
"user_status": "VERIFIED",
"membership_status": "ACCEPTED",
"membership_role": "ORGANIZER"
},
{
"type": "user",
"id": "8412",
"first_name": "Devon",
"last_name": "Park",
"full_name": "Devon Park",
"email": "devon.park@example.org",
"address": "987 Cedar Way, McKinney, TX 75069, USA",
"phone": "(555) 012-0112",
"birthday": "1998-04-20",
"gender": "O",
"created_at": "2025-11-06T09:00:00+00:00",
"updated_at": "2025-11-22T10:00:00+00:00",
"user_status": "VERIFIED",
"membership_status": "ACCEPTED",
"membership_role": "VOLUNTEER"
}
],
"links": {
"first": "https://api.vomo.org/v1/groups/602/members?page=1",
"last": "https://api.vomo.org/v1/groups/602/members?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"to": 2,
"path": "https://api.vomo.org/v1/groups/602/members",
"per_page": 15,
"total": 2
}
}{
"error": {
"code": 401,
"message": "Invalid API key"
}
}{
"message": "Group not found in your organization."
}{
"message": "The given data was invalid.",
"errors": {
"members.0": [
"Member not found."
]
}
}{
"message": "Too Many Attempts."
}{
"message": "Server Error"
}Groups
Update a Group's Members
Replaces the specified group’s membership with exactly the set of user IDs provided. This is NOT additive: any current member whose ID is omitted is removed from the group, and the supplied IDs become the complete membership. All provided user IDs must be members of your organization. Returns the updated paginated list of group members after the change.
PUT
https://api.vomo.org/v1
/
groups
/
{id}
/
members
Update a Group's Members
curl --request PUT \
--url https://api.vomo.org/v1/groups/{id}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"members": [
"1"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({members: ['1']})
};
fetch('https://api.vomo.org/v1/groups/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vomo.org/v1/groups/{id}/members"
payload = { "members": ["1"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.vomo.org/v1/groups/{id}/members");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"members\": [\n \"1\"\n ]\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vomo.org/v1/groups/{id}/members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'members' => [
'1'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.put("https://api.vomo.org/v1/groups/{id}/members")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"members\": [\n \"1\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vomo.org/v1/groups/{id}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"members\": [\n \"1\"\n ]\n}"
response = http.request(request)
puts response.read_bodyconst url = 'https://api.vomo.org/v1/groups/{id}/members';
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({members: ['1']})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"data": [
{
"type": "user",
"id": "7903",
"first_name": "Priya",
"last_name": "Sharma",
"full_name": "Priya Sharma",
"email": "priya.sharma@example.org",
"address": "123 Maple Ave, McKinney, TX 75069, USA",
"phone": "(555) 012-0103",
"birthday": "1990-03-15",
"gender": "F",
"created_at": "2025-11-01T09:00:00+00:00",
"updated_at": "2025-11-05T14:22:00+00:00",
"user_status": "VERIFIED",
"membership_status": "ACCEPTED",
"membership_role": "ORGANIZER"
},
{
"type": "user",
"id": "8412",
"first_name": "Devon",
"last_name": "Park",
"full_name": "Devon Park",
"email": "devon.park@example.org",
"address": "987 Cedar Way, McKinney, TX 75069, USA",
"phone": "(555) 012-0112",
"birthday": "1998-04-20",
"gender": "O",
"created_at": "2025-11-06T09:00:00+00:00",
"updated_at": "2025-11-22T10:00:00+00:00",
"user_status": "VERIFIED",
"membership_status": "ACCEPTED",
"membership_role": "VOLUNTEER"
}
],
"links": {
"first": "https://api.vomo.org/v1/groups/602/members?page=1",
"last": "https://api.vomo.org/v1/groups/602/members?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"to": 2,
"path": "https://api.vomo.org/v1/groups/602/members",
"per_page": 15,
"total": 2
}
}{
"error": {
"code": 401,
"message": "Invalid API key"
}
}{
"message": "Group not found in your organization."
}{
"message": "The given data was invalid.",
"errors": {
"members.0": [
"Member not found."
]
}
}{
"message": "Too Many Attempts."
}{
"message": "Server Error"
}Authorizations
Path Parameters
Body
application/json
The complete set of user IDs that should make up the group's membership after the request.
The complete set of user IDs that should make up the group's membership after the request.
Response
Returns the updated paginated list of group members after the membership has been replaced.
Was this page helpful?