Skip to content

Rename group

Changes group name.

HTTP method: PATCH

https://api.sender.net/v2/groups/{id}


ParameterTypeDescription
idstring requiredGroup ID
titlestringProvide a different name for this group

const url = new URL("https://api.sender.net/v2/groups/{id}");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
let bodyContent = {
"title": "My Renamed Group"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(bodyContent)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"success": true,
"message": "Group updated!"
}