copilot_frontend
copilot_budget
Reubicar Anular Hubspot
Marca 'reubicar' o 'anular' en HubSpot: actualiza propiedad y crea nota. También guarda un registro en presup_presupuestos con el estado correspondiente.
🔒 Protected Endpoint: Requires JWT authentication and 'ui_comercial' or 'admin' role
Args: data: ReubicarAnularHubSpotRequest con email, accion y observaciones current_user: Current authenticated user db: Database session
Returns: ReubicarAnularHubSpotResponse con contact_id, note_created y mensaje
Raises: ErrValidation: Si el usuario no tiene comercial_id asignado o si la acción no es válida
post/api/budget/hubspot/reubicar_anular
Request
- Base URLhttps://api.hogarsolar.es (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"accion": "reubicar",
"email": "cliente@example.com",
"observaciones": "Cliente solicita cambio de provincia",
"presupuesto_id": 123
}Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.