Subscriber Notification Template
Links subscriber notification templates to specific status pages. This allows you to use different notification templates for different status pages.
Модель Subscriber Notification Template
Свойства
- Имя
_id- Тип
- Object ID
- Описание
ID of this object
- Имя
createdAt- Тип
- Date
- Описание
Date and Time when the object was created.
- Имя
updatedAt- Тип
- Date
- Описание
Date and Time when the object was updated.
- Имя
project- Тип
- Project
- Описание
Relation to Project Resource in which this object belongs
- Имя
projectId- Тип
- Object IDОбязательно
- Описание
ID of your Project in which this object belongs
- Имя
statusPage- Тип
- Status Page
- Описание
Status Page this template is linked to
- Имя
statusPageId- Тип
- Object IDОбязательно
- Описание
ID of the Status Page this template is linked to
- Имя
statusPageSubscriberNotificationTemplate- Тип
- Subscriber Notification Template
- Описание
The notification template to use for this status page
- Имя
statusPageSubscriberNotificationTemplateId- Тип
- Object IDОбязательно
- Описание
ID of the notification template linked to this status page
- Имя
createdByUser- Тип
- User
- Описание
Relation to User who created this object (if this object was created by a User)
- Имя
createdByUserId- Тип
- Object ID
- Описание
User ID who created this object (if this object was created by a User)
/api/status-page-subscriber-notification-template-status-page/get-listСписок
Этот метод возвращает постраничный список ваших объектов «Subscriber Notification Template». По умолчанию на странице до десяти записей.
Необязательные query-параметры
limit- число
- Сколько объектов вернуть. По умолчанию 10, максимум 100
skip- число
- Сколько объектов пропустить (для пагинации)
Необязательное тело запроса
query- Чтобы фильтровать Subscriber Notification Template, укажите запрос здесь. Подробнее: написание запросов.
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
sort- По умолчанию сортировка по дате создания. Порядок можно изменить — см. раздел «Сортировка» в типах данных.
Запрос списка
POST/api/status-page-subscriber-notification-template-status-page/get-list?skip=0&limit=10Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"projectId": true,
"statusPageId": true,
"statusPageSubscriberNotificationTemplateId": true,
"_id": true,
"createdAt": true
},
"query": {},
"sort": {
"createdAt": -1
}
}Ответ
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "377dedc0-28fe-11f1-b591-3fdcef396aba",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageSubscriberNotificationTemplateId": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2024-01-15T10:30:00.000Z"
},
{
"_id": "377dedc1-28fe-11f1-b591-3fdcef396aba",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageSubscriberNotificationTemplateId": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2024-01-15T10:30:00.000Z"
},
{
"_id": "377dedc2-28fe-11f1-b591-3fdcef396aba",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageSubscriberNotificationTemplateId": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
}/api/status-page-subscriber-notification-template-status-page/:id/get-itemПолучить по ID
Возвращает объект «Subscriber Notification Template» по идентификатору.
id- строка
- ID объекта
Необязательное тело запроса
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
Запрос одного объекта
POST/api/status-page-subscriber-notification-template-status-page/:id/get-itemContent-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"projectId": true,
"statusPageId": true,
"statusPageSubscriberNotificationTemplateId": true,
"_id": true,
"createdAt": true
}
}Ответ
{
"_id": "550e8400-e29b-41d4-a716-446655440000",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageSubscriberNotificationTemplateId": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2024-01-15T10:30:00.000Z"
}/api/status-page-subscriber-notification-template-status-page/countКоличество
Возвращает количество ваших объектов «Subscriber Notification Template».
Необязательное тело запроса
query- Чтобы фильтровать Subscriber Notification Template, укажите запрос здесь. Подробнее: написание запросов.
Запрос количества
POST/api/status-page-subscriber-notification-template-status-page/countContent-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {}
}Ответ
{
"count": 107
}/api/status-page-subscriber-notification-template-status-pageСоздать Subscriber Notification Template
Создаёт новый объект.
Запрос создания
POST/api/status-page-subscriber-notification-template-status-pageContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageSubscriberNotificationTemplateId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "550e8400-e29b-41d4-a716-446655440000",
"project": "Example project"
}
}Ответ
{
"_id": "550e8400-e29b-41d4-a716-446655440000",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageSubscriberNotificationTemplateId": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2024-01-15T10:30:00.000Z"
}/api/status-page-subscriber-notification-template-status-page/:idОбновить по ID
Обновляет объект по ID.
Альтернативные методы
Если клиент не поддерживает PUT, используйте POST или GET с теми же заголовками и телом:
Запрос обновления
PUT/api/status-page-subscriber-notification-template-status-page/:idContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"statusPageSubscriberNotificationTemplateId": "550e8400-e29b-41d4-a716-446655440000",
"statusPageSubscriberNotificationTemplate": "Example notification template"
}
}Ответ
{}/api/status-page-subscriber-notification-template-status-page/:idУдалить по ID
Удаляет объект по ID.
Альтернативные методы
Если клиент не поддерживает DELETE, используйте POST или GET с теми же заголовками и телом:
Запрос удаления
DELETE/api/status-page-subscriber-notification-template-status-page/:idContent-Type: application/json ApiKey: YOUR_API_KEY
Ответ
{}Права доступа
Для операций с ресурсом у ключа API должны быть права. При их отсутствии вернётся ответ 4xx.
Права на чтение
Нужны для чтения Subscriber Notification Template
Project OwnerProject AdminProject MemberRead Status Page Subscriber Notification Template LinkRead All Project Resources
Права на создание
Нужны для создания Subscriber Notification Template
Project OwnerProject AdminProject MemberCreate Status Page Subscriber Notification Template Link
Права на обновление
Нужны для обновления Subscriber Notification Template
Project OwnerProject AdminProject MemberEdit Status Page Subscriber Notification Template Link
Права на удаление
Нужны для удаления Subscriber Notification Template
Project OwnerProject AdminProject MemberDelete Status Page Subscriber Notification Template Link