POSTutilizing the connection token.
📘NoteThe state of the connection is now "1" or "Active"Auto-Accept
"auto":trueis sent in the connection target
Require Connection Acceptis unchecked.
Send Connection Notificationsto prevent notifications from going out when connections are created as well.
"auto":trueadded to the target.HTTP
📘NoteThe connection is immediately created in state "1" or "Active" without any acceptance needed.
objectwill always be "account".
_idof the account must be sent.
nameas illustrated above. This can be useful in connection notification templates. For example, you can send personalized emails with the recipient's name included in the message.
accessis the level of context access you are granting to the target.
your_org_codeis the org code you specified when signing up.
object_nameis the plural name of the object you are creating a connection to and
object_idis the _id of the object instance that you are creating a connection to.
[email protected]to the
c_prescriptioninstance with _id
5519c01aae2fd2b02915c81f. But notice that the state of the connection is "0" of "Pending". This is because it has not yet been accepted by Mr. Banting.
[email protected]notifying him that John Smith at NewHealthCo would like to share a Prescription file. Once Fred registers as a user, he can then accept or decline the connection. If accepted, Mr. Banting would have Read access to the c_prescription (level 4).