Update a member group
PATCH
/v1/groups/{groupId}
const url = 'https://api.varman.io/v1/groups/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Engineering","description":"example","memberIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/groups/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "Engineering", "description": "example", "memberIds": [ "example" ] }'Renames a group, changes its description, or replaces its full member list when memberIds is given. Use add or remove member endpoints to change one person at a time.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”groupId
required
string
Group id (grp_…)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
New group name
string
Example
Engineeringdescription
New description, empty string clears it
string
memberIds
Full list of member ids. Replaces the current members when given.
Array<string>
Responses
Section titled “Responses”The updated group