I need to be able to create an EngrFeature item using API, namely with PUT/POST method:
The EngrFeature must have as parent a Feature.
Can you provide an example of a valid JSON to reference the parent object?
Here is an example. In this example I'm creating a PortfolioItem/Feature under a parent of PortfolioItem/Initiative. Also, you need the ObjectID of the parent, as you can see below. You shall change the portfolio item types to meet your hierarchy:
I hope this helps.
Thanks Sagi for answering.
I tried your suggestion, but I still got an error:
I used this raw JSON body (I tried also without the "Project" and "Workspace"):
"Project": "VERTICAL: SP",
"Name":"My name is Andrea",
and I get this in response:
"Requested type name \"portfolioitem/engrfeature\" is unknown."
Also tried with pyral (python API wrapper and got a similar error).
I don't see that you have a feature with objectid = 195702777404, so perhaps you can check on that.
Also, with regard to the workspace and project arguments that you include in your JSON: I'd imagine you shall refer to them by the _ref rather than by name, however, at least to begin with, I'd say: try to avoid them. So, if you don't specify a workspace and project then it will be created in your default workspace/project. Can you try that first.
Let me know if that helped.
Retrieving data ...