# Update a contact Update contact information including name, email, phone, pipeline stage, and custom fields. Requires API key authentication. Endpoint: POST /api-update-contact Version: 1.1.0 Security: ApiKeyAuth ## Request fields (application/json): - `contactId` (string, required) - `name` (string) - `last_name` (string,null) - `email` (string,null) - `phone` (string) - `pipeline_stage_id` (string,null) Pipeline stage ID to assign to this contact - `custom_fields` (object) Custom field values (field_id: value pairs) ## Response 200 fields (application/json): - `success` (boolean) - `data` (object) - `data.id` (string) - `data.user_id` (string) - `data.name` (string) - `data.last_name` (string,null) - `data.phone` (string) - `data.whatsapp_id` (string,null) - `data.email` (string,null) - `data.profile_picture_url` (string,null) - `data.pipeline_stage_id` (string,null) Current pipeline stage ID for this contact - `data.pipeline_stage` (object) - `data.pipeline_stage.color` (string) Example: "#3B82F6" - `data.pipeline_stage.stage_order` (integer) Order/position of this stage in the pipeline - `data.pipeline_stage.is_system` (boolean) Whether this is a system-created stage - `data.pipeline_stage.created_at` (string) - `data.pipeline_stage.updated_at` (string) - `data.tags` (array) - `data.custom_fields` (array) Custom field values for this contact - `data.custom_fields.customer_id` (string) - `data.custom_fields.field_id` (string) - `data.custom_fields.field_value` (string,null) - `data.custom_fields.field` (object) - `data.custom_fields.field.field_name` (string) Example: "Company" - `data.custom_fields.field.field_type` (string) Enum: "text", "email", "phone", "number", "date", "select" - `data.custom_fields.field.field_options` (array,null) Options for select type fields - `data.custom_fields.field.is_required` (boolean) - `data.custom_fields.field.field_order` (integer) ## Response 400 fields ## Response 401 fields ## Response 404 fields ## Response 500 fields