Skip to main content
Version: v5.2

Teams

Overview

Use the Teams API call to create, update, retrieve, and delete AI teams. With this REST API, you can do the following:

Using the namespace filter

Note: The nsfilter (namespace filter) query parameter is mandatory for every API request. It sets the context, helping you look up resources within that namespace.

Example:

GET /aisvc/api/v1/teams?nsfilter=your_namespace

Create Teams

Endpoint

POST /aisvc/api/v1/teams

Request

Query parameters

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required

Body parameters

ParameterTypeDescriptionRequired
_nameStringName of the team.Required
_namespacesArray of StringNamespaces to include.Required
_agentsArray of ObjectList of agents with _userType.Required
_flowArray of ObjectDefines the team flow.Required
_permissionProfileIdStringThe id of the permission profile to use for the Team execution, which will run with the specified profile’s context instead of the user’s.Optional
Body example
{
"_name": "The BIM Analyst",
"_namespaces": ["testproject_Lik2UwIN"],
"_agents": [{ "_userType": "bim_analyst" }],
"_flow": [
{ "from": "__start__", "to": "bim_analyst" },
{ "from": "bim_analyst", "to": "__end__" }
]
}

Response codes

CodeDescription
200Success

Update Teams

Endpoint

POST /aisvc/api/v1/teams

Request

Query parameters

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required

Body parameters

ParameterTypeDescriptionRequired
_nameStringName of the team.Required
_agentsArray of ObjectList of agents with _userType.Required
_flowArray of ObjectDefines the team flow.Required
_namespacesArray of StringNamespaces to include.Required
_idStringID of the team (for update).Required when updating
Body example
{
"_name": "The BIM Analyzer",
"_agents": [
{
"_userType": "bim_analyst"
}
],
"_flow": [
{ "from": "__start__", "to": "bim_analyst" },
{ "from": "bim_analyst", "to": "__end__" }
],
"_namespaces": ["testproject_Lik2UwIN"],
"_id": "1e82300b-f8e9-410d-a89b-c14b104e464c"
}

Response codes

CodeDescription
200Success
400Bad Request
404Not Found

Get Teams

Endpoint

GET /aisvc/api/v1/teams

Request

Query parameters

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required
offsetNumberOffset for pagination.Optional
pagesizeNumberNumber of results per page.Optional

Response codes

CodeDescription
200Success
400Bad Request

Response data example

{
"_offset": 2,
"_pageSize": 2,
"_total": 10,
"_list": [
{
"id": "f1deea65-7b9d-4678-96c7-7094be0becde",
"_name": "The BIM Analyzer",
"_agents": [
{ "_userType": "bim_analyst" }
],
"_flow": [
{ "from": "__start__", "to": "bim_analyst" },
{ "from": "bim_analyst", "to": "__end__" }
],
"_namespaces": ["testproject_Lik2UwIN"]
}
]
}

Get Teams by ID

Endpoint

GET /aisvc/api/v1/teams/{id}

Request

Path parameters

ParameterTypeDescriptionRequired
idStringID of the team.Required

Query parameters

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required

Response codes

CodeDescription
200Success
404Not Found

Response data example

{
"id": "f1deea65-7b9d-4678-96c7-7094be0becde",
"_name": "The BIM Analyzer",
"_agents": [
{ "_userType": "bim_analyst" }
],
"_flow": [
{ "from": "__start__", "to": "bim_analyst" },
{ "from": "bim_analyst", "to": "__end__" }
],
"_namespaces": ["testproject_Lik2UwIN"]
}

Delete Teams by ID

Endpoint

DELETE /aisvc/api/v1/teams/{id}

Request

Path parameters

ParameterTypeDescriptionRequired
idStringID of the team.Required

Query parameters

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required

Response codes

CodeDescription
204Success
404Not Found