Участники команды

GET https://hostmon.ru/api/team-members/{team_id}
curl --request GET \
--url 'https://hostmon.ru/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://hostmon.ru/api/teams
Параметры Подробно Описание
team_id Обязательный Целое число -
user_email Обязательный Строка -
access Опциональный Строка Массив read.all
create.notification_handlers , create.projects , create.domains , create.status_pages , create.monitors , create.domain_names , create.heartbeats , create.dns_monitors , create.server_monitors
update.notification_handlers , update.projects , update.domains , update.status_pages , update.monitors , update.domain_names , update.heartbeats , update.dns_monitors , update.server_monitors
delete.projects , delete.notification_handlers , delete.domains , delete.status_pages , delete.monitors , delete.domain_names , delete.heartbeats , delete.dns_monitors , delete.server_monitors
curl --request POST \
--url 'https://hostmon.ru/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://hostmon.ru/api/team-members/{team_member_id}
Параметры Подробно Описание
access Опциональный Строка Массив read.all
create.notification_handlers , create.projects , create.domains , create.status_pages , create.monitors , create.domain_names , create.heartbeats , create.dns_monitors , create.server_monitors
update.notification_handlers , update.projects , update.domains , update.status_pages , update.monitors , update.domain_names , update.heartbeats , update.dns_monitors , update.server_monitors
delete.projects , delete.notification_handlers , delete.domains , delete.status_pages , delete.monitors , delete.domain_names , delete.heartbeats , delete.dns_monitors , delete.server_monitors
curl --request POST \
--url 'https://hostmon.ru/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://hostmon.ru/api/team-members/{team_member_id}
curl --request DELETE \
--url 'https://hostmon.ru/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \