curl --request POST \
--url https://api.example.com/main-menu/messages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"message_text": "<string>",
"is_active": true,
"sort_order": 0
}
'{
"id": 123,
"message_text": "<string>",
"is_active": true,
"sort_order": 123,
"created_by": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Создание нового пользовательского сообщения главного меню.
curl --request POST \
--url https://api.example.com/main-menu/messages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"message_text": "<string>",
"is_active": true,
"sort_order": 0
}
'{
"id": 123,
"message_text": "<string>",
"is_active": true,
"sort_order": 123,
"created_by": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}