![]() |
Index of Web Scripts Family '/WCM/Asset' |
Alfresco Community v3.2.0 (2039) |
7 Web Scripts |
Back to Web Scripts Home |
Up to family /WCM |
--- |
Delete the specified asset. If the optional webApp argument is specified then the path is relative to the webapp e.g. /index.htm If webApp is not specified then the path is will be absolute e.g. /www/avm_webapps/ROOT/index.htm Returns STATUS_OK(200) for success. |
--- |
Authentication: | user |
Transaction: | required |
Format Style: | argument |
Default Format: | json |
Lifecycle: | draft_public_api |
Id: | org/alfresco/repository/wcm/sandbox/Asset/asset.delete |
Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/sandbox/Asset/asset.delete.desc.xml |
--- |
Get the details of the specified asset. If the asset is a folder, includes the children of that folder. If the asset is a file, gives the size of the file. If the optional webApp argument is specified then returns the asset relative to that web app e.g. /index.htm If webApp is not specified then the path is will be absolute e.g. /www/avm_webapps/ROOT/index.htm Return STATUS_OK, 200 Output - The asset in JSON format data: path, the full path of the asset. name, the name of the asset creator createdDate, iso8601, modifier modifiedDate, iso8601, isLocked, boolean isFile, boolean isFolder, boolean isDeleted, boolean children, JSON array, only present for folder fileSize, numeric, only present for files |
--- |
Authentication: | user |
Transaction: | required |
Format Style: | argument |
Default Format: | json |
Lifecycle: | draft_public_api |
Id: | org/alfresco/repository/wcm/sandbox/Asset/asset.get |
Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/sandbox/Asset/asset.get.desc.xml |
--- |
Create a new WCM Asset in the specified path and sandbox. If the optional webApp argument is specified then the path is relative to the webapp. If webApp is not specified then the path is will be absolute e.g. /www/avm_webapps/ROOT JSON Input values
data:The newly created asset in JSON format. |
--- |
Authentication: | user |
Transaction: | required |
Format Style: | argument |
Default Format: | json |
Lifecycle: | draft_public_api |
Id: | org/alfresco/repository/wcm/sandbox/Asset/asset.post |
Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/sandbox/Asset/asset.post.desc.xml |
--- |
Update a WCM Asset, you can rename or move an asset. JSON Input properties
JSON Return data: |
--- |
Authentication: | user |
Transaction: | required |
Format Style: | argument |
Default Format: | json |
Lifecycle: | draft_public_api |
Id: | org/alfresco/repository/wcm/sandbox/Asset/asset.put |
Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/sandbox/Asset/asset.put.desc.xml |
GET /alfresco/service/api/wcm/webprojects/{webprojectref}/sandboxes/{sandboxref}/modified |
GET /alfresco/service/api/wcm/webprojects/{webprojectref}/sandboxes/{sandboxref}/modified?webApp={webApp?} |
--- |
Get the modified (added, deleted, updated) details of an asset within an author's sandbox. If a folder has been added then only the folders's properties are returned (not folder plus assets within that new folder). If the optional webApp argument is specified then returns the modified assets within that web app. |
--- |
Authentication: | user |
Transaction: | required |
Format Style: | argument |
Default Format: | json |
Lifecycle: | draft_public_api |
Id: | org/alfresco/repository/wcm/sandbox/Asset/modified.get |
Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/sandbox/Asset/modified.get.desc.xml |
POST /alfresco/service/api/wcm/webprojects/{webprojectref}/sandboxes/{sandboxref}/reverter |
POST /alfresco/service/api/wcm/webprojects/{webprojectref}/sandboxes/{sandboxref}/reverter?webApp={webApp?} |
--- |
Revert the modified (added, deleted, updated) assets contained within an author's sandbox. If the optional webApp argument is specified then reverts the modified assets within that web app. JSON data fileds
|
--- |
Authentication: | user |
Transaction: | required |
Format Style: | argument |
Default Format: | json |
Lifecycle: | draft_public_api |
Id: | org/alfresco/repository/wcm/sandbox/Asset/revert.post |
Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/sandbox/Asset/revert.post.desc.xml |
--- |
Submit the modified (added, deleted, updated) assets contained within an author's sandbox. If the optional webApp argument is specified then submits the modified assets within that web app. JSON data fileds
|
--- |
Authentication: | user |
Transaction: | required |
Format Style: | argument |
Default Format: | json |
Lifecycle: | draft_public_api |
Id: | org/alfresco/repository/wcm/sandbox/Asset/submit.post |
Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/sandbox/Asset/submit.post.desc.xml |