Forums › Forums › OroCRM › OroCRM – How do I? Questions › Create custom entity from Rest API
This topic contains 9 replies, has 2 voices, and was last updated by Mike Kudelya 7 years, 4 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- July 8, 2016 at 3:21 am #28965
Hi,
Is it possible to create a custom entity using the Rest API ?
I have not seen call for the creation at the documentation /api/docThanks,
KnutFr - CreatorTopic
- AuthorReplies
- July 11, 2016 at 10:02 am #28966
Hi,
Do you mean create records for custom entity?
July 12, 2016 at 2:39 am #28967Hi,
I would like to be able to create custom entity table, and also create records obviously.
Thanks again,
KnutFrJuly 12, 2016 at 5:50 am #28968Hi,
I have created ‘testing’ custom entity with ‘name’ field.
Here is my testing.sh:
Shell123#!/bin/shcurl -i --data @testing.json -H "Content-type:application/vnd.api+json" -H "Accept: application/json" -H 'Authorization: WSSE profile="UsernameToken"' -H 'WSSE HEADER' http://orocrm-application.local/api/extendtestingsand testing.json:
JavaScript123456789{"data":{"type": "extendtestings","attributes": {"name": "Test 1"}}}At the moment the orocrm does not support entity table creation via api.
October 29, 2016 at 5:37 pm #28969Hi, is there an update about this point with last version of orocrm ?
Thanks, KnutFr
October 31, 2016 at 8:06 am #28970Hi
Can you tell me, what do you mean, please? Point of what ?
October 31, 2016 at 9:41 am #28971Hi Mike,
What I would like to do is exactly what you can do on this link : url/entity/extend/entity/create but I would like to be able to do this via an API call. Also I would like to update / Delete custom entity structure.
Obviously I also want to create generic call for Create / Read / Update & Delete single record of custom entity.
For example:
1234567891011#Custom entity API/api/latest/entity/{entityId} # (GET) Return custom entity structure/api/latest/entity/create # (POST) Create custom entity/api/latest/entity/update # (PUT) Update custom entity structure/api/latest/entity/delete # (DELETE) Delete custom entity#Custom entity records API/api/latest/entity/record/{recordId} # (GET) Return custom entity record/api/latest/entity/record/create # (POST) Create custom entity record/api/latest/entity/record/update # (PUT) Update custom entity record/api/latest/entity/record/delete # (DELETE) Delete custom entity recordIs there some existing call that can do things like that ?
Thanks.
November 1, 2016 at 3:28 am #28972Hi
1.10 version of oro has already been contain new JSON API. http://[domain]/api/doc/rest_json_api includes list of entities which ready to work with api and all required api url’s, before use it click on Generate Key button on our profile page (/user/profile/view). Also please read the documentation.
November 1, 2016 at 6:54 am #28973Hi,
Thanks for your reply. I’m already using this API for existing Oro entity, but I don’t understand how to exaclty use it to create my own entity. (What I would exactly like to do is create a custom lead entity processed by an external existing software. For testing I have already try to create “Lead” record via OroAPI and it works great ! )
My issue is specific to my own created custom entity.
Does it work the same way ?
Thanks.
November 1, 2016 at 10:25 am #28974Hi
Unfortunately this is not implemented yet and we have no plans about that.
But i think you can implemented this feature in your customization. - AuthorReplies
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.