Create a form
post
/api/rest/2.0/assets/form
Creates a form that matches the criteria specified by the request body.
Request
Supported Media Types
- application/json
The request body defines the details of the form to be created.
Root Schema : Form
Type:
object
Title:
Show Source
Form
-
archived:
string
True if form is archived otherwise False. This is a read-only property.
-
createdAt:
string
Read Only:
true
The date and time the form was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login ID of the user who created the form. -
createdByName:
string
The name of the user who created the form.
-
currentStatus:
string
The form's current status. Example: draft, active, or complete.
-
customCSS:
string
The custom style applied to the form.
-
defaultKeyFieldMapping:
object FormFieldUpdateMapping
Title:
FormFieldUpdateMapping
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the form.
-
elements:
array elements
Array consisting of form elements.
-
externalIntegrationUrl:
string
The external integration URL used for integrating external forms.
-
folderId:
string
Read Only:
true
The ID of the containing folder. -
formJson:
string
Form metadata in JSON. Applicable only to responsive forms. Not required to be set when creating and updating forms. We recommend omitting this parameter when creating and updating forms, and letting Eloqua set it by default. When creating a form and including this parameter, this must be set to
{\"type\":\"responsiveForm\",\"version\":\"1\"}
. -
html:
string
The asset's raw HTML content.
-
htmlName:
string
The asset's raw HTML name.
-
id:
string
Read Only:
true
Id of the form. -
isFormSpamProtectionEnabled:
string
Indicates whether spam protection is enabled on the form.
-
isHidden:
string
Whether the form is an internal form. If true, the form is not exposed outside of Eloqua and any form submissions to this form are deleted.
-
isResponsive:
string
Indicates whether the form is responsive. Returns
true
for a responsive form,false
for a legacy form. Avoid sending this property when creating and updating forms. This is a read-only property. -
name:
string
The name of the form.
-
permissions:
array permissions
The permissions for the form granted to your current instance. This is a read-only property.
-
processingSteps:
array processingSteps
A list of the form's processing steps. There is no limit to the number of processing steps that can be included. Possible values include: FormStepAddToCampaign, FormStepAddToContactList, FormStepAddToDataCanvas, FormStepAddToProgram, FormStepAssociateToCampaign, FormStepCancelRegistration, FormStepUpdateContactEmailAddress, FormStepCreateUpdateEventRegistration, FormStepCreateUpdate, FormStepCreateUpdateFromFormField, FormStepGlobalSubscribe, FormStepGlobalUnsubscribe, FormStepGroupSubscription, FormStepPostData, FormStepRedirectToWebPage, FormStepRemoveFromContactList, FormStepRunIntegrationRules, FormStepSendEmail, FormStepSendNotificationEmail, FormStepWebTracking, FormStepGlobalSubscribe, and FormStepSmsPhoneNumberOptInOptOut.
-
processingType:
string
A list of the form's processing types. For example: externalEmail, externalWebsite, internallyHosted, internalAgentProxyForm.
-
scheduledFor:
string
Read Only:
true
This property is not used. -
size:
object Size
Title:
Size
-
sourceTemplateId:
string
Id of the source template.
-
style:
string
The asset's main layout style.
-
submitFailedLandingPageId:
string
The landing page ID of the failed submit.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form was last updated. -
updatedBy:
string
Read Only:
true
The login ID of the user that last updated the form. -
updatedByName:
string
The name of the user who last updated the form.
Nested Schema : FormFieldUpdateMapping
Type:
object
Title:
Show Source
FormFieldUpdateMapping
-
createdAt:
string
Read Only:
true
The date and time the form field update mapping was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the form field update mapping. -
createdByName:
string
The name of the user who created the form field update mapping.
-
currentStatus:
string
The form field update mapping's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the field comparison criteria.
-
folderId:
string
Read Only:
true
Id of the folder. This is a read-only property. -
id:
string
Read Only:
true
Id of the form field update mapping. -
name:
string
The name of the form field update mapping.
-
permissions:
array permissions
The permissions for the form field update mapping granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
The date and time the form field update mapping is scheduled. -
sourceFormFieldId:
string
Id of the source form field.
-
sourceTemplateId:
string
Id of the source template. This is a read-only property.
-
targetEntityFieldId:
string
Id of the target field.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form field update mapping was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the form field update mapping. -
updatedByName:
string
The name of the user who last updated the form field update mapping.
-
updateType:
string
The update type of the form field update mapping.
Nested Schema : elements
Type:
array
Array consisting of form elements.
Show Source
-
Array of:
object FormElement
Title:
FormElement
Nested Schema : permissions
Type:
array
The permissions for the form granted to your current instance. This is a read-only property.
Show Source
Nested Schema : processingSteps
Type:
array
A list of the form's processing steps. There is no limit to the number of processing steps that can be included. Possible values include: FormStepAddToCampaign, FormStepAddToContactList, FormStepAddToDataCanvas, FormStepAddToProgram, FormStepAssociateToCampaign, FormStepCancelRegistration, FormStepUpdateContactEmailAddress, FormStepCreateUpdateEventRegistration, FormStepCreateUpdate, FormStepCreateUpdateFromFormField, FormStepGlobalSubscribe, FormStepGlobalUnsubscribe, FormStepGroupSubscription, FormStepPostData, FormStepRedirectToWebPage, FormStepRemoveFromContactList, FormStepRunIntegrationRules, FormStepSendEmail, FormStepSendNotificationEmail, FormStepWebTracking, FormStepGlobalSubscribe, and FormStepSmsPhoneNumberOptInOptOut.
Show Source
-
Array of:
object FormProcessingStep
Title:
FormProcessingStep
Nested Schema : Size
Type:
object
Title:
Show Source
Size
-
height:
string
The height dimensions of the asset expressed in pixels.
-
type:
string
The asset's type in Eloqua. This is a read-only property. The type for this property is 'size'.
-
width:
string
The width dimensions of the asset expressed in pixels.
Nested Schema : permissions
Type:
array
The permissions for the form field update mapping granted to your current instance. This is a read-only property.
Show Source
Nested Schema : FormElement
Type:
object
Title:
Show Source
FormElement
-
createdAt:
string
Read Only:
true
The date and time the form element was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login ID of the user who created the form element. -
createdByName:
string
The name of the user who created the form element.
-
currentStatus:
string
The form element's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the form element.
-
folderId:
string
Read Only:
true
The ID of the associated folder. -
id:
string
Read Only:
true
The ID of the form element. This is a read-only property. -
instructions:
string
The form element's field instructions. Field instructions are optional instructions that help users fill in fields.
-
name:
string
Name of the form element.
-
permissions:
array permissions
The permissions for the form element granted to your current instance.
-
scheduledFor:
string
Read Only:
true
The date the form element is scheduled. -
sourceTemplateId:
string
The ID of the form element.
-
style:
string
The asset's main layout style.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form element was last updated. -
updatedBy:
string
Read Only:
true
The login ID of the user that last updated the form element. -
updatedByName:
string
The name of the user who last updated the form element.
Nested Schema : permissions
Type:
array
The permissions for the form element granted to your current instance.
Show Source
Nested Schema : FormProcessingStep
Type:
object
Title:
Show Source
FormProcessingStep
-
condition:
object ProcessingStepCondition
Title:
ProcessingStepCondition
-
createdAt:
string
Read Only:
true
The date and time the form processing step was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login ID of the user who created the form processing step. -
createdByName:
string
The name of the user who created the form processing step.
-
currentStatus:
string
The form processing step's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the form processing step.
-
execute:
string
The conditions for which this form processing step will execute. Possible values include:
always
,conditionally
, andnever
. -
folderId:
string
Read Only:
true
Id of the associated folder. -
hasValidationIssue:
string
ProcessingStep_Field_HasValidationIssue_Description
-
id:
string
Read Only:
true
Id of the form processing step. This is a read-only property. -
name:
string
Name of the form processing step.
-
permissions:
array permissions
The permissions for the form processing step granted to your current instance.
-
scheduledFor:
string
Read Only:
true
The date the form processing step is scheduled. -
sourceTemplateId:
string
The ID of the source template.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form processing step was last updated. -
updatedBy:
string
Read Only:
true
The login ID of the user that last updated the form processing step. -
updatedByName:
string
The name of the user who last updated the form processing step.
Nested Schema : ProcessingStepCondition
Type:
object
Title:
Show Source
ProcessingStepCondition
-
conditionalFieldCriteria:
array conditionalFieldCriteria
The conditional field criteria for the form processing step condition.
-
isConditionallyNegated:
string
The conditions for which the processing step will execute. If yes, the processing step will execute when the conditions are met. If no, the processing step will execute when the conditions are not met.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
Nested Schema : permissions
Type:
array
The permissions for the form processing step granted to your current instance.
Show Source
Nested Schema : conditionalFieldCriteria
Type:
array
The conditional field criteria for the form processing step condition.
Show Source
-
Array of:
object FieldComparisonCriteria
Title:
FieldComparisonCriteria
Nested Schema : FieldComparisonCriteria
Type:
object
Title:
Show Source
FieldComparisonCriteria
-
condition:
object Condition
Title:
Condition
-
createdAt:
string
Read Only:
true
The date and time the field comparison criteria was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the field comparison criteria. -
createdByName:
string
The name of the user who created the field comparison criteria.
-
currentStatus:
string
The field comparison criteria's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the field comparison criteria.
-
fieldId:
string
The id of the field comparison criteria.
-
folderId:
string
Read Only:
true
Id of the folder. This is a read-only property. -
id:
string
Read Only:
true
Id of the field comparison criteria. -
name:
string
The name of the field comparison criteria.
-
permissions:
array permissions
The permissions for the field comparison criteria granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
The date and time the field comparison criteria is scheduled. -
sourceTemplateId:
string
Id of the source template. This is a read-only property.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the field comparison criteria was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the field comparison criteria. -
updatedByName:
string
The name of the user who last updated the field comparison criteria.
Nested Schema : Condition
Type:
object
Title:
Show Source
Condition
-
type:
string
The asset's type in Eloqua. This is a read-only property.
Nested Schema : permissions
Type:
array
The permissions for the field comparison criteria granted to your current instance. This is a read-only property.
Show Source
Response
Supported Media Types
- application/json
201 Response
Success.
Root Schema : Form
Type:
object
Title:
Show Source
Form
-
archived:
string
True if form is archived otherwise False. This is a read-only property.
-
createdAt:
string
Read Only:
true
The date and time the form was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login ID of the user who created the form. -
createdByName:
string
The name of the user who created the form.
-
currentStatus:
string
The form's current status. Example: draft, active, or complete.
-
customCSS:
string
The custom style applied to the form.
-
defaultKeyFieldMapping:
object FormFieldUpdateMapping
Title:
FormFieldUpdateMapping
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the form.
-
elements:
array elements
Array consisting of form elements.
-
externalIntegrationUrl:
string
The external integration URL used for integrating external forms.
-
folderId:
string
Read Only:
true
The ID of the containing folder. -
formJson:
string
Form metadata in JSON. Applicable only to responsive forms. Not required to be set when creating and updating forms. We recommend omitting this parameter when creating and updating forms, and letting Eloqua set it by default. When creating a form and including this parameter, this must be set to
{\"type\":\"responsiveForm\",\"version\":\"1\"}
. -
html:
string
The asset's raw HTML content.
-
htmlName:
string
The asset's raw HTML name.
-
id:
string
Read Only:
true
Id of the form. -
isFormSpamProtectionEnabled:
string
Indicates whether spam protection is enabled on the form.
-
isHidden:
string
Whether the form is an internal form. If true, the form is not exposed outside of Eloqua and any form submissions to this form are deleted.
-
isResponsive:
string
Indicates whether the form is responsive. Returns
true
for a responsive form,false
for a legacy form. Avoid sending this property when creating and updating forms. This is a read-only property. -
name:
string
The name of the form.
-
permissions:
array permissions
The permissions for the form granted to your current instance. This is a read-only property.
-
processingSteps:
array processingSteps
A list of the form's processing steps. There is no limit to the number of processing steps that can be included. Possible values include: FormStepAddToCampaign, FormStepAddToContactList, FormStepAddToDataCanvas, FormStepAddToProgram, FormStepAssociateToCampaign, FormStepCancelRegistration, FormStepUpdateContactEmailAddress, FormStepCreateUpdateEventRegistration, FormStepCreateUpdate, FormStepCreateUpdateFromFormField, FormStepGlobalSubscribe, FormStepGlobalUnsubscribe, FormStepGroupSubscription, FormStepPostData, FormStepRedirectToWebPage, FormStepRemoveFromContactList, FormStepRunIntegrationRules, FormStepSendEmail, FormStepSendNotificationEmail, FormStepWebTracking, FormStepGlobalSubscribe, and FormStepSmsPhoneNumberOptInOptOut.
-
processingType:
string
A list of the form's processing types. For example: externalEmail, externalWebsite, internallyHosted, internalAgentProxyForm.
-
scheduledFor:
string
Read Only:
true
This property is not used. -
size:
object Size
Title:
Size
-
sourceTemplateId:
string
Id of the source template.
-
style:
string
The asset's main layout style.
-
submitFailedLandingPageId:
string
The landing page ID of the failed submit.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form was last updated. -
updatedBy:
string
Read Only:
true
The login ID of the user that last updated the form. -
updatedByName:
string
The name of the user who last updated the form.
Nested Schema : FormFieldUpdateMapping
Type:
object
Title:
Show Source
FormFieldUpdateMapping
-
createdAt:
string
Read Only:
true
The date and time the form field update mapping was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the form field update mapping. -
createdByName:
string
The name of the user who created the form field update mapping.
-
currentStatus:
string
The form field update mapping's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the field comparison criteria.
-
folderId:
string
Read Only:
true
Id of the folder. This is a read-only property. -
id:
string
Read Only:
true
Id of the form field update mapping. -
name:
string
The name of the form field update mapping.
-
permissions:
array permissions
The permissions for the form field update mapping granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
The date and time the form field update mapping is scheduled. -
sourceFormFieldId:
string
Id of the source form field.
-
sourceTemplateId:
string
Id of the source template. This is a read-only property.
-
targetEntityFieldId:
string
Id of the target field.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form field update mapping was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the form field update mapping. -
updatedByName:
string
The name of the user who last updated the form field update mapping.
-
updateType:
string
The update type of the form field update mapping.
Nested Schema : elements
Type:
array
Array consisting of form elements.
Show Source
-
Array of:
object FormElement
Title:
FormElement
Nested Schema : permissions
Type:
array
The permissions for the form granted to your current instance. This is a read-only property.
Show Source
Nested Schema : processingSteps
Type:
array
A list of the form's processing steps. There is no limit to the number of processing steps that can be included. Possible values include: FormStepAddToCampaign, FormStepAddToContactList, FormStepAddToDataCanvas, FormStepAddToProgram, FormStepAssociateToCampaign, FormStepCancelRegistration, FormStepUpdateContactEmailAddress, FormStepCreateUpdateEventRegistration, FormStepCreateUpdate, FormStepCreateUpdateFromFormField, FormStepGlobalSubscribe, FormStepGlobalUnsubscribe, FormStepGroupSubscription, FormStepPostData, FormStepRedirectToWebPage, FormStepRemoveFromContactList, FormStepRunIntegrationRules, FormStepSendEmail, FormStepSendNotificationEmail, FormStepWebTracking, FormStepGlobalSubscribe, and FormStepSmsPhoneNumberOptInOptOut.
Show Source
-
Array of:
object FormProcessingStep
Title:
FormProcessingStep
Nested Schema : Size
Type:
object
Title:
Show Source
Size
-
height:
string
The height dimensions of the asset expressed in pixels.
-
type:
string
The asset's type in Eloqua. This is a read-only property. The type for this property is 'size'.
-
width:
string
The width dimensions of the asset expressed in pixels.
Nested Schema : permissions
Type:
array
The permissions for the form field update mapping granted to your current instance. This is a read-only property.
Show Source
Nested Schema : FormElement
Type:
object
Title:
Show Source
FormElement
-
createdAt:
string
Read Only:
true
The date and time the form element was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login ID of the user who created the form element. -
createdByName:
string
The name of the user who created the form element.
-
currentStatus:
string
The form element's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the form element.
-
folderId:
string
Read Only:
true
The ID of the associated folder. -
id:
string
Read Only:
true
The ID of the form element. This is a read-only property. -
instructions:
string
The form element's field instructions. Field instructions are optional instructions that help users fill in fields.
-
name:
string
Name of the form element.
-
permissions:
array permissions
The permissions for the form element granted to your current instance.
-
scheduledFor:
string
Read Only:
true
The date the form element is scheduled. -
sourceTemplateId:
string
The ID of the form element.
-
style:
string
The asset's main layout style.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form element was last updated. -
updatedBy:
string
Read Only:
true
The login ID of the user that last updated the form element. -
updatedByName:
string
The name of the user who last updated the form element.
Nested Schema : permissions
Type:
array
The permissions for the form element granted to your current instance.
Show Source
Nested Schema : FormProcessingStep
Type:
object
Title:
Show Source
FormProcessingStep
-
condition:
object ProcessingStepCondition
Title:
ProcessingStepCondition
-
createdAt:
string
Read Only:
true
The date and time the form processing step was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login ID of the user who created the form processing step. -
createdByName:
string
The name of the user who created the form processing step.
-
currentStatus:
string
The form processing step's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the form processing step.
-
execute:
string
The conditions for which this form processing step will execute. Possible values include:
always
,conditionally
, andnever
. -
folderId:
string
Read Only:
true
Id of the associated folder. -
hasValidationIssue:
string
ProcessingStep_Field_HasValidationIssue_Description
-
id:
string
Read Only:
true
Id of the form processing step. This is a read-only property. -
name:
string
Name of the form processing step.
-
permissions:
array permissions
The permissions for the form processing step granted to your current instance.
-
scheduledFor:
string
Read Only:
true
The date the form processing step is scheduled. -
sourceTemplateId:
string
The ID of the source template.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the form processing step was last updated. -
updatedBy:
string
Read Only:
true
The login ID of the user that last updated the form processing step. -
updatedByName:
string
The name of the user who last updated the form processing step.
Nested Schema : ProcessingStepCondition
Type:
object
Title:
Show Source
ProcessingStepCondition
-
conditionalFieldCriteria:
array conditionalFieldCriteria
The conditional field criteria for the form processing step condition.
-
isConditionallyNegated:
string
The conditions for which the processing step will execute. If yes, the processing step will execute when the conditions are met. If no, the processing step will execute when the conditions are not met.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
Nested Schema : permissions
Type:
array
The permissions for the form processing step granted to your current instance.
Show Source
Nested Schema : conditionalFieldCriteria
Type:
array
The conditional field criteria for the form processing step condition.
Show Source
-
Array of:
object FieldComparisonCriteria
Title:
FieldComparisonCriteria
Nested Schema : FieldComparisonCriteria
Type:
object
Title:
Show Source
FieldComparisonCriteria
-
condition:
object Condition
Title:
Condition
-
createdAt:
string
Read Only:
true
The date and time the field comparison criteria was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the field comparison criteria. -
createdByName:
string
The name of the user who created the field comparison criteria.
-
currentStatus:
string
The field comparison criteria's current status.
-
depth:
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description:
string
The description of the field comparison criteria.
-
fieldId:
string
The id of the field comparison criteria.
-
folderId:
string
Read Only:
true
Id of the folder. This is a read-only property. -
id:
string
Read Only:
true
Id of the field comparison criteria. -
name:
string
The name of the field comparison criteria.
-
permissions:
array permissions
The permissions for the field comparison criteria granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
The date and time the field comparison criteria is scheduled. -
sourceTemplateId:
string
Id of the source template. This is a read-only property.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the field comparison criteria was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the field comparison criteria. -
updatedByName:
string
The name of the user who last updated the field comparison criteria.
Nested Schema : Condition
Type:
object
Title:
Show Source
Condition
-
type:
string
The asset's type in Eloqua. This is a read-only property.
Nested Schema : permissions
Type:
array
The permissions for the field comparison criteria granted to your current instance. This is a read-only property.
Show Source
400 Response
Bad request. See Status Codes for information about other possible HTTP status codes.
401 Response
Unauthorized. See Status Codes for information about other possible HTTP status codes.
403 Response
Forbidden. See Status Codes for information about other possible HTTP status codes.
404 Response
The requested resource was not found. See Status Codes for information about other possible HTTP status codes.
500 Response
The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Examples
The following examples demonstrate how to create forms using an HTTP request and cURL. For more information on requests, see API requests.
HTTP Request Example
Create a new external email form asset including one new form field:
POST /api/REST/2.0/assets/form
Content-Type: application/json
Request body:
{
"name": "New Email Form",
"elements": [
{
"type": "FormField",
"name": "Favorite color.",
"style": "{\"fieldSize\":\"large\",\"labelPosition\":\"top\"}",
"dataType": "text",
"displayType": "text",
"htmlName": "favCol"
}
],
"processingType": "externalEmail"
}
Response:
{
"type": "Form",
"currentStatus": "Draft",
"id": "61",
"createdAt": "1534799062",
"createdBy": "11",
"depth": "complete",
"folderId": "7",
"name": "New Email Form",
"permissions": [
"Retrieve",
"SetSecurity",
"Delete",
"Update"
],
"updatedAt": "1534799062",
"updatedBy": "11",
"archived": "false",
"elements": [
{
"type": "FormField",
"id": "355",
"name": "Favorite color.",
"style": "{\"fieldSize\":\"large\",\"labelPosition\":\"top\"}",
"dataType": "text",
"displayType": "text",
"htmlName": "favCol",
"useGlobalSubscriptionStatus": "False",
"validations": [
]
}
],
"processingSteps": [],
"processingType": "externalEmail"
}
cURL Example
Here is the same example in cURL given an instance with the name APITest
, username API.User
, and POD of 3
.
curl --user "APITest\API.User" --header "Content-Type: application/json" --request POST --data '{"name":"New Email Form","elements":[{"type":"FormField","name":"Favorite color.","style":"{\"fieldSize\":\"large\",\"labelPosition\":\"top\"}","dataType":"text","displayType":"text","htmlName":"favCol"],"processingType":"externalEmail",}' https://secure.p03.eloqua.com/api/rest/2.0/assets/form