You can add sub-calls to your data table calls. 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 is used to find the user with that unique identifier and add that user to the Source field.
Note
You must URL-encode special characters (such as & and =) within sub-calls.