Web Assets

Archive an asset (file) to make it inactive while preserving it in the system.

post/api/v1/assets/_archive

Request

Request body

assetPathstring required

Full path to the asset (file) to be archived

Example request

{
  "assetPath": "//demo.dotcms.com/temp/temp-presentation.pptx"
}

Response

Asset archived successfully

entityboolean
i18nMessagesMapobject
permissionsstring[]

Changes

    • breaking

      request body became required

    • breaking

      removed the media type */* from the request body

    • info

      added the media type application/json to the request body

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status