/api/post-v1-projects-projectuuid-customers-fields-f327531d93
Войти
Все методы CustomerCustomerController
manifest 0.0.0.118 • 1 июн. 2026 г., 13:50
POST/v1/projects/{projectUuid}/customers/fieldsAuthenticated

POST fields

Создаёт или обновляет определение кастомного поля customer в рамках проекта.

Operation ID
CustomerController.upsertFieldDefinition.POST.v1_projects__projectUuid__customers_fields
Handler
cdp.gateway.cdp_gateway.customer.controller.CustomerController#upsertFieldDefinition
Consumes
Produces
Параметры1
Request bodyUpsertCustomerFieldDefinitionRequestDTO
Response bodyResponseWrapper<Object>
Request map

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

POST/v1/projects/{projectUuid}/customers/fields
Path segments
v1projects{projectUuid}customersfields
Security
isAuthenticated()
Parameters

Параметры

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

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

Request bodyUpsertCustomerFieldDefinitionRequestDTO
Nullable: Нет
UpsertCustomerFieldDefinitionRequestDTO
object • UpsertCustomerFieldDefinitionRequestDTO
projectUuid
String
required • not-null
uuid
String
optional • nullable
Если пусто — создаётся новая запись.
fieldKey
String
required • not-null
label
String
required • not-null
fieldType
CustomerFieldTypeDTO
required • not-null • schema=CustomerFieldTypeDTO
CustomerFieldTypeDTO
enum • CustomerFieldTypeDTO
TEXTNUMBERBOOLEANDATETIMEJSON
Поля не описаны в manifest.
isRequired
boolean
optional • not-null
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