ByDomuDevelopers

Actualizar tarea

PATCHhttps://api.bydomu.com/v1/tasks/{id}

Actualiza solo los campos enviados. Cerrar una tarea es enviar status: "COMPLETED".

Permiso que pide

tasks:write

Encabezado obligatorio

X-API-Key · clave secreta

Nivel de acceso

Nivel 3 · con revisión de soporte

Parámetros de ruta

1 · obligatorios
idstring · obligatorio
ID de la tarea

Encabezados

1 · todos opcionales
Idempotency-Keystring · opcional
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

Cuerpo (JSON)

17 · todos opcionales
titlestring · opcional
2–200 chars
descriptionstring · opcional
≤ 2000 chars · nullable
typestring · opcional
CALL · EMAIL · WHATSAPP · VISIT · MEETING · SEND_PROPOSAL · SEND_CONTRACT · FOLLOW_UP · SCHEDULE_SHOWING · COLLECT_DOCUMENTS · OTHER
statusstring · opcional
PENDING · IN_PROGRESS · COMPLETED · CANCELLED · OVERDUE
prioritystring · opcional
LOW · MEDIUM · HIGH · URGENT
dueDatestring · opcional
nullable
Ver los otros 11 parámetros
dueAtstring · opcional
nullable
dueOnstring · opcional
nullable
hasDueTimeboolean · opcional
remindMinutesBeforeinteger · opcional
0–10080 · nullable
assigneeIdstring · opcional
nullable
dealIdstring · opcional
nullable
contactIdstring · opcional
nullable
propertyIdstring · opcional
nullable
recurrencestring · opcional
DAILY · WEEKLY · MONTHLY · WEEKDAYS · nullable
recurrenceUntilstring · opcional
nullable
attachmentsobject[] · opcional

Respuesta 200

Task · 18 campos
dataid · title · description · type · status · priority · dueDate · completedAt · archivedAt · attachments · dealId · contactId · assigneeId · createdById · createdAt · updatedAt · assignee · createdBy
idstring
titlestring
descriptionstring
typestringCALL, EMAIL, WHATSAPP, VISIT, MEETING, SEND_PROPOSAL
statusstringPENDING, IN_PROGRESS, COMPLETED, CANCELLED, OVERDUE
prioritystringLOW, MEDIUM, HIGH, URGENT
dueDatestring
completedAtstring
archivedAtstring
attachmentsanyAdjuntos: `[{ url, name, size? }]`
dealIdstring
contactIdstring
assigneeIdstring
createdByIdstring
createdAtstring
updatedAtstring
assigneeid · firstName · lastName
idstring
firstNamestring
lastNamestring
createdByid · firstName · lastName
idstring
firstNamestring
lastNamestring

Errores 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
PeticiónPATCH/v1/tasks/{id}
SDK oficial · @bydomu/sdk · aún no está en npm
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.tasks.update("clx1tsk001", {
  "status": "COMPLETED"
});
200 OK · ejemplo
{
  "data": {
    "id": "clx1tsk001",
    "title": "Llamar a María para confirmar la visita",
    "description": "Confirmar el jueves a las 10.",
    "type": "CALL",
    "status": "PENDING",
    "priority": "LOW",
    "dueDate": "2026-10-01T15:00:00.000Z",
    "completedAt": "2026-10-01T14:40:00.000Z",
    "archivedAt": "2026-10-15T00:00:00.000Z",
    "attachments": [],
    "dealId": "clx1deal001",
    "contactId": "clx1con001",
    "assigneeId": "clx1usr001",
    "createdById": "clx1usr002",
    "createdAt": "2026-09-25T10:00:00.000Z",
    "updatedAt": "2026-09-25T10:00:00.000Z",
    "assignee": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez"
    },
    "createdBy": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez"
    }
  }
}