Adding a child to 2 parents

Started by Private User on Thursday, August 31, 2017
Problem with this page?

Participants:

Related Projects:

Showing all 9 posts

Hi there,

Just noticed that the documentation about adding a child only declares one profile to be used as input.How can the other parent be added?

I refer to this documentation: https://www.geni.com/platform/developer/help/api?path=profile%2Fadd...

And appears as a method of the specific profile, there is no parameter to add another parent as profile.

When you add a parent to a profile, the response includes a union ID. What you want to do is add a partner to that union ID.

Thanks both, now is fixed.

Ok, I get it, if you select "add_child" inside a "profile", actually you are creating a new union with that profile as a parent and the new profile as a child.

When you add a child into a union, you just create the profile and not a new union. It is attached to the current union.

Is kind of confusing having a method inside profile called just "add_child" and not "add_child_and_union" or something like that.

This explains what I mentioned about lack of documentation for geni's API, I am missing a description of what the method is doing and what is good for.

Btw, I have noticed that the sandbox is providing wrong urls of profiles but the production server is ok.

Essentially it provides as url:

https:// api.sandbox.geni.com /profile-399

when shall be

https:// sandbox.geni.com/api /profile-399

And.... I noticed as well that this website automatically converts sandbox profiles into geni profile... so my profile in sandbox is :

https://api.sandbox.geni.com/ profile-399

If I introduce the value all together... it goes to a geni production server and not sandbox one, look to the link below, I just introduced the previous url without the space

Melissa Ann Larson

There is no api.sandbox.geni.com -- if you look at Melissa Ann Larson it correctly returns data from sandbox, not www

The correct api address should be https://sandbox.geni.com/api/ profile-399

@Mike: you have successfully reproduce the issue I mention, Melissa is not in sandbox, the webpage somehow changes the profile address to one not located in the sandbox, you shall create an space (as Bjorn has done) to avoid the issue.

@Bjorn: what I am trying to say, if you navigate in the browser to the profile:

https:// sandbox.geni.com/api/ profile-399

The value provided by the api for the url parameter is:

https:// api.sandbox.geni.com /profile-399

This is only happening in sandbox, production server goes smooth.

Just tested, - it's not - api is a subfolder as typed.
It could however be fixed since yesterday because I did not check the URL then, - earlier on the production server the api had to be used as part of the hostname, but it was changed years ago and they probably forgot to do that for the sandbox.

I would however not expect to get a profile from the production server when asking for an ID in the sandbox, but may be that is how the sandbox is working, There is no documentation on how to use the sandbox.

Showing all 9 posts

Create a free account or login to participate in this discussion