Update a form

put

/api/rest/2.0/assets/form/{id}

Updates the form specified by the id parameter. All properties should be included in PUT requests, as some properties will be considered blank if not included.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the form to be updated.
Root Schema : Form
Type: object
Title: Form
Show Source
  • True if form is archived otherwise False. This is a read-only property.
  • Read Only: true
    The date and time the form was created, expressed in Unix time.
  • Read Only: true
    The login ID of the user who created the form.
  • The form's current status. Example: draft, active, or complete.
  • The custom style applied to the form.
  • FormFieldUpdateMapping
    Title: FormFieldUpdateMapping
  • Read Only: true
    Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: minimal, partial, and complete. Any other values passed are reset to complete by default. For more information, see Request depth.
  • The description of the form.
  • elements
    Array consisting of form elements.
  • The external integration URL used for integrating external forms.
  • Read Only: true
    The ID of the containing folder.
  • 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\"}.
  • The asset's raw HTML content.
  • The asset's raw HTML name.
  • Read Only: true
    Id of the form.
  • Indicates whether spam protection is enabled on the form.
  • 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.
  • 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.
  • The name of the form.
  • permissions
    The permissions for the form granted to your current instance. This is a read-only property.
  • 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.
  • A list of the form's processing types. For example: externalEmail, externalWebsite, internallyHosted, internalAgentProxyForm.
  • Read Only: true
    This property is not used.
  • Size
    Title: Size
  • Id of the source template.
  • The asset's main layout style.
  • The landing page ID of the failed submit.
  • The asset's type in Eloqua. This is a read-only property.
  • Read Only: true
    Unix timestamp for the date and time the form was last updated.
  • Read Only: true
    The login ID of the user that last updated the form.
Nested Schema : FormFieldUpdateMapping
Type: object
Title: FormFieldUpdateMapping
Show Source
Nested Schema : elements
Type: array
Array consisting of form elements.
Show Source
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
Nested Schema : Size
Type: object
Title: Size
Show Source
  • The height dimensions of the asset expressed in pixels.
  • The asset's type in Eloqua. This is a read-only property. The type for this property is 'size'.
  • 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: FormElement
Show Source
Nested Schema : permissions
Type: array
The permissions for the form element granted to your current instance.
Show Source
Nested Schema : FormProcessingStep
Type: object
Title: FormProcessingStep
Show Source
Nested Schema : ProcessingStepCondition
Type: object
Title: ProcessingStepCondition
Show Source
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
Nested Schema : FieldComparisonCriteria
Type: object
Title: FieldComparisonCriteria
Show Source
Nested Schema : Condition
Type: object
Title: Condition
Show Source
  • 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
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : Form
Type: object
Title: Form
Show Source
  • True if form is archived otherwise False. This is a read-only property.
  • Read Only: true
    The date and time the form was created, expressed in Unix time.
  • Read Only: true
    The login ID of the user who created the form.
  • The form's current status. Example: draft, active, or complete.
  • The custom style applied to the form.
  • FormFieldUpdateMapping
    Title: FormFieldUpdateMapping
  • Read Only: true
    Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: minimal, partial, and complete. Any other values passed are reset to complete by default. For more information, see Request depth.
  • The description of the form.
  • elements
    Array consisting of form elements.
  • The external integration URL used for integrating external forms.
  • Read Only: true
    The ID of the containing folder.
  • 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\"}.
  • The asset's raw HTML content.
  • The asset's raw HTML name.
  • Read Only: true
    Id of the form.
  • Indicates whether spam protection is enabled on the form.
  • 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.
  • 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.
  • The name of the form.
  • permissions
    The permissions for the form granted to your current instance. This is a read-only property.
  • 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.
  • A list of the form's processing types. For example: externalEmail, externalWebsite, internallyHosted, internalAgentProxyForm.
  • Read Only: true
    This property is not used.
  • Size
    Title: Size
  • Id of the source template.
  • The asset's main layout style.
  • The landing page ID of the failed submit.
  • The asset's type in Eloqua. This is a read-only property.
  • Read Only: true
    Unix timestamp for the date and time the form was last updated.
  • Read Only: true
    The login ID of the user that last updated the form.
Nested Schema : FormFieldUpdateMapping
Type: object
Title: FormFieldUpdateMapping
Show Source
Nested Schema : elements
Type: array
Array consisting of form elements.
Show Source
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
Nested Schema : Size
Type: object
Title: Size
Show Source
  • The height dimensions of the asset expressed in pixels.
  • The asset's type in Eloqua. This is a read-only property. The type for this property is 'size'.
  • 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: FormElement
Show Source
Nested Schema : permissions
Type: array
The permissions for the form element granted to your current instance.
Show Source
Nested Schema : FormProcessingStep
Type: object
Title: FormProcessingStep
Show Source
Nested Schema : ProcessingStepCondition
Type: object
Title: ProcessingStepCondition
Show Source
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
Nested Schema : FieldComparisonCriteria
Type: object
Title: FieldComparisonCriteria
Show Source
Nested Schema : Condition
Type: object
Title: Condition
Show Source
  • 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.
Back to Top

Examples

The following examples demonstrate how to update forms using an HTTP request and cURL. For more information on requests, see API requests.

HTTP Request Example

Update the name and processing type of the form with id#2:


PUT /api/REST/2.0/assets/form/2
Content-Type: application/json 
			

Request body:


{
  "id": "2",
  "name": "Form 01",
  "processingType": "externalWebsite"
}
			

Response:


{
  "type": "Form",
  "currentStatus": "Draft",
  "id": "2",
  "initialId": "2",
  "createdAt": "1418404077",
  "createdBy": "5",
  "depth": "complete",
  "folderId": "7",
  "name": "Form 01",
  "permissions": [
    "Retrieve",
    "SetSecurity",
    "Delete",
    "Update"
  ],
  "updatedAt": "1534172012",
  "updatedBy": "9",
  "archived": "false",
  "elements": [],
  "htmlName": "untitledForm-1418404075886",
  "processingSteps": [],
  "processingType": "externalWebsite",
  "style": "{\"fieldSize\":\"medium\",\"labelPosition\":\"top\"}"
}
			

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 PUT --data '{"id":"2","name":"Form 01","processingType":"externalWebsite",}' https://secure.p03.eloqua.com/api/rest/2.0/assets/form/2
			
Back to Top