Create Custom Field
POST https://services.leadconnectorhq.com/locations/{locationId}/customFields
Create Custom Field
Request
Security: Bearer Auth
Utiliza el Access Token generado con tipo de usuario Subcuenta o el Token de Integración Privada de la Subcuenta en PowerLeads. Proporciona tu token Bearer en el encabezado Authorization al realizar solicitudes a recursos protegidos.
Example: Authorization: Bearer 123
Path Parameters
Location Id
Examples: ve9EPM428h8vShlRW1KT
Headers
Access Token
Example: Bearer 9c48df2694a849b6089f9d0d3513efe
API Version
Allowed value: 2021-04-15
Body
Example: Custom Field
Example: TEXT
Example: Placeholder Text
Example: [".pdf",".docx",".jpeg"]
Example: false
Example: 2
textBoxListOptions array (anyOf) [TextBoxListOptionsSchema]
label string
Example: First
prefillValue string
Example:
position number
Default: 0
Example: 0
model string
Model of the custom field you want to create
Allowed values: contact opportunity
Example: opportunity
Request Sample: Shell / cURL
curl --request POST \ --url https://services.leadconnectorhq.com/locations/ve9EPM428h8vShlRW1KT/customFields \ --header 'Accept: application/json' \ --header 'Authorization: Bearer 123' \ --header 'Content-Type: application/json' \ --header 'Version: 2021-07-28' \ --data '{ "name": "Custom Field", "dataType": "TEXT", "placeholder": "Placeholder Text", "acceptedFormat": [ ".pdf", ".docx", ".jpeg" ], "isMultipleFile": false, "maxNumberOfFiles": 2, "textBoxListOptions": [ { "label": "First", "prefillValue": "" } ], "position": 0, "model": "contact"}'
Response Example
{ "customField": { "id": "3sv6UEo51C9Bmpo1cKTq", "name": "pincode", "fieldKey": "contact.pincode", "placeholder": "Pin code", "dataType": "TEXT", "position": 0, "picklistOptions": [ "first option" ], "picklistImageOptions": [], "isAllowedCustomOption": false, "isMultiFileAllowed": true, "maxFileLimit": 4, "locationId": "3sv6UEo51C9Bmpo1cKTq", "model": "opportunity" }}