Członkowie zespołu
GET https://cnhosted.com/api/team-members/{team_id}
curl --request GET \
--url 'https://cnhosted.com/api/team-members/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://cnhosted.com/api/team-members/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [
{
"id": 1,
"team_id": 1,
"user_email": "[email protected]",
"access": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"status": 1,
"datetime": "2025-06-12 18:39:40",
"last_datetime": null
}
]
}
POST https://cnhosted.com/api/teams
Parametry | Szczegóły | Opis |
---|---|---|
team_id | Wymagane Integer | - |
user_email | Wymagane String | - |
access | Opcjonalne String Array |
read.all create.transfers , create.notification_handlers , create.domains , create.pixels update.transfers , update.notification_handlers , update.domains , update.pixels delete.transfers , delete.notification_handlers , delete.domains , delete.pixels |
curl --request POST \
--url 'https://cnhosted.com/api/team-members' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'team_id=1' \
--form 'user_email=[email protected]' \
--url 'https://cnhosted.com/api/team-members' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'team_id=1' \
--form 'user_email=[email protected]' \
{
"data": {
"id": 1
}
}
POST https://cnhosted.com/api/team-members/{team_member_id}
Parametry | Szczegóły | Opis |
---|---|---|
access | Opcjonalne String Array |
read.all create.transfers , create.notification_handlers , create.domains , create.pixels update.transfers , update.notification_handlers , update.domains , update.pixels delete.transfers , delete.notification_handlers , delete.domains , delete.pixels |
curl --request POST \
--url 'https://cnhosted.com/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'access[]=create' \
--form 'access[]=update' \
--url 'https://cnhosted.com/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'access[]=create' \
--form 'access[]=update' \
{
"data": {
"id": 1
}
}
DELETE https://cnhosted.com/api/team-members/{team_member_id}
curl --request DELETE \
--url 'https://cnhosted.com/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://cnhosted.com/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \