Мероприятия¶
Доступность объекта: общедоступный объект.
Объекты:
Типы участия:
id |
Описание |
---|---|
0 |
Обязательное присутствие |
1 |
Опционально |
2 |
Информационное участие |
Типы ролей участников:
id |
Описание |
---|---|
0 |
Организатор |
1 |
Спикер |
2 |
Участник |
3 |
Со-организатор |
Получение списка:
POST http://{{v2_host}}/api/teams/
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"action": "list",
"obj": "DTScheduledMeeting",
"action_id": "123",
"params": {
"domain_id": 1
},
"filter": {
"field_list": [
{
"field": "schedule->start_dt",
"value": 1718571600,
"condition_type": 5
},
{
"field": "schedule->end_dt",
"value": 1719176399,
"condition_type": 7
}
],
"type": 0
}
}
Добавление объекта:
POST http://{{v2_host}}/api/
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"action": "append",
"obj": "DTScheduledMeeting",
"action_id": "123",
"params": {
"domain_id": 1,
"name": "test",
"description": null,
"scheduled_meeting_id": null,
"schedule": {
"start_dt": 1718881200,
"end_dt": 1718883000,
"repeat": null
},
"secret": "b9408837-6f7b-580748af-9730-8698",
"number": null,
"params": {
"allow_video": true,
"allow_screen_share": false,
"allow_recording": false,
"allow_chat": true,
"default_perm": 2,
"entry_mode": 0,
"autostart": 0,
"outbound_group": null,
"cc_pin": null
},
"attendees": [
{
"model_name": "DTScheduledMeetingAttendeeUser",
"id": 5552,
"perm": 0,
"role": 0
}
],
"status": 1
}
}
Обновление объекта:
POST http://{{v2_host}}/api/teams/
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"action": "update",
"obj": "DTScheduledMeeting",
"action_id": "123",
"params": {
"domain_id": 1,
"id": 1,
"name": "test",
"description": null,
"scheduled_meeting_id": null,
"schedule": {
"start_dt": 1718884800,
"end_dt": 1718886600,
"repeat": null
},
"secret": "b9408837-6f7b-580748af-9730-8698",
"number": "346009056",
"params": {
"allow_video": true,
"allow_screen_share": false,
"allow_recording": false,
"allow_chat": true,
"default_perm": 2,
"entry_mode": 0,
"autostart": 0,
"outbound_group": null,
"cc_pin": "049100"
},
"attendees": [
{
"model_name": "DTScheduledMeetingAttendeeUser",
"id": 5552,
"perm": 0,
"role": 0
},
],
"status": 1
}
}
Удаление объекта:
POST http://{{v2_host}}/api/
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"action": "delete",
"obj": "DTScheduledMeeting",
"action_id": "123",
"params": {
"id": 2,
"domain_id": 1
}
}