To invite a person to become your colleague, send an Atom entry document containing the connection resource to the person's colleague connections feed.
To find a person's colleague connections feed, you can search for the person by name. From the returned feed, find the person and retrieve her associated user ID, and then use the user ID to retrieve the person's full feed, which includes a link to her colleague connections feed.
After you send the invitation, the connection is added to your connections in an unconfirmed state. The connection is added to the connections of the person you invited in a pending state. See Accepting an invitation to become a colleague
or Deleting connections
for information about how to accept or decline an invitation.
See Authenticating requests
for information about how to authenticate the request.
1. Retrieve any user's Profiles service document using the user's credentials to authenticate the request. See Retrieving the Profiles service document
2. In the service document, find the href attribute value where the value of the rel attribute is http://www.ibm.com/xmlns/prod/sn/connections/colleague
For example: https://example.server.org/profiles/atom/connections.do?connectionType=colleague&key=23e29c58-c16e-467b-8f72-d9d05fc0fef1&lastMod=1395486462948
3. With the link specified by step 2, perform a POST using the sample request entry. This will send an invite to that person requesting them to be your connections colleague.
See Accepting an invitation to become a colleague or Deleting connections for information about how to accept or decline an invitation.