Actualizar contacto
PATCH
https://api.bydomu.com/v1/contacts/{id}This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.
Actualiza solo los campos enviados. tags agrega etiquetas por nombre, no reemplaza las existentes, y no se refleja en la respuesta.
Permission required
contacts:write
Required header
X-API-Key · secret key
Access level
Level 3 · with support review
Path parameters
1 · requiredidstring · requiredID del contacto
Headers
1 · all optionalIdempotency-Keystring · optionalClave ú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 charsBody (JSON)
28 · all optionalfirstNamestring · optional2–100 chars
lastNamestring · optional≤ 100 chars
emailstring · optionalemail
phonestring · optionalphone2string · optionalsourcestring · optionalWHATSAPP · 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 · default "OTHER"
See the other 22 parameters
statusstring · optionalNEW · CONTACTED · QUALIFIED · NEGOTIATING · WON · LOST · INACTIVE · default "NEW"
typestring · optionalCLIENT · OWNER · BOTH · default "CLIENT"
documentTypestring · optionalCC · CE · NIT · PASSPORT · DNI · RUC · CURP · RFC · CPF · CNPJ · RG · RUT · CUIT · SSN · EIN · OTHER · nullable
documentNumberstring · optional≤ 50 chars
birthDatestring · optionalnullable
scoreinteger · optionaldefault 0 · 0–100 · nullable
notesstring · optional≤ 5000 chars
budgetnumber · optional≥ 0 · nullable
currencystring · optionalCOP · USD · EUR · MXN · BRL · ARS · BOB · CAD · CLP · CRC · CUP · DOP · GBP · GTQ · HNL · NIO · PEN · PYG · UYU · VES · default "COP"
lookingForstring · optional≤ 500 chars
preferredTypestring · optionalAPARTMENT · HOUSE · OFFICE · COMMERCIAL · LAND · WAREHOUSE · ROOM · FARM · OTHER · nullable
preferredCitystring · optional≤ 100 chars
preferredNeighborhoodstring · optional≤ 100 chars
minBedroomsinteger · optional≥ 0 · nullable
minBathroomsinteger · optional≥ 0 · nullable
minAreanumber · optional≥ 0 · nullable
preferredTransactionTypestring · optionalSALE · RENT · BOTH · nullable
ownerIdstring · optionaljobTitlestring · optional≤ 120 chars
companyIdstring · optionaltagIdsstring[] · optionaltagsstring[] · optionalEtiquetas por nombre. Se crean las que no existan y se AGREGAN a las que ya tenga el contacto.
Response 200
ContactRecord · 31 fieldsdataContacto 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
idstringfirstNamestringlastNamestringPossible errors
shaped as{ "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