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.