PUT
/v1/admin/agents/{id}
Update Agent
curl -X PUT https://api.{cluster}.{platform}.voiger.io/v1/admin/agents/{id} \ -H "Cookie: sid=$VOIGER_SESSION" \ -H "x-workspace-code: your-workspace-code" \ -H "x-csrf-token: $CSRF_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "agent": { "first_name": "Ahmad", "last_name": "Salman", "image": { "id": "a9788d2e-ca37-41e3-b440-85ae6f8cd4c6" }, "email": "dummy@domain.com", "phone": "+94000000000", "gender": "male", "country": "AE", "cc_profile": { "id": "1234", "auto_answer": false, "wrap_up_time": 10, "timeout": 30, "retry_delay": 30, "roaming_phone": "+94000000001", "roaming": true, "status_id": "dc788d2e-ca37-41e3-b440-85ae6f8cd4c6" } } }'
Parameters
x-workspace-code
string
required
in header
x-csrf-token
string
required
in header
id
string
required
in path
Response
agent▾idfirst_namelast_nameimage▾idemailphonegendercountrylast_login_atcreated_atupdated_atcc_profile▾idauto_answerwrap_up_timetimeoutretry_delayroaming_phoneroamingstatestatus_idconnections_countconnection_ping_timeconnection_pinged_atconnection_ipconnection_status