REST API - POST: / data/Objetpersonnalise / {id}

Is there a specific documentation describes to the REST API - data object customPOST call?


I tried a few different ways to call it without success, some of which are described below.


This is the custom, object that I work with:

Table

(

[type] = > Objetpersonnalise

[id] = > 19

[depth] = > full

[description] = > custom Description of object

[name] = > custom Elomentary Test object

[fields] = > Array

(

[0] = > array

(

[type] = > CustomObjectField

[id] = > 131

[depth] = > full

[name] = > testing a ground

[type] = > text

[displayType] = > text

[internalName] = > Test_field_one1

)

[1] = > array

(

[type] = > CustomObjectField

[id] = > 132

[depth] = > full

[name] = > two field Test

[type] = > text

[displayType] = > text

[internalName] = > Test_field_two1

)

)

)

I tried a few different methods to make this request, but I'll try to refrain from posting a wall of the code, and I'll put everything that I think is most close to being correct based on some examples to

Looking at the test customObjectData-helper to, eloqua-samples/customObjectData-helper/CustomObjectDataTests to fredsakr/eloqua-samples of master · GitHub

Request URL: https://secure.p03.eloqua.com/api/rest/2.0/data/customObject/19

The raw request:

POST /api/rest/2.0/data/customObject/19 HTTP/1.1

Host: secure.p03.eloqua.com

