Skip to main content
PATCH
Update an opportunity

Authorizations

Authorization
string
header
required

Token de sesión Better Auth para rutas de backoffice; las rutas de portal usan su token propio.

Path Parameters

id
string
required

Body

application/json
contact_id
string

Related contact UUID

client_id
string

Related client UUID

owner_user_id
string

Owner user UUID

source_detail
string

Detalle del origen (página, feria, quién refirió)

object_source
enum<string>

Cómo entró el registro (HubSpot hs_object_source)

Available options:
form,
inbox,
mcp,
import,
unknown
deal_type
enum<string>

Tipo de negocio

Available options:
gps,
unificador
next_action
string

Suggested next action

next_action_due_at
string

Next action due date

priority
object | null

Prioridad del negocio (1–4); null la deja sin definir

title
string

Opportunity title

prospect_name
string

Prospect snapshot name

prospect_email
string

Prospect snapshot email

prospect_phone
string

Prospect snapshot phone

prospect_company
string

Prospect snapshot company

prospect_company_rut
string

Prospect snapshot company RUT

prospect_company_email
string

Prospect snapshot company email

prospect_company_phone
string

Prospect snapshot company phone

prospect_company_address
string

Prospect snapshot company address

prospect_company_website
string

Prospect snapshot company website

prospect_company_size
string

Prospect snapshot company size

prospect_company_headquarters
string

Prospect snapshot company headquarters

stage_id
string

Opportunity stage UUID

pipeline_id
string

Pipeline de la oportunidad: su id o su tipo semántico (inbound, outbound…); resolvePipelineId prueba primero el id y luego el tipo

Maximum string length: 128
scheduled_resume_at
string

Scheduled resume date for waiting opportunities

manual_monthly_uf
object

Manual monthly business amount in UF

summary
string

Commercial summary

private_notes
string

Private commercial notes

additional_client_ids
string[]

Additional client UUIDs for the opportunity

additional_contact_ids
string[]

Additional contact UUIDs for the opportunity

source_channel
enum<string>

Source channel; solo editable si el actual es null o desconocido (origen bloqueado)

Available options:
web-cotizador,
web-demo,
web-contacto,
whatsapp,
email,
llamada,
linkedin,
feria,
partner,
referido,
outbound,
desconocido
lost_reason_detail
object

Detalle del motivo de pérdida (ej: qué competidor)

won_reason
object

Won reason

lost_reason
object

Lost reason

Response

200

Opportunity updated successfully