Sub-calls are often used to move or update database records. For example, you can use a sub-call to move an asset to a different parent folder, assign a source to an asset, add a parent group to a group, and more.
Sub-calls are enclosed in square brackets.
For example, consider the following call:
POST or GET
/API/DataTable/V2.2/Documents.Image.Default:Update?CoreField.Identifier=ZZ12PAR&CoreField.CT_RecordidSource:=[API/DataTable/V2.2/Contacts.All:Read?CoreField.Identifier=ZZ1CT298]
This call identifies a Standard Image with the unique identifier ZZ12PAR. The sub-call is: API/DataTable/V2.2/Contacts.All:Read?CoreField.Identifier=ZZ1CT298
. The sub-call identifies the user with the unique identifier ZZ1CT298 and adds that user to the Source field on the image.
Note
You must encode special characters (such as & and =) within sub-calls.