Skip to content

Commit

Permalink
delete-version-rendition
Browse files Browse the repository at this point in the history
  • Loading branch information
saidone75 committed Jul 17, 2024
1 parent a7be4a9 commit 08c0f74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/cral/api/core/versions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,18 @@
{:query-params nil}
opts))

(defn delete-version-rendition
"Delete the rendition for `rendition-id` of version `version-id` of `node-id`.
If the rendition is successfully deleted then the content for that rendition node will be cleared.\\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions)."
[^Ticket ticket ^String node-id ^String version-id ^String rendition-id & [^PersistentHashMap opts]]
(utils/call-rest
client/delete
(format "%s/nodes/%s/versions/%s/renditions/%s" (config/get-url 'core) node-id version-id rendition-id)
ticket
nil
opts))

(defn get-version-rendition-content
"Gets the rendition content for `rendition-id` of version of file `node-id` and `version-id`.\\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/getVersionRenditionContent)."
Expand Down

0 comments on commit 08c0f74

Please sign in to comment.