Compartilhar um projeto
curl --request POST \
--url https://api.olie.ai/api/management/projects/{project}/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"refresh": false,
"settings": {
"attributes": [
"name",
"status",
"description"
]
}
}
'import requests
url = "https://api.olie.ai/api/management/projects/{project}/share"
payload = {
"enabled": True,
"refresh": False,
"settings": { "attributes": ["name", "status", "description"] }
}
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({
enabled: true,
refresh: false,
settings: {attributes: ['name', 'status', 'description']}
})
};
fetch('https://api.olie.ai/api/management/projects/{project}/share', 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/projects/{project}/share",
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([
'enabled' => true,
'refresh' => false,
'settings' => [
'attributes' => [
'name',
'status',
'description'
]
]
]),
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/projects/{project}/share"
payload := strings.NewReader("{\n \"enabled\": true,\n \"refresh\": false,\n \"settings\": {\n \"attributes\": [\n \"name\",\n \"status\",\n \"description\"\n ]\n }\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/projects/{project}/share")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"refresh\": false,\n \"settings\": {\n \"attributes\": [\n \"name\",\n \"status\",\n \"description\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/projects/{project}/share")
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 \"enabled\": true,\n \"refresh\": false,\n \"settings\": {\n \"attributes\": [\n \"name\",\n \"status\",\n \"description\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"response": true,
"result": {
"id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"frame_id": "019c75de-532c-7047-9563-daf1448ca963",
"code": "SC-1",
"name": "Shopping Center",
"share_token": "hV3q8Zt1LpXk9RbNsA6y",
"share_settings": {
"attributes": [
"name",
"status",
"description",
"funnels"
]
},
"updated_at": "2026-08-19T11:31:07.000000Z"
}
}projects
Compartilhar um projeto
Liga ou desliga o compartilhamento público de um projeto e define o que o link exibe. Ao ligar, um token de compartilhamento é gerado (ou reaproveitado, se já existir); ao desligar, o token é descartado e o link deixa de funcionar.
Use refresh para invalidar o link atual e gerar um novo. A ativação e a desativação ficam registradas no histórico do projeto.
POST
/
api
/
management
/
projects
/
{project}
/
share
Compartilhar um projeto
curl --request POST \
--url https://api.olie.ai/api/management/projects/{project}/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"refresh": false,
"settings": {
"attributes": [
"name",
"status",
"description"
]
}
}
'import requests
url = "https://api.olie.ai/api/management/projects/{project}/share"
payload = {
"enabled": True,
"refresh": False,
"settings": { "attributes": ["name", "status", "description"] }
}
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({
enabled: true,
refresh: false,
settings: {attributes: ['name', 'status', 'description']}
})
};
fetch('https://api.olie.ai/api/management/projects/{project}/share', 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/projects/{project}/share",
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([
'enabled' => true,
'refresh' => false,
'settings' => [
'attributes' => [
'name',
'status',
'description'
]
]
]),
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/projects/{project}/share"
payload := strings.NewReader("{\n \"enabled\": true,\n \"refresh\": false,\n \"settings\": {\n \"attributes\": [\n \"name\",\n \"status\",\n \"description\"\n ]\n }\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/projects/{project}/share")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"refresh\": false,\n \"settings\": {\n \"attributes\": [\n \"name\",\n \"status\",\n \"description\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/projects/{project}/share")
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 \"enabled\": true,\n \"refresh\": false,\n \"settings\": {\n \"attributes\": [\n \"name\",\n \"status\",\n \"description\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"response": true,
"result": {
"id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"frame_id": "019c75de-532c-7047-9563-daf1448ca963",
"code": "SC-1",
"name": "Shopping Center",
"share_token": "hV3q8Zt1LpXk9RbNsA6y",
"share_settings": {
"attributes": [
"name",
"status",
"description",
"funnels"
]
},
"updated_at": "2026-08-19T11:31:07.000000Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID (UUID) do projeto.
Body
application/json
Was this page helpful?