team
default
🛡️ Delete all the teams belonging to the account and then clone from GitHub. The "Bots" team will remain intact. The rest of the teams will be identical to what's on GitHub.
delete/teams/{id}
Request
- Base URL{{ server_url }}/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Numeric identifier of the account.
Query parameters
unmappedboolean
Delete teams that are not backed by GitHub.
Response
List of the new, reset teams belonging to the specified account.
Example response
[
{
"id": 1,
"name": "Engineering",
"parent": 3,
"members": [
{
"login": "github.com/vmarkovtsev",
"name": "Vadim Markovtsev",
"email": "vadim@athenian.co",
"picture": "https://avatars3.githubusercontent.com/u/2793551?v=4"
},
{
"login": "github.com/se7entyse7en",
"name": "Lou Marvin Caraig",
"email": "waren@athenian.co",
"picture": "https://avatars1.githubusercontent.com/u/5599208?v=4"
}
]
},
{
"id": 2,
"name": "Product",
"parent": 3,
"members": [
{
"login": "github.com/warenlg",
"name": "Waren Long",
"email": "waren@athenian.co",
"picture": "https://avatars2.githubusercontent.com/u/24694845?v=4"
}
]
},
{
"id": 3,
"name": "Management",
"parent": null,
"members": [
{
"login": "github.com/eiso",
"name": "Eiso Kant",
"email": "eiso@athenian.co",
"picture": "https://avatars2.githubusercontent.com/u/1247608?v=4"
}
]
}
]Changes
No recorded changes to this operation across all 70 revisions of this API.