Admin/Update Contact
PUT /v1/admin/contacts/{id}

Update Contact

Same visibility rules as GET: **403** if the contact exists but is not visible to this admin; **404** if unknown in the workspace.

Base URL https://api.{cluster}.{platform}.voiger.io
Request · cURL
curl -X PUT https://api.{cluster}.{platform}.voiger.io/v1/admin/contacts/{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 '{
       "contact": {
         "first_name": "Ahmad",
         "last_name": "Salman",
         "gender": "male",
         "access": "public",
         "country": "AE",
         "field_1": "sample",
         "field_2": "field",
         "field_3": "value",
         "inbound_calls_blocked": false,
         "outbound_calls_blocked": false,
         "emails": [
           {
             "email": "contact1@mail",
             "is_primary": true
           },
           {
             "email": "contact2@mail",
             "is_primary": false
           }
         ],
         "phones": [
           {
             "phone": "+94000000000",
             "is_primary": true
           },
           {
             "phone": "+94000000002",
             "is_primary": false
           }
         ],
         "image": null
       }
     }'

Parameters

x-workspace-code string required in header
x-csrf-token string required in header
id string required in path

Response

contact▾
object
id
string
first_name
string
last_name
string
gender
string
access
string
country
string
field_1
string
field_2
string
field_3
string
inbound_calls_blocked
boolean
outbound_calls_blocked
boolean
archived_at
null | string Timestamp when the contact was archived. `null` for active contacts.
emails▾
array
email
string
is_primary
boolean
phones▾
array
phone
string
is_primary
boolean
image▾
null | object
id
string