ByDomuDevelopers

Actualizar cita

PATCHhttps://api.bydomu.com/v1/appointments/{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. Para cancelar usa POST /appointments/{id}/cancel.

Permission required

appointments:write

Required header

X-API-Key · secret key

Access level

Level 3 · with support review

Path parameters

1 · required
idstring · required
ID de la cita

Headers

1 · all optional
Idempotency-Keystring · optional
Clave ú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 chars

Body (JSON)

12 · all optional
titlestring · optional
2–200 chars
descriptionstring · optional
≤ 2000 chars
typestring · optional
SHOWING · MEETING · CALL · FOLLOW_UP · SIGNING · DEMO · OTHER
colorstring · optional
startTimestring · optional
nullable
endTimestring · optional
nullable
See the other 6 parameters
locationstring · optional
≤ 500 chars
contactIdstring · optional
dealIdstring · optional
nullable
assigneeIdstring · optional
statusstring · optional
SCHEDULED · CONFIRMED · COMPLETED · CANCELLED · NO_SHOW
remindersobject[] · optional

Response 200

AppointmentRecord · 22 fields
dataCita tal como queda al crearla, actualizarla o cancelarla.
idstring
titlestring
descriptionstring
typestringSHOWING, MEETING, CALL, FOLLOW_UP, SIGNING, DEMO
statusstringSCHEDULED, CONFIRMED, COMPLETED, CANCELLED, NO_SHOW
startTimestring
endTimestring
colorstring
locationstring
createdAtstring
cancelReasonstring
sourcestring`MANUAL`, `BOOKING` o `NOA`
contactIdstring
dealIdstring
propertyIdstring
assigneeIdstring
createdByIdstring
updatedAtstring
contactid · firstName · lastName · phone
idstring
firstNamestring
lastNamestring
phonestringNo viene al cancelar; `null` si el contacto no tiene teléfono
dealid · title
idstring
titlestring
assigneeid · firstName · lastName
idstring
firstNamestring
lastNamestring
reminders[]Recordatorios programados. No vienen al cancelar
idstring
channelstring
minutesBeforeinteger
scheduledForstring
statusstring

Possible 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
RequestPATCH/v1/appointments/{id}
Official SDK · @bydomu/sdk · not on npm yet
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.appointments.update("clx1apt001", {
  "startTime": "2026-10-02T16:00:00.000Z",
  "endTime": "2026-10-02T17:00:00.000Z",
  "status": "CONFIRMED"
});
200 OK · example
{
  "data": {
    "id": "clx1apt001",
    "title": "Visita Apto Chapinero",
    "description": "Segunda visita; llevar el certificado de libertad.",
    "type": "SHOWING",
    "status": "SCHEDULED",
    "startTime": "2026-10-02T15:00:00.000Z",
    "endTime": "2026-10-02T16:00:00.000Z",
    "color": "#6366F1",
    "location": "Cra 7 #45-12, Bogotá",
    "createdAt": "2026-09-25T09:00:00.000Z",
    "cancelReason": "El cliente reagendará",
    "source": "MANUAL",
    "contactId": "clx1con001",
    "dealId": "clx1deal001",
    "propertyId": "clx1prop001",
    "assigneeId": "clx1usr001",
    "createdById": "clx1usr002",
    "updatedAt": "2026-09-25T09:00:00.000Z",
    "contact": {
      "id": "clx1con001",
      "firstName": "María",
      "lastName": "González",
      "phone": "+573001234567"
    },
    "deal": {
      "id": "clx1deal001",
      "title": "Venta Apto Chapinero"
    },
    "assignee": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez"
    },
    "reminders": [
      {
        "id": "clx1rem001",
        "channel": "WHATSAPP",
        "minutesBefore": 60,
        "scheduledFor": "2026-10-02T14:00:00.000Z",
        "status": "PENDING"
      }
    ]
  }
}