Update an agents

Update details of an existing agent

Using the below method details of an existing agent can be updated

curl --request PUT \
  --url https://api.servetel.in/v1/agent/id \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere' \
  --header 'content-type: application/json' \
  --data '{}'

Path parameters

Variable Name

Description

Data Type

id*

Unique ID of the agent

String

user_product_id

Product ID on which agent is to be assigned

Integer

Request variables

Variable Name

Description

Data Type

success

Request success status

Boolean

message

Message corresponding success status

String

Sample request

curl --request PUT \
  --url https://api.servetel.in/v1/agent/id \
  --header 'accept: application/json' \
  --header 'authorization: Bearer ' \
  --header 'content-type: application/json' \
  --data '{"name":" Test Agent","follow_me_number":9800000000}'