Autional Autional
API Reference GitHub autional.com →

POST /admin/notifications/event-mappings

Create a mapping relationship between event types and notification templates. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.

Notification Service `bearerAuth` application/json

Request Body

Schema: dto.CreateEventMappingRequest

FieldTypeRequiredExampleConstraintsDescription
event_type string Yes
template_code string Yes
channel string No
priority string No

Responses

StatusDescriptionSchema
201Created successfullydto.EventMappingDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissionsgitee_com_linmes_authms_base_dto.SimpleResponse
404Resource not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.EventMappingDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.EventMappingResponse No
message string No
timestamp string No

dto.EventMappingResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No
channel string No
event_type string No
id string No
is_enabled boolean No
priority string No
template_code string No
tenant_id string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No