Admin/Update Profile
PUT /v1/admin/profile

Update Profile

Base URL https://api.{cluster}.{platform}.voiger.io
Request · cURL
curl -X PUT https://api.{cluster}.{platform}.voiger.io/v1/admin/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": {
           "id": "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
id
string
email
string
phone
string
role_id
string ID of the admin's role. The client resolves the role name from its cached roles list.
team_ids
array IDs of the active teams the admin is a member of (empty array when none). The client resolves team names from its cached teams list.