Insightly API - Link Object ID?

I hope this makes sense. I'm trying to link two org's together in Insightly using their API. I'm getting an error when I try to link two orgs: Object reference not set to an instance of an object.

API Doc Link:

https://api.insightly.com/v3.1/Help#!/Organisations/AddLink

I've performed a GET on my org but I don't see anything related to the field its requesting.

Here is the endpoint I've tried:

https://api.insightly.com/v3.1/Organisations/138015655/Links

{
  "LINK_ID": 138066206,
  "LINK_OBJECT_NAME": "Is the parent company of ",
  "LINK_OBJECT_ID": 0
}

According to the documentation I should only need Link ID but I got an error saying I needed the other fields, so I added them. The expected result would be that it "links" the two orgs together and list one as the parent company and the other as a "sub Org" of the parent company. I'm not sure what value "LINK_OBJECT_ID" is referring to in the request.

0

Comments

1 comment
  • Hello Micah,

    Thanks for bringing this to our attention.

    I'll go ahead and escalate this now to our Senior Tech Team for further assistance. 

    0
    Comment actions Permalink

Please sign in to leave a comment.