Linking containers added to API example

Linking containers was not covered in the API documentation. I looked it up in the client source code and testing it manually.
Merge pull request #6378 from evanderkoogh/patch-1

Linking containers added to API example