0 Replies Latest reply on Dec 25, 2015 2:56 AM by e876511c3ee52f180d8e8d023174e5a4806ff480

    Could Not Discard Email Draft By ID via REST API.

      Hi,

       

      I am working on integration of Marketo using REST API, in which I was trying to Discard Email by using Id of the email. I referred Discard Email Draft by Id » Marketo Developers API documentation for Discarding Email Draft. But unfortunately it was throwing below error :

       

      API Request: POST https://XXXXX.mktorest.com:443/rest/asset/v1/email/1027/discardDraft.json

      API Response:

      "errors": [

              {

                  "code": "702",

                  "message": "Email with draft status not found"

              }

          ]

       

      As per the API response Email 1027 with status as draft not found, but surprisingly when I tried to retrieve emails I found 1027 in "draft".

      Please find the snapshot for the GET Email response below:

       

      Capture.PNG

       

      Has anybody faced same issue or Am I missing something while discarding draft for Email?

       

      Thanks