ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums Oro Community Creating Records using Rest Webservice

This topic contains 2 replies, has 3 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year, 7 months ago.

  • Creator
    Topic
  • #53219
    imwikaash
    imwikaash
    Participant

    Hi
    How to create a Contact using REST web services in java or using rest client ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #53220
    Artem Liubeznyi
    Artem Liubeznyi
    Keymaster
    #53221
    Mike Kudelya
    Mike Kudelya
    Moderator

    Hi,

    This tutorial described new API, which will be appear either in 1.10 release or current master branch.

    If you want to create a contact record via rest api, firstly please generate user’s api key and wsse header, how to do this described here, go to [app_url]/api/doc/rest_json_api#get–api-contacts, click on “Sandbox”, click on “Try!”, copy first entity json section, remove ‘”id”: “1”,’ and paste json to testing.json. After that you need to set right wsse header to curl.

    For example i have created ‘testing’ custom entity with ‘name’ field (in your case rename extendtestings to contacts)

    Here is my testing.sh:

    and testing.json:

    Please pay attention, you must re-generate wsse header each time when you want call api. In my example i purposely deleted ‘[‘ char from json, though it exists when you press ‘Try!’ button.


Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

ssossossosso