Skip to content

Commit

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

(defn delete-rendition
"Delete the rendition identified by `rendition-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#/renditions)."
[^Ticket ticket ^String node-id ^String rendition-id & [^PersistentHashMap opts]]
(utils/call-rest
client/delete
(format "%s/nodes/%s/renditions/%s" (config/get-url 'core) node-id rendition-id)
ticket
nil
opts))

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

0 comments on commit 577cb52

Please sign in to comment.