Skip to content

Update form

PUT
/v1/brands/{brandId}/forms/{formId}
curl --request PUT \
--url https://kynectlocal-production.up.railway.app/v1/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/forms/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
brandId
required
string format: uuid

Brand identifier

formId
required
string format: uuid

Success

Media type application/json
object
data
required
object
form
required
object
id
required

Form identifier

string format: uuid
brandId
required

Parent brand

string format: uuid
name
required

Form display name

string
slug
required

URL-safe form slug (used in public submit URL)

string
type
required

Form type

string
Allowed values: CONTACT LEAD_CAPTURE
fields
required

Form field definitions

Array<object>
object
name
required

Field identifier key

string
label
required

Field display label

string
type
required

Input type

string
Allowed values: text email phone textarea select
required
required

Whether the field is required

boolean
options

Options for select fields

Array<string>
notificationEmail
required

Notification recipient email

string | null
webhookUrl
required

Webhook URL for lead delivery

string | null
successMessage
required

Message shown after successful submission

string | null
successRedirectUrl
required

URL to redirect to after submission

string | null
isActive
required

Whether the form accepts submissions

boolean
leadCount

Number of leads collected (list view only)

integer
createdAt
required

Creation timestamp

string format: date-time
updatedAt
required

Last update timestamp

string format: date-time
Example
{
"data": {
"form": {
"type": "CONTACT",
"fields": [
{
"type": "text"
}
]
}
}
}

Validation error

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Unauthenticated

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Forbidden

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Not found

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Unprocessable

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}