SparkTG

Change Number Documentation

Change Number

v1.0

Change Number

Update agent phone numbers

Agent Managementv1.01 Endpoint

Overview

PATCH /agents - Update agent phone numbers

Authentication

Basic Authentication

Methods

PATCH

Parameters

2 Parameters

Response

JSON Format

Available Endpoints

PATCH/agents

Key Parameters

number(Integer)

Desired updated number for agent

agent-number(Integer)

Number of the agent of which status to be updated, useful in case of admin credentials, can change status of agent via agent's number

Quick Example

Try this API with a simple cURL command

Basic API Call
curl -i -X PATCH -u "username:password" "https://telephonycloud.co.in/api/v1/agents?number=9999999999&agent-number=9999999999"
💡 Replace username:password with your actual credentials

Response Preview

Sample response from this API

Sample Response
{"number":"9999999999"}
View complete response format in Response section