Crear tarea
POST
https://api.bydomu.com/v1/tasksEsta referência é gerada a partir do código da API, por isso as descrições estão em espanhol. Nomes, parâmetros e exemplos são iguais em qualquer idioma.
Crea una tarea suelta o vinculada a un negocio o a un contacto. Respeta el tope de tareas del plan (403 PLAN_LIMIT_REACHED). Responde solo el id: pide GET /tasks/{id} para el detalle.
Permissão pedida
tasks:write
Cabeçalho obrigatório
X-API-Key · chave secreta
Nível de acesso
Nível 3 · com revisão do suporte
Cabeçalhos
1 · todos opcionaisIdempotency-Keystring · opcionalClave ú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 charsCorpo (JSON)
16 · 1 obrigatóriostitlestring · obrigatório2–200 chars
descriptionstring · opcional≤ 2000 chars
typestring · opcionalCALL · EMAIL · WHATSAPP · VISIT · MEETING · SEND_PROPOSAL · SEND_CONTRACT · FOLLOW_UP · SCHEDULE_SHOWING · COLLECT_DOCUMENTS · OTHER · padrão "OTHER"
prioritystring · opcionalLOW · MEDIUM · HIGH · URGENT · padrão "MEDIUM"
dueDatestring · opcionalnullable
dueAtstring · opcionalnullable
Ver os outros 10 parâmetros
dueOnstring · opcionalnullable
hasDueTimeboolean · opcionalremindMinutesBeforeinteger · opcional0–10080 · nullable
assigneeIdstring · opcionalnullable
dealIdstring · opcionalnullable
contactIdstring · opcionalnullable
propertyIdstring · opcionalnullable
recurrencestring · opcionalDAILY · WEEKLY · MONTHLY · WEEKDAYS · nullable
recurrenceUntilstring · opcionalnullable
attachmentsobject[] · opcionalResposta 201
object · 1 camposdataid
idstringErros possíveis
com a 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