Este artículo, te mostraremos como hacer consultas a la entidad Tareas, basándonos para estos ejemplos en https://www.postman.com/.
Tareas
Traer las tareas del usuario que consulta:
Traer los distintos tipos de tareas para el usuario:
Traer las etapas en las que están las tareas:
Crear una tarea:
Y un body, raw del formato JSON con lo siguiente:
{
"name": "Task with related",
"task_type": "https://api.clientify.net/v1/tasks/types/integer/",
"due_date": "2020-07-28T13:00:00+02:00",
"assigned_to": "[email protected]",
"related_contacts": ["https://api.clientify.net/v1/contacts/integer/"],
"remarks": "Creating new task from postman",
"description": "Some description",
"deals": [
],
"related_companies": [
],
"location": "Location",
"additional_options": "mettings: 2342342",
"guest_users": ["http://api.clientify.net/v1/users/6/", "http://api.clientify.net/v1/users/1/"],
"owner": "[email protected]"
}
Identificador | Canal |
zoom | Zoom |
google_meets | Google meets |
skype | Skype |
microsoft_teams | Microsoft teams |
whereby | Whereby |
gotomeeting | GoToMeeting |
others | Other |
Nombre | Tipo | Descripción | Requerido |
owner | string | email of the user to own the task | false |
assigned_to | string | email of the user to assign the task | false |
name | string | Name of the task | true |
description | string | will only be shown for videoconferences so it can save its url | false |
remarks | string | Remarks on the task | false |
due_date | string | Due date of the task | false |
start_datetime | string | Start datetime of the task | true |
end_datetime | string | End datetime of the task | true |
duration | integer | Duration of the task | false |
type | integer | (deprecated) Id of the type of the task | false |
status | integer | (deprecated) Id of the status of the task | false |
additional_option | string | For videoconferences, stores the | false |
location | string | For meetings, stores the location of the meeting | false |
deals | array | An array of deals related to the task | false |
task_type | url | url of the task type | false |
task_stage | url | url of the task task | false |
related_companies | array | An array of urls of companies | false |
related_contacts | array | An array of urls of deals | false |
guest_users | array | An array of urls of users | false |
Traer los detalles de una tarea:
Donde task_id es un integer.
Modificar una tarea:
Donde task_id es un integer.
Y un body, raw del formato JSON con lo siguiente:
{
"name": "Check Postman",
"due_date": "2020-03-28T13:00:00+02:00",
"remarks": "This is a remark"
}
Marcar una tarea como completada.
Donde task_id es un integer.
Y un body, raw del formato JSON con lo siguiente:
{
"name": "Le cambio la tarea a Sergio",
"due_date": "2015-06-19T23:59:34.034869+02:00"
}