{
"WorkgroupActivityId": "WAID-12345-abc-123456",
"DigitOrder": 2,
"PhoneNumber": "+1234567890",
"WorkgroupId": "WID-12345-abc-12345",
"Type": "User",
"ReferenceUserId": "USER-abc-456",
"SmsNotification": true,
"EmailNotification": true
}curl -X POST https://api.telegent.com/v1.0/workgroups/activity/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"WorkgroupActivityId": "WAID-12345-abc-123456",
"DigitOrder": 2
}'import requests
url = "https://api.telegent.com/v1.0/workgroups/activity/update"
payload = {
"WorkgroupActivityId": "WAID-12345-abc-123456",
"DigitOrder": 2,
"PhoneNumber": "+1234567890",
"WorkgroupId": "WID-12345-abc-12345",
"ReferenceWorkgroupId": "<string>",
"ReferenceUserId": "<string>",
"SmsNotification": True,
"EmailNotification": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
WorkgroupActivityId: 'WAID-12345-abc-123456',
DigitOrder: 2,
PhoneNumber: '+1234567890',
WorkgroupId: 'WID-12345-abc-12345',
ReferenceWorkgroupId: '<string>',
ReferenceUserId: '<string>',
SmsNotification: true,
EmailNotification: true
})
};
fetch('https://api.telegent.com/v1.0/workgroups/activity/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telegent.com/v1.0/workgroups/activity/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'WorkgroupActivityId' => 'WAID-12345-abc-123456',
'DigitOrder' => 2,
'PhoneNumber' => '+1234567890',
'WorkgroupId' => 'WID-12345-abc-12345',
'ReferenceWorkgroupId' => '<string>',
'ReferenceUserId' => '<string>',
'SmsNotification' => true,
'EmailNotification' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telegent.com/v1.0/workgroups/activity/update"
payload := strings.NewReader("{\n \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n \"DigitOrder\": 2,\n \"PhoneNumber\": \"+1234567890\",\n \"WorkgroupId\": \"WID-12345-abc-12345\",\n \"ReferenceWorkgroupId\": \"<string>\",\n \"ReferenceUserId\": \"<string>\",\n \"SmsNotification\": true,\n \"EmailNotification\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telegent.com/v1.0/workgroups/activity/update")
.header("Content-Type", "application/json")
.body("{\n \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n \"DigitOrder\": 2,\n \"PhoneNumber\": \"+1234567890\",\n \"WorkgroupId\": \"WID-12345-abc-12345\",\n \"ReferenceWorkgroupId\": \"<string>\",\n \"ReferenceUserId\": \"<string>\",\n \"SmsNotification\": true,\n \"EmailNotification\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/workgroups/activity/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n \"DigitOrder\": 2,\n \"PhoneNumber\": \"+1234567890\",\n \"WorkgroupId\": \"WID-12345-abc-12345\",\n \"ReferenceWorkgroupId\": \"<string>\",\n \"ReferenceUserId\": \"<string>\",\n \"SmsNotification\": true,\n \"EmailNotification\": true\n}"
response = http.request(request)
puts response.read_body{
"WorkgroupActivityStatus": "Updated",
"WorkgroupActivityId": "WAID-12345-abc-123456"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Update Workgroup Activity
Update the configuration of a member within a workgroup. A workgroup activity represents an individual agent, destination, or nested workgroup within a ring group. Modify fields such as dial order (DigitOrder), forwarding number, or notification preferences. Requires the WorkgroupActivityId (WAID-) of the activity to update.
What this does: Returns the updated activity record. Use this to change a member’s ring order, SIP details, or timeout settings within the workgroup.
Next steps:
- Confirm the update —
GET /v1.0/workgroups - Remove the member —
POST /v1.0/workgroups/activity/delete
{
"WorkgroupActivityId": "WAID-12345-abc-123456",
"DigitOrder": 2,
"PhoneNumber": "+1234567890",
"WorkgroupId": "WID-12345-abc-12345",
"Type": "User",
"ReferenceUserId": "USER-abc-456",
"SmsNotification": true,
"EmailNotification": true
}curl -X POST https://api.telegent.com/v1.0/workgroups/activity/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"WorkgroupActivityId": "WAID-12345-abc-123456",
"DigitOrder": 2
}'import requests
url = "https://api.telegent.com/v1.0/workgroups/activity/update"
payload = {
"WorkgroupActivityId": "WAID-12345-abc-123456",
"DigitOrder": 2,
"PhoneNumber": "+1234567890",
"WorkgroupId": "WID-12345-abc-12345",
"ReferenceWorkgroupId": "<string>",
"ReferenceUserId": "<string>",
"SmsNotification": True,
"EmailNotification": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
WorkgroupActivityId: 'WAID-12345-abc-123456',
DigitOrder: 2,
PhoneNumber: '+1234567890',
WorkgroupId: 'WID-12345-abc-12345',
ReferenceWorkgroupId: '<string>',
ReferenceUserId: '<string>',
SmsNotification: true,
EmailNotification: true
})
};
fetch('https://api.telegent.com/v1.0/workgroups/activity/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telegent.com/v1.0/workgroups/activity/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'WorkgroupActivityId' => 'WAID-12345-abc-123456',
'DigitOrder' => 2,
'PhoneNumber' => '+1234567890',
'WorkgroupId' => 'WID-12345-abc-12345',
'ReferenceWorkgroupId' => '<string>',
'ReferenceUserId' => '<string>',
'SmsNotification' => true,
'EmailNotification' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telegent.com/v1.0/workgroups/activity/update"
payload := strings.NewReader("{\n \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n \"DigitOrder\": 2,\n \"PhoneNumber\": \"+1234567890\",\n \"WorkgroupId\": \"WID-12345-abc-12345\",\n \"ReferenceWorkgroupId\": \"<string>\",\n \"ReferenceUserId\": \"<string>\",\n \"SmsNotification\": true,\n \"EmailNotification\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telegent.com/v1.0/workgroups/activity/update")
.header("Content-Type", "application/json")
.body("{\n \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n \"DigitOrder\": 2,\n \"PhoneNumber\": \"+1234567890\",\n \"WorkgroupId\": \"WID-12345-abc-12345\",\n \"ReferenceWorkgroupId\": \"<string>\",\n \"ReferenceUserId\": \"<string>\",\n \"SmsNotification\": true,\n \"EmailNotification\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/workgroups/activity/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n \"DigitOrder\": 2,\n \"PhoneNumber\": \"+1234567890\",\n \"WorkgroupId\": \"WID-12345-abc-12345\",\n \"ReferenceWorkgroupId\": \"<string>\",\n \"ReferenceUserId\": \"<string>\",\n \"SmsNotification\": true,\n \"EmailNotification\": true\n}"
response = http.request(request)
puts response.read_body{
"WorkgroupActivityStatus": "Updated",
"WorkgroupActivityId": "WAID-12345-abc-123456"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Body
Unique identifier of the workgroup activity to update
"WAID-12345-abc-123456"
IVR digit or ring order position
2
Phone number to ring or forward to for this activity. Use E.164 format (e.g., +15555555555).
"+1234567890"
Parent workgroup ID
"WID-12345-abc-12345"
Member type
User, Workgroup Referenced workgroup ID
Referenced user ID
Enable SMS notification
Enable email notification
Response
Workgroup Activity Updated
The response is of type object.