Discussions

404 when trying to POST to assets/email/deployment

user9102841
user9102841 Posts: 2
edited Jun 12, 2020 7:31PM in Developer Tools

Hello All,

I am an experienced developer, but a n00b to Eloqua. I am building a service that recieves a POST from Eloqua, creates user accounts on external systems based on the form the fill out, and then sends an email with their connection information. I am able to get my base_url and create an email, but in both Postman and Python, everytime I try to send that email, I get a 404.JS

JSON

{ "type": "EmailTestDeployment", "name": "subject", "contactId": "666", "email": {    "type": "Email",    "id": "30585",    "name": "subject" }, "sendOptions": {    "allowResend": "true",    "allowSendToUnsubscribe": "false" }}

URL

https://secure.p01.eloqua.com/api/REST/2.0/assets/email/deployment

RAW OUTPUT

POST /api/REST/2.0/assets/email/deployment HTTP/1.1

Authorization: Basic xxxx

Content-Type: application/json

User-Agent: PostmanRuntime/7.24.1

Accept: */*

Cache-Control: no-cache

Postman-Token: c7001ab2-c0bf-4fbe-b45c-1e2470bb65bf

Host: secure.p01.eloqua.com

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Content-Length: 281

{

  "type": "EmailTestDeployment",

  "name": "subject",

  "contactId": "666",

  "email": {

  "type": "Email",

  "id": "30585",

  "name": "subject"

  },

  "sendOptions": {

  "allowResend": "true",

  "allowSendToUnsubscribe": "false"

  }

}

HTTP/1.1 404 Object Not Found (id: 0)

Cache-Control: private,no-cache, no-store

Pragma: no-cache

Content-Type: application/json

Expires: -1

X-Request-Id: d47cd858d4f24d5a8a1723ad835b7d84/25244572686

P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",

X-Content-Type-Options: nosniff

Strict-Transport-Security: max-age=31536000; includeSubDomains

Date: Fri, 05 Jun 2020 23:44:42 GMT

Content-Length: 0

Any direction would be much appreciated. I'm at a loss.

Post edited by Unknown User on

Answers

  • user9102841
    user9102841 Posts: 2
    edited Jun 8, 2020 1:29PM

    I am trying to troubleshoot this. When I create the email, it returns with a currentStatus of "Draft". This is what the sample shows, however, I am wondering if I have to change this to some other status? I can't seem to find any API that says currentStatus is anything but read-only. Any help would be much appreciated.

  • Lou Patrick
    Lou Patrick Posts: 190 Gold Badge
    edited Jun 12, 2020 7:31PM

    Regarding the 404, I have not seen this as a response to the email deployment endpoint. Are you able to successfully make requests to other endpoints?

    Regarding currentStatus, that will only change if the email is in a Campaign that has a status other than Draft.

Sign In or Register to comment.