Membri del team
GET https://enotify.cl/api/team-members/{team_id}
curl --request GET \
--url 'https://enotify.cl/api/team-members/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://enotify.cl/api/team-members/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [
{
"id": 1,
"team_id": 1,
"user_email": "hello@example.com",
"access": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"status": 1,
"datetime": "2022-06-05 14:37:10",
"last_datetime": "2022-06-07 13:04:31"
}
]
}
POST https://enotify.cl/api/teams
Parametri | Dettagli | Descrizione |
---|---|---|
team_id | Richiesto Numero intero | - |
user_email | Richiesto Traduzione, ma evita di restituire punti finali | - |
access | Opzionale Traduzione, ma evita di restituire punti finali Array |
read.all create.campaigns , create.notifications update.campaigns , update.notifications delete.campaigns , delete.notifications |
curl --request POST \
--url 'https://enotify.cl/api/team-members' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'team_id=1' \
--form 'user_email=hello@example.com' \
--url 'https://enotify.cl/api/team-members' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'team_id=1' \
--form 'user_email=hello@example.com' \
{
"data": {
"id": 1
}
}
POST https://enotify.cl/api/team-members/{team_member_id}
Parametri | Dettagli | Descrizione |
---|---|---|
access | Opzionale Traduzione, ma evita di restituire punti finali Array |
read.all create.campaigns , create.notifications update.campaigns , update.notifications delete.campaigns , delete.notifications |
curl --request POST \
--url 'https://enotify.cl/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://enotify.cl/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://enotify.cl/api/team-members/{team_member_id}
curl --request DELETE \
--url 'https://enotify.cl/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://enotify.cl/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \