json
{
"ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
"ServiceName": "Caller Id",
"Cost": 2.34,
"Monthly": true
}curl -X POST https://api.telegent.com/v1.0/services/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
"ServiceName": "Caller Id"
}'import requests
url = "https://api.telegent.com/v1.0/services/update"
payload = {
"ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
"ServiceName": "Caller Id",
"Cost": 2.34,
"Monthly": 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({
ServiceId: 'SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b',
ServiceName: 'Caller Id',
Cost: 2.34,
Monthly: true
})
};
fetch('https://api.telegent.com/v1.0/services/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/services/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([
'ServiceId' => 'SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b',
'ServiceName' => 'Caller Id',
'Cost' => 2.34,
'Monthly' => 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/services/update"
payload := strings.NewReader("{\n \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n \"ServiceName\": \"Caller Id\",\n \"Cost\": 2.34,\n \"Monthly\": 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/services/update")
.header("Content-Type", "application/json")
.body("{\n \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n \"ServiceName\": \"Caller Id\",\n \"Cost\": 2.34,\n \"Monthly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/services/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 \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n \"ServiceName\": \"Caller Id\",\n \"Cost\": 2.34,\n \"Monthly\": true\n}"
response = http.request(request)
puts response.read_body{
"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>"
}Services
Update Service
Update an existing service’s name, cost, or billing cycle. Changes take effect immediately and are reflected across all packages and subscriptions that include this service. Use the ServiceId returned when the service was created.
What this does: Returns the updated service record. Only fields you send are changed; omitted fields retain their current values.
Next steps:
- Confirm the update —
GET /v1.0/services - View service items —
GET /v1.0/services/items
POST
/
v1.0
/
services
/
update
json
{
"ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
"ServiceName": "Caller Id",
"Cost": 2.34,
"Monthly": true
}curl -X POST https://api.telegent.com/v1.0/services/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
"ServiceName": "Caller Id"
}'import requests
url = "https://api.telegent.com/v1.0/services/update"
payload = {
"ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
"ServiceName": "Caller Id",
"Cost": 2.34,
"Monthly": 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({
ServiceId: 'SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b',
ServiceName: 'Caller Id',
Cost: 2.34,
Monthly: true
})
};
fetch('https://api.telegent.com/v1.0/services/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/services/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([
'ServiceId' => 'SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b',
'ServiceName' => 'Caller Id',
'Cost' => 2.34,
'Monthly' => 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/services/update"
payload := strings.NewReader("{\n \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n \"ServiceName\": \"Caller Id\",\n \"Cost\": 2.34,\n \"Monthly\": 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/services/update")
.header("Content-Type", "application/json")
.body("{\n \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n \"ServiceName\": \"Caller Id\",\n \"Cost\": 2.34,\n \"Monthly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/services/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 \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n \"ServiceName\": \"Caller Id\",\n \"Cost\": 2.34,\n \"Monthly\": true\n}"
response = http.request(request)
puts response.read_body{
"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>"
}⌘I