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 NameDescriptionData Type
id*Unique ID of the agentString
user_product_idProduct ID on which agent is to be assignedInteger

Request variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString

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}'