import requests
url = "https://api.diga.io/v1/path/"
payload = {
"name": "<string>",
"description": "<string>",
"global_prompt": "<string>",
"nodes": [
{
"name": "<string>",
"node_type": "start",
"branches": [],
"pos_x": 123,
"pos_y": 123,
"is_global": False,
"global_condition": "<string>",
"wait_user": False,
"time_before_start": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nodes": [
{
"name": "<string>",
"node_type": "start",
"branches": [],
"pos_x": 123,
"pos_y": 123,
"is_global": false,
"global_condition": "<string>",
"wait_user": false,
"time_before_start": 123
}
],
"description": "<string>",
"global_prompt": "<string>"
}Create a new
import requests
url = "https://api.diga.io/v1/path/"
payload = {
"name": "<string>",
"description": "<string>",
"global_prompt": "<string>",
"nodes": [
{
"name": "<string>",
"node_type": "start",
"branches": [],
"pos_x": 123,
"pos_y": 123,
"is_global": False,
"global_condition": "<string>",
"wait_user": False,
"time_before_start": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nodes": [
{
"name": "<string>",
"node_type": "start",
"branches": [],
"pos_x": 123,
"pos_y": 123,
"is_global": false,
"global_condition": "<string>",
"wait_user": false,
"time_before_start": 123
}
],
"description": "<string>",
"global_prompt": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.diga.io/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for create or update path.
The name of the path
The description of the path
The global prompt for the path
The nodes in the path
Show child attributes
Successful Response
Response model for path
Unique identifier for the path
The name of the path
The nodes in the path
Defines a start node with all its properties.
Show child attributes
The description of the path
The global prompt for the path