AI Configs
Create new agent graph
Create a new agent graph within the given project.
post/api/v2/projects/{projectKey}/agent-graphs
Path parameters
projectKeystring required
Headers
LD-API-Version'beta' required
Version of the endpoint.
Request body
Example request
{
"maintainerId": "507f1f77bcf86cd799439011",
"rootConfigKey": "rootConfigKey",
"name": "name",
"maintainerTeamKey": "example-team-key",
"edges": [
{
"sourceConfig": "sourceConfig",
"targetConfig": "targetConfig",
"handoff": "{}",
"key": "key"
},
{
"sourceConfig": "sourceConfig",
"targetConfig": "targetConfig",
"handoff": "{}",
"key": "key"
}
],
"description": "description",
"key": "key"
}Response
Agent graph created
Example response
{
"createdAt": 0,
"_maintainer": {
"kind": "kind"
},
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"rootConfigKey": "rootConfigKey",
"name": "name",
"edges": [
{
"sourceConfig": "sourceConfig",
"targetConfig": "targetConfig",
"handoff": "{}",
"key": "key"
},
{
"sourceConfig": "sourceConfig",
"targetConfig": "targetConfig",
"handoff": "{}",
"key": "key"
}
],
"description": "description",
"key": "key",
"updatedAt": 6
}