0

I was going through the trailhead and found this topic.

REST API to UPDATE CONTENT builder email https://trailhead.salesforce.com/en/content/learn/modules/marketing-cloud-apis/use-rest-api-across-marketing-cloud?trail_id=develop-for-marketing-cloud

But can any one tell what I am doing wrong here!

enter image description here

enter image description here

  • 1
    Try removing the assetType object from your payload. It is unnecessary and cannot be written to in update – Gortonington Jan 8 at 13:49
  • Ah! once again Trailhead not accurate :( ...... Thanks @Gortonington it worked (y) ....... You can add this as an answer, also if it would be helpful if you can explain a bit why we need to REMOVE this section! in your answer. – Vishal Kumar C V Jan 9 at 6:49
1

Try removing the assetType object from your payload. It is unnecessary and cannot be written to in update

assetType is there to define what type of item it is. (E.g. is it an image? An email? Etc) which is not necessary when updating as all this is already done via the existing asset. This info is collected via the asset Id in the url.

Now it is tossing the error because once those properties are set on creation, they cannot be changed. This is to ensure security and prevent file/asset corruption by invalid formats, etc.

| improve this answer | |
  • Perfect! thanks for sharing the details!. – Vishal Kumar C V Jan 9 at 11:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.