Update a content section
put
/api/REST/1.0/assets/contentSection/{id}
Updates the content section 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
- application/json
Path Parameters
-
id(required): integer
Id of the content section.
The request body defines the details of the content section to be updated.
Root Schema : ContentSection
Type:
object
Title:
Show Source
ContentSection
-
contentHtml:
string
The content section's HTML content.
-
contentText:
string
The content section's text content.
-
createdAt:
string
Read Only:
true
The date and time the content section was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the content section. -
currentStatus:
string
The content section's current status. This is a read-only property.
-
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 content section.
-
forms:
array forms
A list of associated Form assets.
-
hyperlinks:
array hyperlinks
A list of hyperlinks contained within the content section.
-
id:
string
Read Only:
true
Id of the content section. This is a read-only property. -
images:
array images
A list of associated Image assets.
-
name:
string
The name of the content section.
-
permissions:
string
The permissions for the content section granted to your current instance. This is a read-only property.
-
scope:
string
The content sections's scope: either
local
orglobal
. -
size:
object Size
Title:
Size
-
type:
string
The content section's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the content section was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the content section.
Nested Schema : forms
Type:
array
A list of associated Form assets.
Show Source
-
Array of:
object Form
Title:
Form
Nested Schema : hyperlinks
Type:
array
A list of hyperlinks contained within the content section.
Show Source
-
Array of:
object Hyperlink
Title:
Hyperlink
Nested Schema : images
Type:
array
A list of associated Image assets.
Show Source
-
Array of:
object ImageFile
Title:
ImageFile
Nested 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. -
currentStatus:
string
The form's current status. Example: draft, active, or complete.
-
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.
-
emailAddressFormFieldId:
string
The email address form field entity's unique identifier.
-
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. This is a read-only property. -
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. -
name:
string
The name of the form.
-
permissions:
string
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.
-
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.
Nested Schema : elements
Type:
array
Array consisting of form elements.
Show Source
-
Array of:
object FormElement
Title:
FormElement
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 : 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. -
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.
-
id:
string
Read Only:
true
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:
string
The permissions for the form element granted to your current instance.
-
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.
Nested Schema : FormProcessingStep
Type:
object
Title:
Show Source
FormProcessingStep
-
conditionalComparator:
string
The comparator used to validate a condition. Possible values include:
exactly
ornot exactly
. -
conditionalFieldId:
string
The form field id used to compare form fields within a form processing step condition.
-
conditionalType:
string
The type of value the comparator is validating. Possible values include: 'form field' or 'static value'.
-
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. -
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
. -
id:
string
Read Only:
true
Id of the form processing step. This is a read-only property. -
isConditionallyNegated:
string
The conditions for which the processing step will execute. If
yes
, the processing step will execute when the conditions are met. Ifno
, the processing step will execute when the conditions are not met. -
name:
string
Name of the form processing step.
-
permissions:
string
The permissions for the form processing step granted to your current instance.
-
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.
Nested Schema : Hyperlink
Type:
object
Title:
Show Source
Hyperlink
-
createdAt:
string
Read Only:
true
The date and time the hyperlink was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the hyperlink. -
currentStatus:
string
The hyperlink'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 hyperlink.
-
href:
string
Href value of the hyperlink.
-
hyperlinkType:
string
The type of hyperlink. Possible values include: ExternalURL, ICSCalendarURL, LandingPageURL, ReferrerURL, RSSURL, or TrackedExternalURL.
-
id:
string
Read Only:
true
Id of the hyperlink. This is a read-only property. -
name:
string
Name of the hyperlink.
-
permissions:
string
The permissions for the hyperlink granted to your current instance.
-
referencedEntityId:
string
Id of the referenced entity.
-
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 hyperlink was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the hyperlink.
Nested Schema : ImageFile
Type:
object
Title:
Show Source
ImageFile
-
createdAt:
string
Read Only:
true
The date and time the image was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the image. -
currentStatus:
string
The image'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 image.
-
fullImageUrl:
string
The image's complete URL. This is a read-only property.
-
id:
string
Read Only:
true
Id of the image. This is a read-only property. -
name:
string
The name of the image.
-
permissions:
string
The permissions for the image granted to your current instance. This is a read-only property.
-
size:
object Size
Title:
Size
-
thumbnailUrl:
string
The image's thumbnail URL. 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 image was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the image.
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : ContentSection
Type:
object
Title:
Show Source
ContentSection
-
contentHtml:
string
The content section's HTML content.
-
contentText:
string
The content section's text content.
-
createdAt:
string
Read Only:
true
The date and time the content section was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the content section. -
currentStatus:
string
The content section's current status. This is a read-only property.
-
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 content section.
-
forms:
array forms
A list of associated Form assets.
-
hyperlinks:
array hyperlinks
A list of hyperlinks contained within the content section.
-
id:
string
Read Only:
true
Id of the content section. This is a read-only property. -
images:
array images
A list of associated Image assets.
-
name:
string
The name of the content section.
-
permissions:
string
The permissions for the content section granted to your current instance. This is a read-only property.
-
scope:
string
The content sections's scope: either
local
orglobal
. -
size:
object Size
Title:
Size
-
type:
string
The content section's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the content section was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the content section.
Nested Schema : forms
Type:
array
A list of associated Form assets.
Show Source
-
Array of:
object Form
Title:
Form
Nested Schema : hyperlinks
Type:
array
A list of hyperlinks contained within the content section.
Show Source
-
Array of:
object Hyperlink
Title:
Hyperlink
Nested Schema : images
Type:
array
A list of associated Image assets.
Show Source
-
Array of:
object ImageFile
Title:
ImageFile
Nested 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. -
currentStatus:
string
The form's current status. Example: draft, active, or complete.
-
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.
-
emailAddressFormFieldId:
string
The email address form field entity's unique identifier.
-
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. This is a read-only property. -
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. -
name:
string
The name of the form.
-
permissions:
string
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.
-
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.
Nested Schema : elements
Type:
array
Array consisting of form elements.
Show Source
-
Array of:
object FormElement
Title:
FormElement
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 : 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. -
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.
-
id:
string
Read Only:
true
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:
string
The permissions for the form element granted to your current instance.
-
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.
Nested Schema : FormProcessingStep
Type:
object
Title:
Show Source
FormProcessingStep
-
conditionalComparator:
string
The comparator used to validate a condition. Possible values include:
exactly
ornot exactly
. -
conditionalFieldId:
string
The form field id used to compare form fields within a form processing step condition.
-
conditionalType:
string
The type of value the comparator is validating. Possible values include: 'form field' or 'static value'.
-
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. -
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
. -
id:
string
Read Only:
true
Id of the form processing step. This is a read-only property. -
isConditionallyNegated:
string
The conditions for which the processing step will execute. If
yes
, the processing step will execute when the conditions are met. Ifno
, the processing step will execute when the conditions are not met. -
name:
string
Name of the form processing step.
-
permissions:
string
The permissions for the form processing step granted to your current instance.
-
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.
Nested Schema : Hyperlink
Type:
object
Title:
Show Source
Hyperlink
-
createdAt:
string
Read Only:
true
The date and time the hyperlink was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the hyperlink. -
currentStatus:
string
The hyperlink'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 hyperlink.
-
href:
string
Href value of the hyperlink.
-
hyperlinkType:
string
The type of hyperlink. Possible values include: ExternalURL, ICSCalendarURL, LandingPageURL, ReferrerURL, RSSURL, or TrackedExternalURL.
-
id:
string
Read Only:
true
Id of the hyperlink. This is a read-only property. -
name:
string
Name of the hyperlink.
-
permissions:
string
The permissions for the hyperlink granted to your current instance.
-
referencedEntityId:
string
Id of the referenced entity.
-
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 hyperlink was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the hyperlink.
Nested Schema : ImageFile
Type:
object
Title:
Show Source
ImageFile
-
createdAt:
string
Read Only:
true
The date and time the image was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the image. -
currentStatus:
string
The image'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 image.
-
fullImageUrl:
string
The image's complete URL. This is a read-only property.
-
id:
string
Read Only:
true
Id of the image. This is a read-only property. -
name:
string
The name of the image.
-
permissions:
string
The permissions for the image granted to your current instance. This is a read-only property.
-
size:
object Size
Title:
Size
-
thumbnailUrl:
string
The image's thumbnail URL. 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 image was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the image.
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
Update the name and the content html of the content section with Id #27:
PUT /api/REST/1.0/assets/contentSection/27
Content-Type: application/json
Request body:
{
"name":"New Content Section",
"id":"27",
"contentHtml":"<p>Hello world! This is some new text.</p>"
}
Response:
{
"type":"ContentSection",
"id":"27",
"initialId":"27",
"createdAt":"1434986539",
"createdBy":"19",
"depth":"complete",
"folderId":"320",
"name":"New Content Section",
"updatedAt":"1434986869",
"updatedBy":"19",
"contentHtml":"<p>Hello world! This is some new text.</p>",
"contentText":"Hello world! This is some new text.",
"forms":[],
"hyperlinks":[],
"images":[],
"scope":"global",
"size":{
"type":"Size",
"width":"0",
"height":"0"
}
}