Update Custom Field

PUThttps://services.leadconnectorhq.com/locations/{locationId}/customFields/{id}
Update Custom Field
Request

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123
Path Parameters
id
string
required

Custom Field Id

Examples:
00NhGCcN1tlO8ZHcu7Wb
locationId
string
required

Location Id

Examples:
ve9EPM428h8vShlRW1KT
Body
name
string
required
Example:
Custom Field
placeholder
string
Example:
Placeholder Text
acceptedFormat
array[string]
Example:
[".pdf",".docx",".jpeg"]
isMultipleFile
boolean
Example:
false
maxNumberOfFiles
number
Example:
2
textBoxListOptions
label
string
Example:
First
prefillValue
string
Example:
position
number
Default:
0
Example:
0
model
string

Model of the custom field you want to update

Allowed values:
contactopportunity
Example:
opportunity
Headers
Authorization
string
required

Access Token

Example:
Bearer 9c48df2694a849b6089f9d0d3513efe
Version
string
required

API Version

Allowed value:
2021-07-28

Responses

Successful response

customField
object
id
string
Example:
3sv6UEo51C9Bmpo1cKTq
name
string
Example:
pincode
fieldKey
string
Example:
contact.pincode
placeholder
string
Example:
Pin code
dataType
string
Example:
TEXT
position
number
Example:
0
picklistOptions
array[string]
Example:
["first option"]
picklistImageOptions
array[string]
Example:
[]
isAllowedCustomOption
boolean
Example:
false
isMultiFileAllowed
boolean
Example:
true
maxFileLimit
number
Example:
4
locationId
string
Example:
3sv6UEo51C9Bmpo1cKTq
model
string

Model of the custom field

Allowed values:
contactopportunity
Example:
opportunity

Unprocessable Entity

statusCode
number
Example:
422
message
array[string]
Example:
["Unprocessable Entity"]
error
string
Example:
Unprocessable Entity

Unauthorized

statusCode
number
Example:
401
message
string
Example:
Invalid token: access token is invalid
error
string
Example:
Unauthorized

Bad Request

statusCode
number
Example:
400
message
string
Example:
Bad Request