2 Replies Latest reply on Jun 12, 2020 11:31 PM by Lou Patrick

    404 when trying to POST to assets/email/deployment

    user9102841

      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.