ByDomuDevelopers

Actualizar tarea

PATCHhttps://api.bydomu.com/v1/tasks/{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. Cerrar una tarea es enviar status: "COMPLETED".

Permission required

tasks:write

Required header

X-API-Key · secret key

Access level

Level 3 · with support review

Path parameters

1 · required
idstring · required
ID de la tarea

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)

17 · all optional
titlestring · optional
2–200 chars
descriptionstring · optional
≤ 2000 chars · nullable
typestring · optional
CALL · EMAIL · WHATSAPP · VISIT · MEETING · SEND_PROPOSAL · SEND_CONTRACT · FOLLOW_UP · SCHEDULE_SHOWING · COLLECT_DOCUMENTS · OTHER
statusstring · optional
PENDING · IN_PROGRESS · COMPLETED · CANCELLED · OVERDUE
prioritystring · optional
LOW · MEDIUM · HIGH · URGENT
dueDatestring · optional
nullable
See the other 11 parameters
dueAtstring · optional
nullable
dueOnstring · optional
nullable
hasDueTimeboolean · optional
remindMinutesBeforeinteger · optional
0–10080 · nullable
assigneeIdstring · optional
nullable
dealIdstring · optional
nullable
contactIdstring · optional
nullable
propertyIdstring · optional
nullable
recurrencestring · optional
DAILY · WEEKLY · MONTHLY · WEEKDAYS · nullable
recurrenceUntilstring · optional
nullable
attachmentsobject[] · optional

Response 200

Task · 18 fields
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

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/tasks/{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.tasks.update("clx1tsk001", {
  "status": "COMPLETED"
});
200 OK · example
{
  "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"
    }
  }
}