TEAMS API
Manage resources and operations related to teams.
GET Get List of Teams
GET https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/teams
Required Scopes:
vani.teams.read
Retrieves the list of teams associated with an edition.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
edition_id | string | path | Required | The unique ID of the edition. |
Responses
200
success
200
using filter fields
200
user part of the org and not part of anyteam
success - Response
{
"data": {
"teams": [
{
"created_time": "Tue, 28 May 2024, 15:34:44",
"team_member_count": "5",
"team_id": "1303000000002003",
"is_default": "true",
"created_by_name": "Dan",
"zsoid": "60029715808",
"created_by": "60029267674",
"uri": "/vani/api/v1/editions/60029715808/teams/1303000000002003",
"team_name": "Boxible"
}
]
},
"message": "Teams fetched successfully",
"request_uri": "/vani/api/v1/editions/60029715808/teams",
"status": "success"
}
Code Examples
cURL
Command line HTTP client
cURL
curl -X GET "https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/teams" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"
GET Team Get
GET https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/teams/{team_id}
Required Scopes:
vani.teams.read
Retrieves information about a specific team in an edition.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
edition_id | string | path | Required | The unique ID of the edition. |
team_id | string | path | Required | The unique ID of the team associated with the edition. |
Responses
200
success
200
using filter fields
404
team not found
401
unauthorized
success - Response
{
"data": {
"team": {
"created_time": "Tue, 28 May 2024, 15:34:44",
"team_member_count": "5",
"team_id": "1303000000002003",
"created_by_name": "Dan",
"zsoid": "60029715808",
"created_by": "60029267674",
"uri": "/vani/api/v1/editions/60029715808/teams/1303000000002003/members",
"team_name": "Boxible"
}
},
"message": "Teams fetched successfully",
"request_uri": "/vani/api/v1/editions/60029715808/teams/1303000000002003",
"status": "success"
}
Code Examples
cURL
Command line HTTP client
cURL
curl -X GET "https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/teams/{team_id}" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"
PUT Update Team Meta
PUT https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/teams/{team_id}
Required Scopes:
vani.teams.update
Updates the name and description of a specific team within a given edition.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
edition_id | string | path | Required | The unique ID of the edition. |
team_id | string | path | Required | The unique ID of the team associated with the edition. |
team_name | string | body | Based on Request | The name of the team. |
description | string | body | Based on Request | Brief description about the team. |
Request Body
JSON
{
"team_name": "Test",
"description": "team rename test"
}
Responses
200
success
200
name update
200
description update
404
team not found
success - Response
{
"data": {
"current_user_id": "96384499",
"edition_id": "97375109",
"team_id": "1505000000002005",
"new_name": "Test",
"new_description": "team rename test"
},
"message": "Team updated successfully",
"request_uri": "/vani/api/v1/editions/97375109/teams/1505000000002005",
"status": "success"
}
Code Examples
cURL
Command line HTTP client
cURL
curl -X PUT "https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/teams/{team_id}" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"description": "team rename test"
}'