Actualizar contacto
PATCH
https://api.bydomu.com/v1/contacts/{id}Actualiza solo los campos enviados. tags agrega etiquetas por nombre, no reemplaza las existentes, y no se refleja en la respuesta.
Permiso que pide
contacts:write
Encabezado obligatorio
X-API-Key · clave secreta
Nivel de acceso
Nivel 3 · con revisión de soporte
Parámetros de ruta
1 · obligatoriosidstring · obligatorioID del contacto
Encabezados
1 · todos opcionalesIdempotency-Keystring · opcionalClave única de la operación (8-128 caracteres de
[a-zA-Z0-9._:-]). Un reintento con la misma clave y el mismo cuerpo devuelve la respuesta original sin repetir la operación. Vive 24 horas.8–128 charsCuerpo (JSON)
28 · todos opcionalesfirstNamestring · opcional2–100 chars
lastNamestring · opcional≤ 100 chars
emailstring · opcionalemail
phonestring · opcionalphone2string · opcionalsourcestring · opcionalWHATSAPP · METROCUADRADO · FINCARAIZ · WEBSITE · REFERRAL · WALK_IN · SOCIAL_MEDIA · PHONE · INMUEBLES24 · VIVANUNCIOS · LAMUDI · PROPIEDADES_COM · URBANIA · ADONDEVIVIR · PLUSVALIA · ZAP_IMOVEIS · VIVAREAL · OLX · IMOVELWEB · PORTAL_INMOBILIARIO · TOCTOC · ZONAPROP · ARGENPROP · OTHER · por defecto "OTHER"
Ver los otros 22 parámetros
statusstring · opcionalNEW · CONTACTED · QUALIFIED · NEGOTIATING · WON · LOST · INACTIVE · por defecto "NEW"
typestring · opcionalCLIENT · OWNER · BOTH · por defecto "CLIENT"
documentTypestring · opcionalCC · CE · NIT · PASSPORT · DNI · RUC · CURP · RFC · CPF · CNPJ · RG · RUT · CUIT · SSN · EIN · OTHER · nullable
documentNumberstring · opcional≤ 50 chars
birthDatestring · opcionalnullable
scoreinteger · opcionalpor defecto 0 · 0–100 · nullable
notesstring · opcional≤ 5000 chars
budgetnumber · opcional≥ 0 · nullable
currencystring · opcionalCOP · USD · EUR · MXN · BRL · ARS · BOB · CAD · CLP · CRC · CUP · DOP · GBP · GTQ · HNL · NIO · PEN · PYG · UYU · VES · por defecto "COP"
lookingForstring · opcional≤ 500 chars
preferredTypestring · opcionalAPARTMENT · HOUSE · OFFICE · COMMERCIAL · LAND · WAREHOUSE · ROOM · FARM · OTHER · nullable
preferredCitystring · opcional≤ 100 chars
preferredNeighborhoodstring · opcional≤ 100 chars
minBedroomsinteger · opcional≥ 0 · nullable
minBathroomsinteger · opcional≥ 0 · nullable
minAreanumber · opcional≥ 0 · nullable
preferredTransactionTypestring · opcionalSALE · RENT · BOTH · nullable
ownerIdstring · opcionaljobTitlestring · opcional≤ 120 chars
companyIdstring · opcionaltagIdsstring[] · opcionaltagsstring[] · opcionalEtiquetas por nombre. Se crean las que no existan y se AGREGAN a las que ya tenga el contacto.
Respuesta 200
ContactRecord · 31 camposdataContacto al crearlo o actualizarlo. Las etiquetas asignadas con `tags` no se reflejan aquí.
idstringcodestringCódigo legible del contactofirstNamestringlastNamestringemailstringphonestring`null` si el contacto llegó por un canal sin número (Instagram, Facebook, chat de la web, correo o WhatsApp con usuario y número oculto)phone2stringsourcestringWHATSAPP, METROCUADRADO, FINCARAIZ, WEBSITE, REFERRAL, WALK_INstatusstringNEW, CONTACTED, QUALIFIED, NEGOTIATING, WON, LOSTtypestringCLIENT, OWNER, BOTHdocumentTypestringCC, CE, NIT, PASSPORT, DNI, RUCdocumentNumberstringscoreintegerPuntaje 0-100notesstringbudgetstringNúmero decimal serializado como texto.currencystringlookingForstringpreferredTypestringAPARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSEpreferredCitystringpreferredNeighborhoodstringminBedroomsintegerminBathroomsintegerminAreanumberpreferredTransactionTypestringsubscribedToAlertsbooleanwhatsappOptInbooleanmarketingOptInbooleanownerIdstringAgente dueño del contactocreatedAtstringupdatedAtstringownerid · firstName · lastName
idstringfirstNamestringlastNamestringErrores posibles
con la forma{ "error": { "code", "message" } }- 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
- 401UNAUTHORIZED
- 402PAYMENT_REQUIRED
- 403FORBIDDEN
- 404NOT_FOUND
- 409DUPLICATE
- 429RATE_LIMITED
- 500INTERNAL_ERROR