Teams
Last updated
Was this helpful?
Last updated
Was this helpful?
Get a list of teams
GET /teams HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer JWT
Accept: */*
{
"data": [
{
"id": "text",
"name": "text",
"users": [
{
"email": "text",
"id": "text"
}
]
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}
Get a team by its ID
The ID of the team to fetch.
GET /teams/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer JWT
Accept: */*
{
"data": {
"id": "text",
"name": "text",
"users": [
{
"email": "text",
"id": "text"
}
]
},
"request_id": "text"
}
Update an existing team
The ID of the team to update.
The name of the team.
The list of user IDs to add to the team. If provided, the team members will be updated to be exactly the given users.
PATCH /teams/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"name": "text",
"user_ids": [
"text"
]
}
{
"data": {
"id": "text",
"name": "text",
"users": [
{
"email": "text",
"id": "text"
}
]
},
"request_id": "text"
}
Create a new team
The name of the team.
The list of user IDs to add to the team.
POST /teams HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"name": "text",
"user_ids": [
"text"
]
}
{
"data": {
"id": "text",
"name": "text",
"users": [
{
"email": "text",
"id": "text"
}
]
},
"request_id": "text"
}