Uploading Team Data (beta)
Teams are groups of contributors that can collaborate and are managed collectively. These APIs allow you to set up and manage your teams on your domain.
Importing Teams Data
To ensure the accuracy of data in Logilica, Teams data should adhere to the following:
Teams should have unique names.
New members will automatically be added as contributors into your Logilica instance.
The administrator of the team is assigned to the owner of the API token.
For parent teams, include the
subTeams
field and use the GET Teams API to obtain the team'sID
.
Upload Example Using cURL
In the following, we provide an example of how to push your Teams data into Logilica for storage and built-in analytics.
The cURL POST command is below. Note, that the POST command uses example data, including the API token lgca_UeRxFs_3RYRJEJtdYp7j7Wa6DirG5NjiYslsb
and the example workspace myworkspace
.
curl --location --request POST 'https://logilica.io/api/import/v1/teams/create' \
--header 'X-lgca-token: lgca_UeRxFs_3RYRJEJtdYp7j7Wa6DirG5NjiYslsb' \
--header 'x-lgca-domain: myworkspace' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Development Team",
"members": [{
"name": "John Doe",
"email": "[email protected]"
},
{
"name": "Jane Doe,
"email": "[email protected]"
}],
"subTeams": ["1234567"]
}'
API Schema for Importing Team
Create a Team
Create a team
Name of the team
The sub teams within the team
POST /api/import/v1/teams/create HTTP/1.1
Host: logilica.io
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"name": "text",
"members": [
{
"name": "text",
"email": "text"
}
],
"subTeams": [
"text"
]
}
{
"message": "text"
}
Update a Team
Update a team
Name of the team
The sub teams within the team
POST /api/import/v1/teams/update/{teamID} HTTP/1.1
Host: logilica.io
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"name": "text",
"members": [
{
"name": "text",
"email": "text"
}
],
"subTeams": [
"text"
]
}
{
"message": "text"
}
Delete a Team
Delete a team
POST /api/import/v1/teams/delete/{teamID} HTTP/1.1
Host: logilica.io
Accept: */*
{
"message": "text"
}
List Teams
List the teams in a domain
GET /api/import/v1/teams/ HTTP/1.1
Host: logilica.io
Accept: */*
{
"name": "text",
"members": [
{
"name": "text",
"email": "text"
}
],
"subTeams": [
"text"
]
}
Last updated