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/fieldsPath segments
v1projects{projectUuid}customersfields
Security
isAuthenticated()
Parameters
Параметры
| Имя | Источник | Тип | Обязательный | Nullable | Schema |
|---|---|---|---|---|---|
projectUuid | path | String | Да | Нет | — |
Request / Response
Тела запроса и ответа
Request bodyUpsertCustomerFieldDefinitionRequestDTO
Nullable: Нет
UpsertCustomerFieldDefinitionRequestDTO
object • UpsertCustomerFieldDefinitionRequestDTO
projectUuid
Stringuuid
StringЕсли пусто — создаётся новая запись.
fieldKey
Stringlabel
StringfieldType
CustomerFieldTypeDTOCustomerFieldTypeDTO
enum • CustomerFieldTypeDTO
TEXTNUMBERBOOLEANDATETIMEJSON
Поля не описаны в manifest.
isRequired
booleanResponse bodyResponseWrapper<Object>
Nullable: Нет
ResponseWrapper<Object>
object • ResponseWrapper<Object>
success
booleandata
Terror
CdpErrorResponseCdpErrorResponse
object • CdpErrorResponse
errorId
Stringcode
Stringmessage
Stringdetails
Map<String, Object>fieldErrors
List<CdpFieldError>timestamp
longmeta
Map<String, Object>