I am trying to hit 'Update Email Content In Editable Section' API | Community
Skip to main content
December 25, 2015
Question

I am trying to hit 'Update Email Content In Editable Section' API

  • December 25, 2015
  • 2 replies
  • 3456 views

I am trying to update using type='DynamicContent'

My Request URI is:

{hostName}/rest/asset/v1/email/{emailId}/content/edit_text_1.json?type=DynamicContent&value={"type": "DynamicContent","segmentation": Default,"default": "Newalue"}

While Querying this API, I am getting following error while executing:

"errors": [

    {

      "code": "709",

      "message": "Email component is already associated with dynamic content. Disassociate first"

    }

  ]

Could anyone let me know what changes I need to do further.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

December 27, 2015

I am not sure, but perhaps the original email already has dynamic content set up within it.

December 30, 2015

I have used a segment named Geografical.

Case 1: If am attaching Subject, From Name to the Dynamic Content.

API is returning me following error

"errors": [

    {

      "code": "709",

      "message": "Segmentation not found, or it has been deleted"

    }

  ]

Case 2: If am attaching Section Name to the Dynamic Content.

API is returning me following error

"errors": [

    {

      "code": "709",

      "message": "Email component is already associated with dynamic content. Disassociate first"

    }

  ]

Please let me know what is the correct way to do this.

Thanks

Kenny_Elkington
Adobe Employee
Adobe Employee
January 4, 2016

When you use Update Email Content in Editable section, and set it to DC, you can't change the content with that specific call.  This only sets it to be a dynamic content section of a particular segmentation.  To update the actual content, you need to use Update Email Dynamic Content by ID: Update Email Dynamic Content by Id » Marketo Developers

Level 2
June 8, 2016

I am trying to do something similar however, I am trying to update a snippet within an email. There is a current snippet ID within my email, but I want to dynamically change that snippet ID to be a different snippet ID is this possible? When I try to do it, I am getting this error:

"code" => "709"
  "message" => "Email component is already associated with Snippet. Disassociate first"
Any help would be great. Thanks.

Kenny_Elkington
Adobe Employee
Adobe Employee
June 9, 2016

It looks like you need to switch the type of the content section prior to changing it to a new snippet.  I'll check with the eng team on why it was done this way.