Listar projetos por data de previsão
curl --request POST \
--url https://api.olie.ai/api/management/get-projects-by-forecast-dates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_funnel_id": null,
"dates": [
{
"year": 2026,
"month": 9
}
],
"filters": []
}
'import requests
url = "https://api.olie.ai/api/management/get-projects-by-forecast-dates"
payload = {
"project_funnel_id": None,
"dates": [
{
"year": 2026,
"month": 9
}
],
"filters": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({project_funnel_id: null, dates: [{year: 2026, month: 9}], filters: []})
};
fetch('https://api.olie.ai/api/management/get-projects-by-forecast-dates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.olie.ai/api/management/get-projects-by-forecast-dates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'project_funnel_id' => null,
'dates' => [
[
'year' => 2026,
'month' => 9
]
],
'filters' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.olie.ai/api/management/get-projects-by-forecast-dates"
payload := strings.NewReader("{\n \"project_funnel_id\": null,\n \"dates\": [\n {\n \"year\": 2026,\n \"month\": 9\n }\n ],\n \"filters\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.olie.ai/api/management/get-projects-by-forecast-dates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"project_funnel_id\": null,\n \"dates\": [\n {\n \"year\": 2026,\n \"month\": 9\n }\n ],\n \"filters\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/get-projects-by-forecast-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"project_funnel_id\": null,\n \"dates\": [\n {\n \"year\": 2026,\n \"month\": 9\n }\n ],\n \"filters\": []\n}"
response = http.request(request)
puts response.read_body{
"response": true,
"dates_with_projects": [
{
"date": {
"year": 2026,
"month": 9
},
"projects": [
{
"id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"code": "SC-1",
"name": "Shopping Center",
"status": 1,
"impact": 9,
"budget": 340000,
"forecast_date": "2026-09-14"
}
],
"projects_count": 1,
"projects_budget": 340000
},
{
"date": {
"year": 2026,
"month": 10
},
"projects": [],
"projects_count": 0,
"projects_budget": 0
}
]
}{
"response": false,
"message": "validation_errors",
"error": "O campo project funnel id é obrigatório. (and 1 more error)",
"validation": {
"project_funnel_id": [
"O campo project funnel id é obrigatório."
],
"dates": [
"O campo dates é obrigatório."
]
}
}projects
Listar projetos por data de previsão
Agrupa os projetos de um funil pelos meses de previsão informados. Para cada par ano/mês a resposta traz os projetos com data prevista naquele mês, a contagem e a soma dos orçamentos — é o que alimenta a visão de calendário do funil.
Aceita os mesmos filtros da busca avançada, aplicados a todos os meses da consulta.
POST
/
api
/
management
/
get-projects-by-forecast-dates
Listar projetos por data de previsão
curl --request POST \
--url https://api.olie.ai/api/management/get-projects-by-forecast-dates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_funnel_id": null,
"dates": [
{
"year": 2026,
"month": 9
}
],
"filters": []
}
'import requests
url = "https://api.olie.ai/api/management/get-projects-by-forecast-dates"
payload = {
"project_funnel_id": None,
"dates": [
{
"year": 2026,
"month": 9
}
],
"filters": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({project_funnel_id: null, dates: [{year: 2026, month: 9}], filters: []})
};
fetch('https://api.olie.ai/api/management/get-projects-by-forecast-dates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.olie.ai/api/management/get-projects-by-forecast-dates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'project_funnel_id' => null,
'dates' => [
[
'year' => 2026,
'month' => 9
]
],
'filters' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.olie.ai/api/management/get-projects-by-forecast-dates"
payload := strings.NewReader("{\n \"project_funnel_id\": null,\n \"dates\": [\n {\n \"year\": 2026,\n \"month\": 9\n }\n ],\n \"filters\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.olie.ai/api/management/get-projects-by-forecast-dates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"project_funnel_id\": null,\n \"dates\": [\n {\n \"year\": 2026,\n \"month\": 9\n }\n ],\n \"filters\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/get-projects-by-forecast-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"project_funnel_id\": null,\n \"dates\": [\n {\n \"year\": 2026,\n \"month\": 9\n }\n ],\n \"filters\": []\n}"
response = http.request(request)
puts response.read_body{
"response": true,
"dates_with_projects": [
{
"date": {
"year": 2026,
"month": 9
},
"projects": [
{
"id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"code": "SC-1",
"name": "Shopping Center",
"status": 1,
"impact": 9,
"budget": 340000,
"forecast_date": "2026-09-14"
}
],
"projects_count": 1,
"projects_budget": 340000
},
{
"date": {
"year": 2026,
"month": 10
},
"projects": [],
"projects_count": 0,
"projects_budget": 0
}
]
}{
"response": false,
"message": "validation_errors",
"error": "O campo project funnel id é obrigatório. (and 1 more error)",
"validation": {
"project_funnel_id": [
"O campo project funnel id é obrigatório."
],
"dates": [
"O campo dates é obrigatório."
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Was this page helpful?