/api/post-v1-projects-projectuuid-templates-332896914d
Войти
Все методы TemplateTemplateController
manifest 0.0.0.118 • 1 июн. 2026 г., 13:50
POST/v1/projects/{projectUuid}/templatesAuthenticated

POST templates

Создаёт карточку шаблона для указанного проекта и компании.

Operation ID
TemplateController.create.POST.v1_projects__projectUuid__templates
Handler
cdp.gateway.cdp_gateway.company.features.template.controller.TemplateController#create
Consumes
Produces
Параметры1
Request bodyTemplateCreateGatewayRequestDTO
Response bodyResponseWrapper<Object>
Request map

Маршрут и контракт запроса

POST/v1/projects/{projectUuid}/templates
Path segments
v1projects{projectUuid}templates
Security
isAuthenticated()
Parameters

Параметры

ИмяИсточникТипОбязательныйNullableSchema
projectUuid
pathStringДаНет
Request / Response

Тела запроса и ответа

Request bodyTemplateCreateGatewayRequestDTO
Nullable: Нет
TemplateCreateGatewayRequestDTO
object • TemplateCreateGatewayRequestDTO
companyUuid
String
optional • nullable
name
String
required • not-null
description
String
optional • nullable
channel
TemplateChannelDTO
required • not-null • schema=TemplateChannelDTO
TemplateChannelDTO
enum • TemplateChannelDTO
EMAILPUSHMESSENGERWEBLAYER
Поля не описаны в manifest.
Response bodyResponseWrapper<Object>
Nullable: Нет
ResponseWrapper<Object>
object • ResponseWrapper<Object>
success
boolean
required • not-null
data
T
optional • nullable
error
CdpErrorResponse
optional • nullable • schema=CdpErrorResponse
CdpErrorResponse
object • CdpErrorResponse
errorId
String
required • not-null
code
String
required • not-null
message
String
required • not-null
details
Map<String, Object>
optional • not-null
fieldErrors
List<CdpFieldError>
optional • not-null
timestamp
long
optional • not-null
meta
Map<String, Object>
optional • not-null