post deprecatedhttps://api.servetel.in/v1/agent
Add new agent
Using the below method a new agent can be added
curl --request POST \
--url https://api.servetel.in/v1/agent \
--header 'accept: application/json' \
--header 'authorization: Bearer yourtokenhere' \
--header 'content-type: application/json' \
--data '{}'
Request parameters
Variable Name | Description | Data Type |
---|---|---|
name* | Name for the agent | String |
follow_me_number* | 10-digit mobile number of the agent | String |
user_product_id | Product ID on which agent is to be assigned | Integer |
Sample request
curl --request POST \
--url https://api.servetel.in/v1/agent \
--header 'accept: application/json' \
--header 'authorization: Authorization' \
--header 'content-type: application/json' \
--data '{"name":"Test Name","follow_me_number":90000000000}'
Response variables
Variable Name | Description | Data Type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |