Remove a reference to an asset from a virtual folder
Call template
All DataTable calls can be POST or GET.
https://{OrangeLogicURL}/API/DataTable/V2.1/Document.Container.Link:Delete?Document.CoreField.DO_RecordIDTop=[Datatable/v2.1/Documents.Virtual-Folder.{asset subtype}:Read?{child asset identifier}&Document.CoreField.DO_RecordIdBot=[DataTable/v2.1/Documents.{asset type}.{asset subtype}:Read?{parent asset identifier}
Virtual folders contain references to assets. They do not contain the assets themselves. References to a single asset can exist in multiple virtual folders. Removing a reference to an asset from a virtual folder doesn’t change the asset’s folder path. The asset remains in its original container in Orange Logic.
Delete
Example: Remove an image from a virtual folder
This call removes the reference to the image with the identifier ZZ158 from the virtual folder with the identifier ZZ13VOQ.
API/DataTable/V2.1/Document.Container.Link:Delete?Document.CoreField.DO_RecordIDTop=[Datatable/v2.2/Documents.Virtual-folder.Default:Read?CoreField.Identifier=ZZ13VOQ]&Document.CoreField.DO_RecordIdBot=[Datatable/v2.2/Documents.Image.Default:Read?CoreField.Identifier=ZZ158]
Example call
curl --location --globoff --request POST 'https://mangovations.com/API/DataTable/v2.1/Document.Container.Link:Delete?Document.CoreField.DO_RecordIDTop=[Datatable%2Fv2.2%2FDocuments.Virtual-folder.Default%3ARead%3FCoreField.Identifier%3DZZ13VOQ]&Document.CoreField.DO_RecordIdBot=[Datatable%2Fv2.2%2FDocuments.Image.Default%3ARead%3FCoreField.Identifier%3DZZ158]' \
--header 'Authorization: Bearer fjRYx5GXxgKaSEC6iBosgwhO2xXod8R7jNHyhBECtjHTm.2FEvw7GHfdToDV289CIvq4vC42YCOtDV2XoLJqqI48JuO8fq0PknPtb0NSTB7VsElpO.Oys4M0PUuJlhq3' \
--header 'Cookie: AWSALB=8RxnsQBRnbqPb4liDqz5DUnGYnV8EC++R6WO7O1N/0SMkfSp3fO4CJ6BvriVjpA4uHOPjNbzEd/1BUBMk8o2j01IV5vEi+enL1BqB/z4DQrQrI33vp8EJs0HFwg8; AWSALBCORS=8RxnsQBRnbqPb4liDqz5DUnGYnV8EC++R6WO7O1N/0SMkfSp3fO4CJ6BvriVjpA4uHOPjNbzEd/1BUBMk8o2j01IV5vEi+enL1BqB/z4DQrQrI33vp8EJs0HFwg8; AWSALBTG=3C2VrNrhswUJqDYHP7sZp7caAc99whDTMnWN3SLIUM0D0r/ifeOg0ba5PGyXlJagO0JiZnS4sh8uXI0j1I9YLImQ8fuq+DKQqs/Q5MGwryaaoyPb+2O7FBlwQfYbehAcIY8NMoA0kBmlHtHG/hHcgSaC3Cz2RTZMsoaUP1+ghWSw; AWSALBTGCORS=3C2VrNrhswUJqDYHP7sZp7caAc99whDTMnWN3SLIUM0D0r/ifeOg0ba5PGyXlJagO0JiZnS4sh8uXI0j1I9YLImQ8fuq+DKQqs/Q5MGwryaaoyPb+2O7FBlwQfYbehAcIY8NMoA0kBmlHtHG/hHcgSaC3Cz2RTZMsoaUP1+ghWSw; CortexCID_ZZ1=NK2uiOOw0h7gcj0c; ZZ1-Session__1505=CfDJ8KSkO661hSREsDx7PGb48%2B2NJc3CrgTZ83NTxV4W4xo4YrpRTqlS6S2VjLR9mZYWA5N57tHLTMqEYQEjqlkEQBzoiYg4PgXpOgCi0Y5aIxagzhqdYx09IVmYxaEtfQBcCg2unHWyZTpEVY6BIzSNfLEggK4FuPLT%2B4r378%2FnkFSS; ZZ1-Session__1505-Alt=CfDJ8KSkO661hSREsDx7PGb48%2B2NJc3CrgTZ83NTxV4W4xo4YrpRTqlS6S2VjLR9mZYWA5N57tHLTMqEYQEjqlkEQBzoiYg4PgXpOgCi0Y5aIxagzhqdYx09IVmYxaEtfQBcCg2unHWyZTpEVY6BIzSNfLEggK4FuPLT%2B4r378%2FnkFSS'
Response
<Result>
<APIRequestInfo>
<ProviderVersion>KOBE.R2.2065G.216363</ProviderVersion>
<ProviderIdentity>CUY-T-USW2-APP</ProviderIdentity>
<ProviderID>44ddde3ac27a33c394335f249d4007d4</ProviderID>
<Module>DataTable</Module>
<APIVersion>v2.1</APIVersion>
<Resource>Document.Container.Link:Delete</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>Document.CoreField.DO_RecordIDTop</Field>
<Operator>=</Operator>
<OperatorDescription>Field must be equal to value</OperatorDescription>
<Value>2QDTWAO0A9I</Value>
</Filter>
<Filter>
<Field>Document.CoreField.DO_RecordIdBot</Field>
<Operator>=</Operator>
<OperatorDescription>Field must be equal to value</OperatorDescription>
<Value>2QDTWAO6WL</Value>
</Filter>
</Filters>
<Updates type="List" />
<IgnoredParameters type="List" />
</RequestInterpretation>
<ResponseSummary>
<NumberOfRecordsAffected type="Numeric">1</NumberOfRecordsAffected>
</ResponseSummary>
<Response>
<RecordsAffected type="List">
<Result>
<RecordID>2QDTW2HSU90</RecordID>
<Code>SUCCESS</Code>
</Result>
</RecordsAffected>
</Response>
</Result>