SparkTG

Update Agent's Status Documentation

Update Agent's Status

v1.0Moving to v2

This API is moving to v2

All SparkTG APIs are moving to API v2, with signed API tokens instead of a username and password. This one will follow soon; until then, use it on v1 as documented here.

Moving to API v2

Update Agent's Status

Change agent availability status

Agent Managementv1.01 Endpoint

Overview

Update Agent's Status API : PATCH : /agents

Available Endpoints

PATCH/agents

Key Parameters

status(Integer)

2

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?status=2"
💡 Replace username:password with your actual credentials

Response Preview

Sample response from this API

Sample Response
{"status":2, "break":7}
View complete response format in Response section