How to change an agent's phone number using the API

The following script shows how to use the API to update a user's phone number:

 

ACCESS_ID='yourlongbabelforceapiaccessidgoeshere'
TOKEN='yourlongbabelforceapitokengoeshere'

ENDPOINT="https://services.babelforce.com/api/v2/agents/34533686?agentSource=zendesk"

echo "query a particular with Zendesk agent ID and source=Zendesk"

curl $ENDPOINT \
-H "X-Auth-Access-Id: $ACCESS_ID" \
-H "X-Auth-Access-Token: $TOKEN" \
-X PUT \
-d '{number: '43894934848'}'

Have more questions? Submit a request