Skip to main content
Version: 90.0.4

replaceDigitalContent

PUT 

/contents/media/:contentId

Replaces digital content while retaining metadata (if not provided in the request body). If metadata is provided, it will also be replaced. This involves deleting all associated renditions and waiting for the new original rendering to be uploaded using the link provided in the response.

The same checks performed on creation apply here: the MIME type of the new file has to belong to the MIMETypes of its DigitalContentType and its size cannot exceed the maxSize of that type. The only automatic progressive is contentVersion, which is read-only and self-increments: the version (versionCode) and the date proposed by the client travel as plain metadata, and no version history is kept.

To access the service you need at least one of the following permissions. They are different based on the entity the digital contents are linked to:

Permission (one of)Notes
createItemIf linked to an Item
updateItemIf linked to an Item
createItemHierarchyIf linked to a Item Hierarchy
updateItemHierarchyIf linked to a Item Hierarchy
createTaskIf linked to a Task
updateTaskIf linked to a Task
createSurveyDocTemplateIf linked to a Survey Document
updateSurveyDocTemplateIf linked to a Survey Document
createPurchaseOrderDigitalContentIf linked to a Purchase Document
updatePurchaseOrderDigitalContentIf linked to a Purchase Document
createSalesOrderDigitalContentIf linked to a Sales Order
updateSalesOrderDigitalContentIf linked to a Sales Order
createSalesDocDigitalContentIf linked to a Sales Document
updateSalesDocDigitalContentIf linked to a Sales Document
createMediaFolderContentIf linked to a Media Folder content group
updateMediaFolderContentIf linked to a Media Folder content group
updateMediaFolderCategoryIf linked to a Media Folder category (its icon)

Request​

Responses​