/api/post-v1-projects-projectuuid-scripts-scriptuuid-versions-f86da96d24
Войти
Все методы ScriptScriptController
manifest 0.0.0.118 • 1 июн. 2026 г., 13:50
POST/v1/projects/{projectUuid}/scripts/{scriptUuid}/versionsAuthenticated

POST versions

Создаёт draft-версию script-карточки.

Operation ID
ScriptController.createVersion.POST.v1_projects__projectUuid__scripts__scriptUuid__versions
Handler
cdp.gateway.cdp_gateway.company.features.script.controller.ScriptController#createVersion
Consumes
Produces
Параметры2
Request bodyScriptVersionCreateGatewayRequestDTO
Response bodyResponseWrapper<Object>
Request map

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

POST/v1/projects/{projectUuid}/scripts/{scriptUuid}/versions
Path segments
v1projects{projectUuid}scripts{scriptUuid}versions
Security
isAuthenticated()
Parameters

Параметры

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

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

Request bodyScriptVersionCreateGatewayRequestDTO
Nullable: Нет
ScriptVersionCreateGatewayRequestDTO
object • ScriptVersionCreateGatewayRequestDTO
sourceCode
String
required • not-null
returnType
ScriptReturnTypeDTO
required • not-null • schema=ScriptReturnTypeDTO
ScriptReturnTypeDTO
enum • ScriptReturnTypeDTO
TEXTHTMLBOOLEANNUMBERJSONOBJECTLISTACTION_PLANVOID
Поля не описаны в 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