User-Agent: Elomentary (http://github.com/tableau-mkt/elomentary)

Content-Type: application/json

Content-Length: 90

{"fieldValues can only be": [{'id': 131, 'value': 'testing123'}, {'id': 132, "value": "alkfjsaldkjfasldjka"}]}

And the response headers:

HTTP/1.1 404 not found

Cache-Control: private

Content-Length: 1565

Content-Type: text/html; Charset = UTF-8

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

Date: Tuesday, July 29, 2014 14:32:22 GMT

cannot get property

The body of the response:

<? XML version = "1.0" encoding = "utf-8"? >

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

" < html xmlns =" http://www.w3.org/1999/xhtml ">

< head >

< title > < /title > Service

< style > < / style >

< / head >

< body >

< div id = "content" >

< class p = "title 1" > Service < /p >

< p > endpoint could not be found. < /p >

< / div >

< / body >

< / html >

Parris,

Endpoint for the creation of object (custom p03) data seems to have been replaced by:

POST Api/rest/1.0/data/customObject/{customObjectId}

Endpoint you are trying to use has worked before. I don't know what happened... I found this useful documentation:

https://secure.P03.Eloqua.com/API/docs/dynamic/rest/1.0/reference.aspx

Jason Kay

Tags: Marketers

Similar Questions

  • Get the emails in descending order of creation date. [REST API]

    Hello I am trying to GET emaiils of the REST API in order descending creation date. So far, my URL params look like:

    emails/assets /? Search = * BN * & page = 1 & number = 50 & depth minimum = & orderBy = converted

    This seems to put in ascending order. I wonder if I can specify the order? I noticed for the contacts there is a sorting = {sortOn} & dir = desc, so is it possible

    to do with e-mails? I tried to join the above URL & dir = desc but not luck and assuming that he only is not supported from this page http://topliners.eloqua.com/docs/DOC-3083.

    Yes I can reverse my logic in the program from the end of emails received, but I wonder if I can simply specify order emails using the REST API?

    Please let me know and thank you.

    Hi John,.

    To sort by a column name, such as the 'name' field, you can simply add the following query string parameters: & orderBy = name % 20desc

    The sort directions are: asc | / / DESC

    We will share a post soon to describe how to do this. The API should support the "dir" query string argument, but it doesn't seem to work. We will look into it as well.

    Hope this helps,

    Fred

  • How to pass the elqCustomerGUID as well as data of form through the rest API?

    Hey everybody,

    We have our own installer of forms on our front-end server.  We take this data with the basting eloqua (elqCustomerGUID) id and pass it on to our backend.  We then use the Eloqua Rest API to send the form data to Eloqua.  The problem is that I can not understand how to properly send the elqCustomerGUID so that it binds a contact to the the ID.  Need this to display the tracking page to work.

    According to the data of the shipment, it works perfectly - map us the values of their corresponding form ID field and send it.

    Any help would be appreciated!

    Thank you

    Chris

    I just finished using the CURL approach to imitate the real form post that Eloqua uses.  If you look at the html code of the form, you can see the fields, it took:

    elqFormName, elqCustomerGUID, elqCookieWrite, elqSiteID

    and then the htmlNames in any other field that the form is intended.

    If you post all what to "http://s«.$elqSiteID.".t.eloqua.com/e/f2 "in a tone of param query normal-online configuration of the value, it will count as if you clicked on submit on the real shape."

    Hope that helps! If you have any questions just shoot me a message.

  • POST CURL with vCO 5.1 REST API

    I am trying to invoke a vco workflow by using the 5.1 REST API through curl. I could do GET without any issue; but POST always gives me the 400 bad request error below. I want to use json instead of xml, so I passed in "Content-Type: application/json". I am using windows curl.

    Initially I tried to create a settings file to json with "-d @filename"; It gives the same error.

    If someone could tell what is wrong with my syntax? Thank you.

    curl-i k - vcoadmin:vcoadmin of the user x POST h ' Content-Type: application / json ' https://192.168.1.7:8281 / api/stream/dec0e608 - 8 b 8
    3 4e32-8825-3e77ef31c4d7/presentation/instances - d '{} '.

    HTTP/1.1 400 Bad Request
    Content-Type: text/html; charset = utf-8

    Content-Length: 965
    Date: Tuesday, March 5, 2013 02:31:19 GMT
    Connection: close
    Server: vCO Server

    < html > < head > < title > JBossWeb/2.0.1.GA - error report < / title > < style > <!-H1 {make-f
    amily:Tahoma, Arial, without serif; color: white; background-color: # 525-76; font-size: 22 p
    x ;} H2 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76}
    do-size: 16px ;} H3 {do-family: Tahoma, Arial, without serif; color: white; background}
    -color: # 525 76; do-size: 14px ;} BODY {do-family: Tahoma, Arial, without serif; color:}
    Black; background-color: white ;} B {do-family: Tahoma, Arial, without serif; color: whit}
    e; background-color: # 525 76 ;} P {do-family: Tahoma, Arial, without serif; background: w}
    Hite; color: black; do-size: 12px ;} A {color: black ;}} B.SID {color: black ;}} HR {co
    Lor: # 525 76 ;} --> < / style > < / head > < body > < h1 > State HTTP 400 - < / h1 > < HR size = "1".
    NoShade = "noshade" > < p > < b > enter < /b > < /p > < p > < b > report message < /b > < u > < / u > < / p > <
    p > < b > description < /b > < u > the request sent by the client was syntactically incorr
    (CT). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 JBossWeb/2.0.1.GA > < / h3 > < body / > < /.
    HTML >

    Hi jiang.

    Could you try without the quotes around the parameter d data?

    curl-i k - vcoadmin:vcoadmin of the user x POST h ' Content-Type: application / json ' https://192.168.1.7:8281 / api/stream/dec0e608 - 8 b 8
    3 4e32-8825-3e77ef31c4d7/presentation/instances - d {}

    -Ilian

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

  • Is there a way to get the data for submission of form of eloqua using the REST API?

    I was wondering if there is a way to get the data for submission of form of eloqua using the REST API?

    Thank you

    On the page that egan related, there is a 'RawData' field for FormSubmit activities. In this area, the raw sending the form query string is returned.

    Whatever it is, you can get this info from the activities of the API block, or the endpoints data Rest API.

  • Why Search = depth = does not not to /API/REST/1.0/data/accounts?

    I see missing fieldValues can only be [] between two API calls which should be equivalent.

    When I do this:

    https://secure.Eloqua.com/API/rest/1.0/data/account/1250532

    I recover my account 1250532 with fieldValues can only be [] populated as expected.

    But if I do this:

    https://secure.Eloqua.com/API/rest/1.0/data/accounts?page=1 & count = 5 & depth = full & Search = ID % 3D1250532

    I'll be back only

    ..., 'fieldValues can only be': [],...

    Although I specified depth = complete (in fact, in the returned JSON, I see..., 'depth': 'complete',...). Now that I look closer, I also discovered that I have retrieve multiple records - I get five records, which is my & count = value, when the search clause must return only one who has the corresponding id.

    Now, do exactly the same thing for the campaign or Contact fills fieldValues can only be [] for the available URI or URI research.

    Can someone explain why the search API for accounts does not always?

    Hi Tony,.

    Looks like you've identified a bug in the endpoint of accounts and the way it handles the depth argument.

    You can work around this by using the 2.0 end point: https://...API/REST/2.0/data/account/{identifier}

    Please note that version 2.0 of the API is subject to change. Hope this helps and please let us know if you have any questions.

    Thank you

    Fred

  • C#, UCCX, Rest API, PUT (update a resource) and not taken media Type supported

    Hi, I'm developing an application to update the skills of resources with the REST API.

    I can get all the values I want to (GET), but when I try to update a resource using PUT, and then I get a "415 Unsupported Media Type" webException.

    I discovered that c# / UCCX works with demand. MediaType (instead of request. ContentType).

    I got this error when I tried to GET the data. He now works for the GET.

    But to PUT it, I got the error. Method is defined as SAID, MediaType = "application/xml".

    I tried to empty, ' text/xml '...

    Looked on the internet, Web sites, saying always specify ContentType/MediaType = "application/xml", I have already done.

    I also got the same error if I try an application COULD and without sending data.

    Thanks for your help!

    public string MakeRequest()
    {
    var request = (HttpWebRequest) WebRequest.Create (EndPoint);
    request. Credentials = new System.Net.NetworkCredential (login, password);
    request. Method = Method.ToString ();
    request. ContentLength = 0;
    request. Accept = ContentType;
    request. MediaType = ContentType;
                
    #region so PUT
    If (! string.) IsNullOrEmpty (PostData) & method == HttpVerb.PUT)
    {
    encoding of var = new UTF8Encoding();
    PostData = PostData.Replace ("\n", "");
    var bytes = Encoding.UTF8.GetBytes (PostData);
    request. ContentLength = bytes. Length;
                    
    using (var writeStream = request. GetRequestStream())
    {
    writeStream.Write (bytes, 0, bytes.) (Length);
    }
    }
    #endregion

    Try
    {
    assistance (response var = (HttpWebResponse) request. GetResponse())
    {
    var responseValue = string. Empty;

    If (answer. StatusCode! = HttpStatusCode.OK)
    {
    var message = String.Format ("request failed. Received HTTP {0}", response. StatusCode);
    throw new ApplicationException (message);
    }

    Enter the answer
    using (var responseStream = response. GetResponseStream())
    {
    If (responseStream! = null)
    using (var = new StreamReader (responseStream) Player)
    {
    responseValue = reader. ReadToEnd();
    }
    }

    Return responseValue;
    }
    }
    catch (WebException wex)
    {
    error string = wex. Message;
    Return ' ';
    }

    OK you got, in this case, post your request in the Sub forum as well which is sought after by developers and you can you expect a concrete answer/explanation on the same

    https://communities.Cisco.com/community/Developer/Express-configuration-API

    Concerning

    Deepak

  • CPO 3.0 call a REST API

    I try to call a remote REST API that returns a JSON object.

    The call browser API looks like this

    http://IPAM-dev/phpipam/API/?app_id=API&controller=sections&action=read&ID=6

    Returns

    {'success': true, 'data': {'id': '6', 'name': "Telford subnets", 'description': '',' masterSection': '0', 'permissions': "{\"4\":\"1\ ""} strictMode ',' ': '1', 'subnetOrdering': null, 'order': null, "editDate": null, "showVLAN": '0', 'showVRF': '0' "}}

    When I try to use the OPC Web HTTP Request activity it fails with the following error

    Unable to send a content-body with this type of verb.

    I think the problem here is the content type. The default is application/xml; charset = utf - 8 in the activity, I tried to change this text, html and json, but still did not work. I can't let the emty content type in the activity.

    Anyone have any suggestion how to make a REST of CPO call using the activity Web HTTP request

    Try to change GET to POST (in the form of CALL-CPO_REST - RQ.png).  Sends the contents of the body generally requires a POST not a GET.

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • Add a contact e-mail group via the Rest API

    Hello

    Is it possible to add a contact to a group of e-mail through the Rest API?

    I saw this article here http://topliners.eloqua.com/docs/DOC-3526 which shows that you can get a subscription email group contacts status, however it is not clear how actually to add a contact to a group of e-mail via the API.

    I tried to post data to ' data/contact / {id} / groups/email/subscription "but I get a response of"Method not allowed"API."

    If someone managed to achieve? If so, how?

    See you soon

    Hi David,

    The POST operation is not supported by this endpoint, but you can use PUT a method for updating subscriptions Contact:

    • PUT: / data/contact / {id} / email/group / {groupId} / subscription

    Where the request body contains an object of the subscription. Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • REST API - subscriptions Contact

    Hello

    I'm updating subscriptions contact using the REST API, but the documentation at http://topliners.eloqua.com/docs/DOC-3526 seems to be updated. The current lead for/data/contact / {contactId} / groups/email/subscription is different than the result of the documentation.

    Can someone explain to me how I should manage subscriptions? I use https://secure.eloqua.com/API/REST/2.0 as the API endpoint.

    Thank you

    Ronald

    Hi Ronald,.

    The current stable version of the REST API is 1.0. Please note that 2.0 is public, but it is subject to change, and so we do not recommend that the community uses this.

    About the management of subscriptions, we will add a post shortly to describe how to subscribe and unsubscribe Contacts using the Rest API.

    Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • Get complete information of Contact with the REST API with Ruby

    Hello

    I'm trying to find information from a contact using the REST API from Ruby. I followed the example posted here and I was able to get good contact with Eloqua, but information are the basis and the FieldValues table is very long with fieldValues can only be and no label field.

    I don't know I asked for complete = depth, and I verified that the contact even on the side of Eloqua seen so many other areas.

    It's the URL that I use: https://secure.eloqua.com/API/REST/1.0/data/contacts?search= < emailAddress > & depth = full & count = 1

    and I don't get like this field in the fieldValues can only be: {'type': 'FieldValue', 'id': "100175"}

    With respect to the main information, they are basic.

    Is it possible to obtain all the contact fields, the same than the one I see on the site of Eloqua?

    Thank you

    Hi Theyaa,

    You can use the following endpoint to retrieve a list of all fields with their unique identifier and metadata:

    • GET /API/REST/1.0/assets/contact/fields?depth=complete&search=*&page=1&count=250

    Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • REST API updates

    I try to get the REST API of emails. I have the system of creating emails OK but when I try and update doing a query PUT with the ID of the email created in the URL and the ID in the JSON data (and noting of also changed) it blows upward with an internal server error.

    Any pointers people can give me?

    Hi Fred, I just went to get a few POST and PUT requests to see if I could spot anything and post it here.

    And this is now, works very well.

    * shrugs *.

    I'll keep an eye on it and post if I have more problems.

  • There the rest APIs to retrieve the metadata for entity for eloqua objects?

    There is a list of all the objects that are accessible by the REST for CRUD in this link: REST API - Documentation for kernel objects in the objects of the core section.

    For each of the objects listed in the objects of the core section are there is a metadata field in the Properties section.

    For example, for the purpose of the e-mail message, The REST API - to access Emails , under the Properties section, there entered corresponding to the fields of the object of the emails under the
    Name, Type, Description and validation topics.

    Is there a REST API to retrieve the same information, i.e. metadata field for an object programmatically eloqua?
    Otherwise, this is a serious obstacle to building systems that are the metadata engine and support for SOAP is removed...

    The closest to what you are looking for would be endpoints of assistance for a description of the fields. Example of /api/bulk/1.0/contact/fields

    {

    "items": [{}

    'name': "E-mail address",

    "internalName": "C_EmailAddress",

    'dataType': 'emailAddress;

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': true,

    'Déclaration': '{{Contact.Field (C_EmailAddress)}}.

    "uri": "/ contact/field/100001",

    "converted': ' / Date (-2208970800000) /"

    'updatedAt': ' / Date (-2208970800000) / ".

    },

    {

    'name': "First name",

    "internalName": "C_FirstName",

    'dataType': "string",.

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': false,

    'Déclaration': '{{Contact.Field (C_FirstName)}}.

    "uri": "/ contact/field/100002."

    "converted': ' / Date (-2208970800000) /"

    "updatedBy": "MgrzzzOracleCloudSupportP01E10",

    'updatedAt': ' / Date (1408993722380) / ".

    },.....

    If so, it will also include an element "defaultValue". How many characters you can store in a field (precision) is documented here: Type of data (data and Digital Formats). The same endpoint exist in bulk 2.0, and there are variants for the account fields and Objetpersonnalise. Another exists in the REST through Api/rest/2.0/assets/contact/fields?depth=complete... It does not include the declaration of ML, but there other useful information such as the type of default update and a flag 'isAccountLinkageField '.

    Similarly, if you describe a form via SOAP or REST, it also will give you the fields and their type.

    Kind regards

    Bojan

Maybe you are looking for