Agent/Update Profile
PUT /v1/agent/profile

Update Profile

Base URL https://api.{cluster}.{platform}.voiger.io
Request · cURL
curl -X PUT https://api.{cluster}.{platform}.voiger.io/v1/agent/profile \
  -H "Cookie: sid=$VOIGER_SESSION" \
  -H "x-workspace-code: your-workspace-code" \
  -H "x-csrf-token: $CSRF_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
       "profile": {
         "first_name": "Salman",
         "last_name": "Ahmad",
         "phone": "+94..",
         "image": "a9788d2e-ca37-41e3-b440-85ae6f8cd4c6"
       }
     }'

Parameters

x-workspace-code string required in header

Response

profile▾
object
id
string
first_name
string
last_name
string
image
null | object when image is attached, empty object, otherwise null will be returned
email
string
phone
string
cc_profile▾
object
id
string
password
string
auto_answer
boolean
connection_ping_time
number
connection_pinged_at
string
connection_ip
string
connection_status
string
cli▾
object
id
string
reference_id
string
type
string
team_ids
array IDs of the active teams the agent is a member of (empty array when none). The client resolves team names from its cached teams list.