Listagem de Tarefas
Podemos buscar os dados de todas as tarefas associadas ao contrato ou uma tarefa em específico através do seu id.
GET
/contracts/{contract_id}/tasks
GET
/contracts/{contract_id}/tasksClique aqui para testar endpoint
Todos os endpoints deverão ser autenticado
headers = {
'Authorization': f'Bearer {api_key}'
}
Exemplo de resposta:
{
"data": [
{
"content": "descrição da tarefa",
"contract": {
"deny_reason": null,
"status": {
"id": 1640
},
"begin_date": null,
"number": "2024/14",
"workflow": null,
"current_document": {
"id": "33c41c0e-d697-4fee-a8c0-795aacb7c360"
},
"classifier": null,
"tasks": null,
"archived": false,
"due_notice": 60,
"id": 175989,
"shares": null,
"inserted_at": "2024-05-03T18:50:41",
"observations": null,
"attachments": null,
"financial": null,
"form_submission": null,
"organization": {
"id": 1199
},
"object": null,
"comments": null,
"updated_at": "2024-05-23T18:22:16",
"review_flows_events": null,
"pendencies": 0.0,
"assignee": {
"id": 3056
},
"title": "CK Summit",
"term_type": null,
"deleted": false,
"needs_acceptance": false,
"end_date": null,
"childrem_contracts": null,
"prev_status": null,
"custom_fields": null,
"parent_contract": null,
"review_flow": null,
"prev_assignee": null
},
"done": false,
"due_date": "2021-04-30",
"id": 1123,
"inserted_at": "2024-05-10T17:56:57",
"priority": 2,
"progress": {},
"recurrence_count": 1,
"recurrence_frequency": "weekly",
"recurring": true,
"requester": {
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
},
"title": "Seguro de Equipamentos",
"updated_at": "2024-05-10T17:56:57",
"user_ids": [
3056
],
"users": [
{
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
}
]
},
{
"content": "descrição da tarefa",
"contract": {
"deny_reason": null,
"status": {
"id": 1640
},
"begin_date": null,
"number": "2024/23",
"workflow": null,
"current_document": {
"id": "d281db6d-896b-49b1-9bf0-d60cd29c6eb0"
},
"classifier": null,
"tasks": null,
"archived": false,
"due_notice": 60,
"id": 176022,
"shares": null,
"inserted_at": "2024-05-15T20:10:52",
"observations": null,
"attachments": null,
"financial": null,
"form_submission": null,
"organization": {
"id": 1199
},
"object": null,
"comments": null,
"updated_at": "2024-05-23T18:18:23",
"review_flows_events": null,
"pendencies": 0.0,
"assignee": {
"id": 3056
},
"title": "dummy",
"term_type": null,
"deleted": false,
"needs_acceptance": false,
"end_date": null,
"childrem_contracts": null,
"prev_status": null,
"custom_fields": null,
"parent_contract": null,
"review_flow": null,
"prev_assignee": null
},
"done": false,
"due_date": "2021-04-30",
"id": 1125,
"inserted_at": "2024-05-16T13:52:43",
"priority": 2,
"progress": {},
"recurrence_count": 1,
"recurrence_frequency": "weekly",
"recurring": true,
"requester": {
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
},
"title": "Seguro de Equipamentos",
"updated_at": "2024-05-16T13:52:43",
"user_ids": [
3056
],
"users": [
{
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
}
]
},
{
"content": "descrição da tarefa",
"contract": {
"deny_reason": null,
"status": {
"id": 1640
},
"begin_date": "2024-05-12",
"number": "2024/28",
"workflow": null,
"current_document": {
"id": "c0444512-1d5b-40a7-9f4b-155a0ee71e38"
},
"classifier": null,
"tasks": null,
"archived": false,
"due_notice": 7,
"id": 176046,
"shares": null,
"inserted_at": "2024-05-23T20:13:07",
"observations": null,
"attachments": null,
"financial": null,
"form_submission": null,
"organization": {
"id": 1199
},
"object": null,
"comments": null,
"updated_at": "2024-05-29T13:53:23",
"review_flows_events": null,
"pendencies": 0.0,
"assignee": {
"id": 3056
},
"title": "Teste Contrato",
"term_type": "Indeterminado",
"deleted": false,
"needs_acceptance": false,
"end_date": "2024-05-30",
"childrem_contracts": null,
"prev_status": null,
"custom_fields": null,
"parent_contract": null,
"review_flow": null,
"prev_assignee": null
},
"done": false,
"due_date": "2021-04-30",
"id": 1127,
"inserted_at": "2024-05-29T14:44:04",
"priority": 2,
"progress": {},
"recurrence_count": 1,
"recurrence_frequency": "weekly",
"recurring": true,
"requester": {
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
},
"title": "Seguro de Equipamentos",
"updated_at": "2024-05-29T14:44:04",
"user_ids": [
3056
],
"users": [
{
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
}
]
},
{
"content": "descrição da tarefa",
"contract": {
"deny_reason": null,
"status": {
"id": 1640
},
"begin_date": "2024-05-12",
"number": "2024/28",
"workflow": null,
"current_document": {
"id": "c0444512-1d5b-40a7-9f4b-155a0ee71e38"
},
"classifier": null,
"tasks": null,
"archived": false,
"due_notice": 7,
"id": 176046,
"shares": null,
"inserted_at": "2024-05-23T20:13:07",
"observations": null,
"attachments": null,
"financial": null,
"form_submission": null,
"organization": {
"id": 1199
},
"object": null,
"comments": null,
"updated_at": "2024-05-29T13:53:23",
"review_flows_events": null,
"pendencies": 0.0,
"assignee": {
"id": 3056
},
"title": "Teste Contrato",
"term_type": "Indeterminado",
"deleted": false,
"needs_acceptance": false,
"end_date": "2024-05-30",
"childrem_contracts": null,
"prev_status": null,
"custom_fields": null,
"parent_contract": null,
"review_flow": null,
"prev_assignee": null
},
"done": false,
"due_date": "2021-04-30",
"id": 1128,
"inserted_at": "2024-05-29T14:44:23",
"priority": 2,
"progress": {},
"recurrence_count": 1,
"recurrence_frequency": "weekly",
"recurring": true,
"requester": {
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
},
"title": "Seguro de Equipamentos",
"updated_at": "2024-05-29T14:44:23",
"user_ids": [
3056
],
"users": [
{
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
}
]
}
],
"page_number": 1,
"page_size": 16,
"total_pages": 1
}
📝 O retorno desse endpoint será um array de objetos contendo todas as tarefas associadas aquele contrato em específico.
GET
/tasks/{task_id}
GET
/tasks/{task_id}⚠️ Lembre-se de substituir a variável {task_id} no parâmetro da rota pelo valor id da tarefa que você deseja buscar os dados.
Exemplo de resposta:
{
"data": {
"content": "descrição da tarefa",
"contract": {
"deny_reason": null,
"status": {
"id": 1640
},
"begin_date": "2024-05-12",
"number": "2024/28",
"workflow": null,
"current_document": {
"id": "c0444512-1d5b-40a7-9f4b-155a0ee71e38"
},
"classifier": null,
"tasks": null,
"archived": false,
"due_notice": 7,
"id": 176046,
"shares": null,
"inserted_at": "2024-05-23T20:13:07",
"observations": null,
"attachments": null,
"financial": null,
"form_submission": null,
"organization": {
"id": 1199
},
"object": null,
"comments": null,
"updated_at": "2024-05-29T13:53:23",
"review_flows_events": null,
"pendencies": 0.0,
"assignee": {
"id": 3056
},
"title": "Teste Contrato",
"term_type": "Indeterminado",
"deleted": false,
"needs_acceptance": false,
"end_date": "2024-05-30",
"childrem_contracts": null,
"prev_status": null,
"custom_fields": null,
"parent_contract": null,
"review_flow": null,
"prev_assignee": null
},
"done": false,
"due_date": "2021-04-30",
"id": 1126,
"inserted_at": "2024-05-29T14:24:02",
"priority": 2,
"progress": {},
"recurrence_count": 1,
"recurrence_frequency": "weekly",
"recurring": true,
"requester": {
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
},
"title": "Seguro de Equipamentos",
"updated_at": "2024-05-29T14:24:02",
"user_ids": [
3056
],
"users": [
{
"activated": true,
"activity": "Desenvolvedor Jr",
"cpf": "136.382.516-08",
"email": "[email protected]",
"first_name": "Davi",
"gender": "unspecified",
"id": 3056,
"last_name": "Ferreira",
"marital_status": null,
"organizations_users": null
}
]
}
}
Updated 5 months ago