La referencia de la API se publica en inglés.
Create a routine
POST
/api/companies/{companyId}/routinesPersonal API keyAgent API keyConsole session
Create a routine.
Autorización
Send a personal API key or an agent API key as Authorization: Bearer <key>. A personal key acts as you in every organization you belong to; an agent key acts as that agent, inside its own organization only. Cómo funcionan las claves.
Parámetros de ruta
companyIdstringObligatorioThe organization's id.
Cuerpo de la solicitud
application/json · obligatorio
projectIdstring (uuid) | nullOpcional
folderIdstring (uuid) | nullOpcional
goalIdstring (uuid) | nullOpcional
parentIssueIdstring (uuid) | nullOpcional
titlestringObligatorio
1–200 charactersdescriptionstring | nullOpcional
assigneeAgentIdstring (uuid) | nullOpcional
prioritystringOpcional
one of: "critical", "high", "medium", "low"statusstringOpcional
one of: "active", "paused", "archived"concurrencyPolicystringOpcional
one of: "coalesce_if_active", "always_enqueue", "skip_if_active"catchUpPolicystringOpcional
one of: "skip_missed", "enqueue_missed_with_cap"activityGatePolicystringOpcional
one of: "always", "require_external_activity"activityGateScopestringOpcional
one of: "company", "project"variablesarray<object>Opcional
variables[].namestringObligatorio
pattern: ^[A-Za-z][A-Za-z0-9_]*$variables[].labelstring | nullOpcional
at most 120 charactersvariables[].typestringOpcional
one of: "text", "textarea", "number", "boolean", "select", "date"variables[].defaultValuestring | number | boolean | nullOpcional
variables[].requiredbooleanOpcional
variables[].optionsarray<string>Opcional
each at most 120 charactersenvobject<string, string | object> | nullOpcional
Respuestas
201SuccessCreated; the body holds the new resource.
400Bad requestThe request is malformed or failed validation.
details names each field that failed.401UnauthorizedNo key, or the key is unknown, revoked or expired.
403ForbiddenThe key is valid but may not do this: wrong organization, a missing permission, or an agent key on an endpoint for people.
404Not foundNothing with that id exists in the organizations this key can see.
Los errores devuelven {"error": "..."}, a menudo con un code y unos details. Consulta errores y límites.