Unarchive an email

post

/api/rest/2.0/assets/email/{id}/unarchive

Unarchives the email specified by the ID parameter.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the parameters for unarchiving the email.
Root Schema : ArchiveParameter
Type: object
Title: ArchiveParameter
Show Source
  • The target folder to which the asset should be moved upon archive/unarchive. If not passed, the root folder will be used.
  • The asset's type in Eloqua. This is a read-only property.
Back to Top

Response

Supported Media Types

201 Response

Success.
Body ()
Root Schema : Email
Type: object
Title: Email
Show Source
Nested Schema : attachments
Type: array
A list of imported files.
Show Source
Nested Schema : contentSections
Type: array
A list of content sections contained within the email.
Show Source
Nested Schema : contentServiceInstances
Type: array
Show Source
Nested Schema : dynamicContents
Type: array
A list of dynamic contents contained within the email.
Show Source
Nested Schema : fieldMerges
Type: array
A list of associated Field Merges.
Show Source
Nested Schema : files
Type: array
A list of imported files.
Show Source
Nested Schema : forms
Type: array
A list of associated Form assets.
Show Source
Nested Schema : HtmlContent
Type: object
Title: HtmlContent
Show Source
Nested Schema : images
Type: array
A list of associated Image assets.
Show Source
Nested Schema : permissions
Type: array
The permissions for the email granted to your current instance. This is a read-only property.
Show Source
Nested Schema : ImportedFile
Type: object
Title: ImportedFile
Show Source
Nested Schema : permissions
Type: array
The permissions for the imported file granted to your current instance.
Show Source
Nested Schema : ContentSection
Type: object
Title: ContentSection
Show Source
Nested Schema : files
Type: array
A list of associated files.
Show Source
Nested Schema : forms
Type: array
A list of associated Form assets.
Show Source
Nested Schema : images
Type: array
A list of associated Image assets.
Show Source
Nested Schema : permissions
Type: array
The permissions for the content section granted to your current instance. This is a read-only property.
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 : 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 : 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
Nested Schema : Hyperlink
Type: object
Title: Hyperlink
Show Source
Nested Schema : permissions
Type: array
The permissions for the hyperlink granted to your current instance.
Show Source
Nested Schema : ImageFile
Type: object
Title: ImageFile
Show Source
Nested Schema : permissions
Type: array
The permissions for the image granted to your current instance. This is a read-only property.
Show Source
Nested Schema : CloudComponentInstance
Type: object
Title: CloudComponentInstance
Show Source
  • The status of the cloud content. Possible values include: Up, Down, and Maintenance.
  • The component id of the cloud content.
  • Read Only: true
    The configuration URL for the cloud content.
  • The modal size of the configuration window. Possible values are large or small.
  • The image url for an image that Eloqua will display in the editor's design surface. editorImageUrl is not a templated URL.
  • Whether or not the cloud content is configured. Possible values include: None, Installing, EnableProcess, Error, Ready, Disabled, DisabledError, MarkedForDeletion.
  • Title: System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
  • The cloud content's unique identifier.
  • Whether user configuration is required before the cloud content can be used. If set to true, users will be unable to save an email or landing page asset containing the unconfigured app service instance. Eloqua will display an error message.
  • The asset's type in Eloqua.
  • Title: System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
Nested Schema : DynamicContent
Type: object
Title: DynamicContent
Show Source
Nested Schema : permissions
Type: array
The permissions for the dynamic content granted to your current instance. This is a read-only property.
Show Source
Nested Schema : rules
Type: array
The dynamic content's rules.
Show Source
Nested Schema : DynamicContentRule
Type: object
Title: DynamicContentRule
Show Source
Nested Schema : criteria
Type: array
The criteria of the dynamic content rule.
Show Source
Nested Schema : Criterion
Type: object
Title: Criterion
Show Source
Nested Schema : permissions
Type: array
The permissions for the criterion granted to your current instance.
Show Source
Nested Schema : FieldMerge
Type: object
Title: FieldMerge
Show Source
Nested Schema : fieldConditions
Type: array
Array of field condition fields.
Show Source
Nested Schema : permissions
Type: array
The permissions for the field merge granted to your current instance.
Show Source
Nested Schema : FieldCondition
Type: object
Title: FieldCondition
Show Source
Nested Schema : permissions
Type: array
Show Source

304 Response

Not Modified. See Status Codes for information about other possible HTTP status codes.

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 unarchive an email using an HTTP request and cURL. For more information on requests, see API requests.

HTTP Request Example

Unarchive the email with id#2:


POST /api/REST/2.0/assets/email/2/unarchive
Content-Type: application/json 
			

Request body:

In this example we are specifying in the request body a folder we want the email to be moved into when restored. This is optional. If a targetFolderId is not specified, the email will be moved into the root folder.


{
  "targetFolderId": "4"
}
			

Response:


{
  "type": "Email",
  "currentStatus": "Draft",
  "id": "2",
  "createdAt": "1418671686",
  "depth": "minimal",
  "folderId": "4",
  "name": "Email to be unarchived",
  "permissions": [
    "Retrieve",
    "SetSecurity",
    "Delete",
    "Update"
  ],
  "updatedAt": "1420815547",
  "archived": "false",
  "htmlContent": {
    "type": "StructuredHtmlContent",
    "contentSource": "editor"
  }
}
			

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 '{"targetFolderId":"4"}' https://secure.p03.eloqua.com/api/rest/2.0/assets/email/2/unarchive
			
Back to Top