내 팀들
GET https://pushye.com/api/teams/
curl --request GET \
--url 'https://pushye.com/api/teams/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/teams/' \
--header 'Authorization: Bearer {api_key}' \
매개변수 | 세부사항 | 설명 |
---|---|---|
page | 선택 사항 정수 | 결과를 원하는 페이지 번호입니다. 기본값은 1 입니다. |
results_per_page | 선택 사항 정수 | 페이지당 원하는 결과 수는 얼마입니까? 허용되는 값은: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . 기본값은 25 입니다. |
{
"data": [
{
"id": 1,
"name": "Example team",
"team_members": [
{
"team_member_id": 1,
"user_email": "hello@example.com",
"access": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"status": 1,
"datetime": "2025-02-05 13:01:15",
"last_datetime": null
}
],
"last_datetime": null,
"datetime": "2025-02-05 13:01:15"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://pushye.com/api/teams?&page=1",
"last": "https://pushye.com/api/teams?&page=1",
"next": null,
"prev": null,
"self": "https://pushye.com/api/teams?&page=1"
}
}
GET https://pushye.com/api/teams/{team_id}
curl --request GET \
--url 'https://pushye.com/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"name": "Example team",
"team_members": [
{
"team_member_id": 1,
"user_email": "hello@example.com",
"access": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"status": 1,
"datetime": "2025-02-05 13:01:15",
"last_datetime": null
}
],
"last_datetime": null,
"datetime": "2025-02-05 13:01:15"
}
}
POST https://pushye.com/api/teams
매개변수 | 세부사항 | 설명 |
---|---|---|
name | 필수 문자열 | - |
curl --request POST \
--url 'https://pushye.com/api/teams' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My team' \
--url 'https://pushye.com/api/teams' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My team' \
{
"data": {
"id": 1
}
}
POST https://pushye.com/api/teams/{team_id}
매개변수 | 세부사항 | 설명 |
---|---|---|
name | 선택 사항 문자열 | - |
curl --request POST \
--url 'https://pushye.com/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My new team name' \
--url 'https://pushye.com/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My new team name' \
{
"data": {
"id": 1
}
}
DELETE https://pushye.com/api/teams/{team_id}
curl --request DELETE \
--url 'https://pushye.com/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \