Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/contacts/update-contactContactsPermission: contact.update

Update Contact

Updates an existing contact record within the active tenant.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
namestringrequired

name parameter.

codestringrequired

code parameter.

firstNamestring | nulloptional

first Name parameter.

lastNamestring | nulloptional

last Name parameter.

emailstring (email) | enum('') | object | nulloptional

email parameter.

phonestring | enum('') | object | nulloptional

phone parameter.

mobilestring | enum('') | object | nulloptional

mobile parameter.

addressstring | enum('') | object | nulloptional

address parameter.

citystring | enum('') | object | nulloptional

city parameter.

statestring | enum('') | object | nulloptional

state parameter.

zipCodestring | enum('') | object | nulloptional

zip Code parameter.

countrystring | enum('') | object | nulloptional

country parameter.

genderstring | enum('') | object | nulloptional

gender parameter.

groupstring | enum('') | object | nulloptional

group parameter.

notesstring | enum('') | object | nulloptional

notes parameter.

statusenum('Active' | 'Inactive')optionaldefault: Active

status parameter.

idstringrequired

id parameter.

Responses

Select a status code to inspect schema.

OK — Contact updated successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/contacts/update-contact
curl -X POST "https://api.invoger.com/api/contacts/update-contact" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "id": "cnt_1", "name": "Andi Wijaya", "code": "CUST-001", "phone": "+6281299998888", "status": "Active" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Contact updated successfully",
  "data": {
    "id": "cnt_1",
    "name": "Andi Wijaya"
  }
}