Alfresco Index of Web Scripts Package '/org/alfresco/repository/wcm'
Alfresco Community v3.2.0 (2039)
5 Web Scripts

Back to Web Scripts Home

Up to package /org/alfresco/repository

/org/alfresco/repository/wcm/membership
/org/alfresco/repository/wcm/sandbox
/org/alfresco/repository/wcm/sandbox/Asset

Delete Web Project
DELETE /alfresco/service/api/wcm/webprojects/{webprojectref}
Description:Delete a single WCM web project and its contents,
webprojectref specifies which project to delete and will have been returned by a prior call to get, create or list web project.
Authentication:user
Transaction:required
Format Style:argument
Default Format:json
Lifecycle:draft_public_api
Id:org/alfresco/repository/wcm/webproject.delete
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/webproject.delete.desc.xml

Get Web Project
GET /alfresco/service/api/wcm/webprojects/{webprojectref}
Description:Get a single WCM web project in JSON format.
Authentication:user
Transaction:required
Format Style:argument
Default Format:json
Lifecycle:draft_public_api
Id:org/alfresco/repository/wcm/webproject.get
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/webproject.get.desc.xml

Create Web Project
POST /alfresco/service/api/wcm/webprojects
Description:Create (POST) a single WCM web project.
The following fields are required in the body of the request:
name
Human readable name for the web project.
title
Human readable title for the web project.
dnsName
The name of the web project which will become part of the URL. Should be short and unique.

The following fields are optional:
description
description about the web project

Returns 201, STATUS_CREATED on success. The body of the return will contain the new Web Project.
Authentication:user
Transaction:required
Format Style:argument
Default Format:json
Lifecycle:draft_public_api
Id:org/alfresco/repository/wcm/webproject.post
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/webproject.post.desc.xml

Update Web Project
PUT /alfresco/service/api/wcm/webprojects/{webprojectref}
Description:Update a single WCM web project
webprojectref is the unique reference returned by an earlier call to list, get or create web project
The following fields are may be updated in the body of the request:
  • name
  • title
  • description
  • isTemplate

    • Returns 200 STATUS_OK, the body of the return will contain the updated web project.
Authentication:user
Transaction:required
Format Style:argument
Default Format:json
Lifecycle:draft_public_api
Id:org/alfresco/repository/wcm/webproject.put
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/webproject.put.desc.xml

Web Projects
GET /alfresco/service/api/wcm/webprojects?userName={userName?}
GET /alfresco/service/api/wcm/webprojects
Description:Get a list of the WCM Web projects.
userName is an optional argument that if specified then only those web projects for the specified user are returned else all web projects are returned.
Authentication:user
Transaction:required
Format Style:argument
Default Format:json
Lifecycle:draft_public_api
Id:org/alfresco/repository/wcm/webprojects.get
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/wcm/webprojects.get.desc.xml