0

Looking at the Marketing Cloud API (specifically the REST Reference), I can't seem to find anything that allows you to set the subject and body of an email. Is there some work around or way to do this?

I saw that there is the SimpleEmail Action in the Actions Developer Guide, is there something similar that I missed?

2

This is fairly well documented in the SFMC Content Builder API documentation as @EazyE has stated in comments.

Here is a quick sample of the payload for the REST call to build an asset:

{
  "name": "NTO Welcome Series Email",
  "channels": {
    "email": true,
    "web": false
  },
  "views": {
    "html": {
      "content": "<!DOCTYPE html><body>This is a simple message.</body></html>"
    },
    "text": {},
    "subjectline": {},
    "preheader": {}
  },
  "assetType": {
    "name": "templatebasedemail",
    "id": 207
   }
}

as well as some other examples in the documentation.

You would just change "subjectline": {} with your text, etc.

You can also check out my answer here for similar information.

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