Move assets within Orange Logic
Call template
All DataTable calls can be POST or GET.
https://{OrangeLogicURL}/API/DataTable/V2.2/Documents.{asset type}.{asset subtype}:Update?{asset identifier}&CoreField.Parent-folder:={parent folder identifier}
Moving assets allows you to organize files. For example, you can move image, audio, video, or document files from one folder to another or collect specific items in a virtual folder. Moving assets also allows you to create and modify container hierarchies. For example, you can create new collections, projects, or folders, and move containers from one place to another by designating a new parent container.
Update
Example 1: Move an image into a parent folder
This call moves an image with the identifier ZZ12PO5 into a folder with the Record ID 2QDTWAW79R4.
/API/DataTable/V2.2/Documents.Image.Production-Still:Update?CoreField.Identifier=ZZ12PO5&CoreField.Parent-folder:=[/API/DataTable/V2.2/Documents.Folder.Default:Read?CoreField.Unique-Identifier=2QDTWAW79R4]
Example call
curl --location --globoff --request POST 'https://mangovations.com/API/DataTable/V2.2/Documents.Image.Production-Still:Update?CoreField.Identifier=ZZ12PO5&CoreField.Parent-folder%3A=[%2FAPI%2FDataTable%2FV2.2%2FDocuments.Folder.Default%3ARead%3FCoreField.Unique-Identifier%3D2QDTWAW79R4]' \
--header 'Authorization: Bearer f.uIWpWNe0syaNW@IaMeMzp4APNAuH2HAsg1naLacGPSehJi1gS5aaPlseDWlfhdqOKXxX4Jx9Qyty03YZ5V6Sk9BFw4oQPYW5Wuy6uvB.PmivqEj.YERsMjwoUgvP82' \
--header 'Cookie: AWSALB=ywroUH7RbyHGBXUe1c2pOevlZY+ObbGVZWkYeucUyyqY1cFetvUhuO+cHtQLCsFkCNw2yRSZDFXuChrFteYVlfjhpIWz+id7+JdshhpI4Gsb6OmCsojB2BufVldh; AWSALBCORS=ywroUH7RbyHGBXUe1c2pOevlZY+ObbGVZWkYeucUyyqY1cFetvUhuO+cHtQLCsFkCNw2yRSZDFXuChrFteYVlfjhpIWz+id7+JdshhpI4Gsb6OmCsojB2BufVldh; AWSALBTG=0BW6VdaBtqoS9pFea/yfdLzUpd/9VCShn3HB7nT36g/rj4KwhtLN2Cykt1cp7x4iHlHHNP0RhmqGUt1ofP57GRGHWuKlGiDuHDmgOkOLDqvjUR2sKG5Iy79YiO7SS/HGJwcC64EuYgmC897zMVhGkrCg8+0gD8ZP8bNXcm1Mn+rf; AWSALBTGCORS=0BW6VdaBtqoS9pFea/yfdLzUpd/9VCShn3HB7nT36g/rj4KwhtLN2Cykt1cp7x4iHlHHNP0RhmqGUt1ofP57GRGHWuKlGiDuHDmgOkOLDqvjUR2sKG5Iy79YiO7SS/HGJwcC64EuYgmC897zMVhGkrCg8+0gD8ZP8bNXcm1Mn+rf; ZZ1-Session__1505=CfDJ8KSkO661hSREsDx7PGb48%2B2mNmxv3ziiTahFWM%2BYIFbMMlnpU8F2fSKHG0JFPLS6YKx%2BUxoB%2FsVJ3bwkc4ycIMn69xC%2F5O2lzGtEs9BG0EebkowpgcdvdVPhxvXFLTLZF4hhQSKxTJ3I5iVvu6M32h4OlQJAACQ5Y9vbQt%2BbsjCC; ZZ1-Session__1505-Alt=CfDJ8KSkO661hSREsDx7PGb48%2B2mNmxv3ziiTahFWM%2BYIFbMMlnpU8F2fSKHG0JFPLS6YKx%2BUxoB%2FsVJ3bwkc4ycIMn69xC%2F5O2lzGtEs9BG0EebkowpgcdvdVPhxvXFLTLZF4hhQSKxTJ3I5iVvu6M32h4OlQJAACQ5Y9vbQt%2BbsjCC'
Response
<Result>
<APIRequestInfo>
<ProviderVersion>KOBE.R2.2065G.216363</ProviderVersion>
<ProviderIdentity>CUY-T-USW2-APP</ProviderIdentity>
<ProviderID>44ddde3ac27a33c394335f249d4007d4</ProviderID>
<Module>DataTable</Module>
<APIVersion>V2.2</APIVersion>
<Resource>Documents.Image.Production-Still:Update</Resource>
<IsLoggedIn type="Boolean">True</IsLoggedIn>
<Status>LoggedIn</Status>
<UserLogin>ZZ1CT12218</UserLogin>
<Session>No session (production configuration)</Session>
<TimeoutPeriodMinutes type="Numeric">120</TimeoutPeriodMinutes>
</APIRequestInfo>
<RequestInterpretation>
<Filters type="List">
<Filter>
<Field>CoreField.Identifier</Field>
<Operator>=</Operator>
<OperatorDescription>Field must be equal to value</OperatorDescription>
<Value>ZZ12PO5</Value>
</Filter>
</Filters>
<Updates type="List">
<Update>
<Field>CoreField.Mother</Field>
<Operator>:=</Operator>
<OperatorDescription>Assign a value to a single-value field</OperatorDescription>
<Value>[/API/DataTable/V2.2/Documents.Folder.Default:Read?CoreField.Unique-Identifier=2QDTWAW79R4]</Value>
<Warning>Reference value could not be resolved. Assign empty value to the field. </Warning>
</Update>
</Updates>
<IgnoredParameters type="List" />
</RequestInterpretation>
<ResponseSummary>
<NumberOfRecordsAffected type="Numeric">1</NumberOfRecordsAffected>
</ResponseSummary>
<Response>
<RecordsAffected type="List">
<Result>
<RecordID>2QDTWAGP4JZ</RecordID>
<Code>SUCCESS</Code>
</Result>
</RecordsAffected>
</Response>
</Result>
Example 2: Move a folder into a parent folder
This call moves a folder with the identifier ZZ13VOL into a folder with the identifier ZZ13VOH.
/API/DataTable/V2.2/Documents.Folder.Default:Update?CoreField.Identifier=ZZ13VOL&CoreField.Parent-folder%3A=[%2FAPI%2FDataTable%2FV2.2%2FDocuments.Folder.Event-folder%3ARead%3FCoreField.Identifier=ZZ13VOH]
Example call
curl --location --globoff --request POST 'https://mangovations.com/API/DataTable/V2.2/Documents.Folder.Default:Update?CoreField.Identifier=ZZ13VOL&CoreField.Parent-folder%3A=[%2FAPI%2FDataTable%2FV2.2%2FDocuments.Folder.Event-folder%3ARead%3FCoreField.Identifier%3DZZ13VOH]' \
--header 'Authorization: Bearer f.uIWpWNe0syaNW@IaMeMzp4APNAuH2HAsg1naLacGPSehJi1gS5aaPlseDWlfhdqOKXxX4Jx9Qyty03YZ5V6Sk9BFw4oQPYW5Wuy6uvB.PmivqEj.YERsMjwoUgvP82' \
--header 'Cookie: AWSALB=VBnv/MaRFuKuj5yoLInhaXteQI6cNkx0HuhOZMvWTykAq9J7wBwnKSkQW0sJQ6CtyFzQondCcgMz2TwebtV42SN+ANX69ocj7jHCMgaI8VGrnaGDm8cis04lIeaC; AWSALBCORS=VBnv/MaRFuKuj5yoLInhaXteQI6cNkx0HuhOZMvWTykAq9J7wBwnKSkQW0sJQ6CtyFzQondCcgMz2TwebtV42SN+ANX69ocj7jHCMgaI8VGrnaGDm8cis04lIeaC; AWSALBTG=BhAhxGy9owHIleuZoT3Zu02pex/pUUjAX3AOd0lGGQJXQY9/5f85F4ZPLhtVppz38zbXmh0LbkfDmtVRiUDo29B3G95pQ1YLX9rGrCD+Z5SVxY0/9nwmVfTCC2PhELVFhWEQZfCK94IGKAMlyKXwo/uyCovjV56xccPqFVEAgbt7; AWSALBTGCORS=BhAhxGy9owHIleuZoT3Zu02pex/pUUjAX3AOd0lGGQJXQY9/5f85F4ZPLhtVppz38zbXmh0LbkfDmtVRiUDo29B3G95pQ1YLX9rGrCD+Z5SVxY0/9nwmVfTCC2PhELVFhWEQZfCK94IGKAMlyKXwo/uyCovjV56xccPqFVEAgbt7; CortexCID_ZZ1=NK2uiOOw0h7gcj0c; ZZ1-Session__1505=CfDJ8KSkO661hSREsDx7PGb48%2B3264hnBg5ln9miKkFWeKwZKJbI%2FC8TjNe8VbV72hEBYPAqOf1YJxFlL59p9S6iD5j6XMs8%2FHlJDQBQJGq7YatB9nN3xh19C9R%2Fh48MOTSc41y1GF7QVL2vAsIg5WdkJb0FcXY3MVg6f%2FPJ9bpXTu1c; ZZ1-Session__1505-Alt=CfDJ8KSkO661hSREsDx7PGb48%2B3264hnBg5ln9miKkFWeKwZKJbI%2FC8TjNe8VbV72hEBYPAqOf1YJxFlL59p9S6iD5j6XMs8%2FHlJDQBQJGq7YatB9nN3xh19C9R%2Fh48MOTSc41y1GF7QVL2vAsIg5WdkJb0FcXY3MVg6f%2FPJ9bpXTu1c'
Response
<Result>
<APIRequestInfo>
<ProviderVersion>KOBE.R2.2065G.216363</ProviderVersion>
<ProviderIdentity>CUY-T-USW2-APP</ProviderIdentity>
<ProviderID>44ddde3ac27a33c394335f249d4007d4</ProviderID>
<Module>DataTable</Module>
<APIVersion>V2.2</APIVersion>
<Resource>Documents.Folder.Default:Update</Resource>
<IsLoggedIn type="Boolean">True</IsLoggedIn>
<Status>LoggedIn</Status>
<UserLogin>ZZ1CT12218</UserLogin>
<Session>No session (production configuration)</Session>
<TimeoutPeriodMinutes type="Numeric">120</TimeoutPeriodMinutes>
</APIRequestInfo>
<RequestInterpretation>
<Filters type="List">
<Filter>
<Field>CoreField.Identifier</Field>
<Operator>=</Operator>
<OperatorDescription>Field must be equal to value</OperatorDescription>
<Value>ZZ13VOL</Value>
</Filter>
</Filters>
<Updates type="List">
<Update>
<Field>CoreField.Mother</Field>
<Operator>:=</Operator>
<OperatorDescription>Assign a value to a single-value field</OperatorDescription>
<Value>[/API/DataTable/V2.2/Documents.Folder.Event-folder:Read?CoreField.Identifier=ZZ13VOH]</Value>
</Update>
</Updates>
<IgnoredParameters type="List" />
</RequestInterpretation>
<ResponseSummary>
<NumberOfRecordsAffected type="Numeric">1</NumberOfRecordsAffected>
</ResponseSummary>
<Response>
<RecordsAffected type="List">
<Result>
<RecordID>2QDTWAO0F79</RecordID>
<Code>SUCCESS</Code>
</Result>
</RecordsAffected>
</Response>
</Result>