Utilisation de REST pour définir les valeurs de contenu par défaut de modèles de contenu
Vous pouvez mettre à jour et lire les valeurs de contenu par défaut des objets de contenu qui sont créés à l'aide d'un modèle de contenu.
- Eléments
- Workflow par défaut
- Remplacement de modèle de présentation
- Propriétés de configuration (pour les versions HCL Digital Experience 9.5 CF_173, CF18 et ultérieures. Cette option est uniquement disponible pour les utilisateurs des versions HCL Digital Experience 8.5 et 9.0 CF18.)
- Appliquez les modèles de contenu aux objets de contenu (pour les versions HCL Digital Experience 9.5 CF_173, CF18 et ultérieures. Cette option est uniquement disponible pour les utilisateurs des versions HCL Digital Experience 8.5 et 9.0 CF18.)
Mettre à jour
/ContentTemplate/item-uuid/Prototype
PUT /wps/mycontenthandler/wcmrest/ContentTemplate/d19db2ce-87dc-484f-937a-203139818fbd/Prototype
Content-Type: application/atom+xml
<?xml version="1.0" encoding="UTF-8"?><entry xmlns="http://www.w3.org/2005/Atom"
xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
<id>wcmrest:8986d098-4b75-43c0-b912-37c905960dd1</id>
<wcm:type>Content</wcm:type>
<link rel="workflow" href="/wps/mycontenthandler/!ut/p/wcmrest/Workflow/27b4254a-3762-42e3-
8099-997f394874d4" label="Workflow"/>
<link rel="presentation-override"
href="/wps/mycontenthandler/!ut/p/wcmrest/PresentationTemplate/832f2d12-829c-41eb-a808-63393a3f77ce"
label="Presentation Override"/>
</entry>
HTTP/1.0 200 OK
Content-type: application/atom+xml; type=entry
<?xml version="1.0" encoding="UTF-8"?><entry xmlns="http://www.w3.org/2005/Atom"
xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
<id>wcmrest:8986d098-4b75-43c0-b912-37c905960dd1</id>
<title/>
<summary/>
<wcm:type>Content</wcm:type>
<updated>2015-03-19T04:06:49.489Z</updated>
<wcm:created>2015-03-19T04:02:33.670Z</wcm:created>
<wcm:lastModifier>
<wcm:distinguishedName>uid=wpsadmin,cn=users,dc=test</
wcm:distinguishedName>
<uri>/wps/mycontenthandler/!ut/p/um/users/profiles/
Z9eAeO9PA3SGCJPO0JM4633DEJM46GHC4MM07LHO4JM4C2BCCJOO64JCAMHH613</uri>
<name>wpsadmin</name>
</wcm:lastModifier>
<wcm:creator>
<wcm:distinguishedName>uid=wpsadmin,cn=users,dc=test</
wcm:distinguishedName>
<uri>/wps/mycontenthandler/!ut/p/um/users/profiles/
Z9eAeO9PA3SGCJPO0JM4633DEJM46GHC4MM07LHO4JM4C2BCCJOO64JCAMHH613</uri>
<name>wpsadmin</name>
</wcm:creator>
<link rel="self" href="/wps/mycontenthandler/!ut/p/wcmrest/
ContentTemplate/d19db2ce-87dc-484f-937a-203139818fbd/Prototype" label="Read"/>
<link rel="edit" href="/wps/mycontenthandler/!ut/p/wcmrest/
ContentTemplate/d19db2ce-87dc-484f-937a-203139818fbd/Prototype" label="Edit"/>
<link rel="workflow-stage" href="/wps/mycontenthandler/!ut/p/wcmrest/
WorkflowStage/b241a6b7-49ea-4a33-ad26-4ca1cc927620" label="Workflow Stage"/>
<link rel="workflow" href="/wps/mycontenthandler/!ut/p/wcmrest/
Workflow/27b4254a-3762-42e3-8099-997f394874d4" label="Workflow"/>
<link rel="edit-media" href="/wps/mycontenthandler/!ut/p/wcmrest/Content/
8986d098-4b75-43c0-b912-37c905960dd1" type="application/vnd.ibm.wcm+xml" label="Edit Media"/>
<link rel="presentation-override" href="/wps/mycontenthandler/!ut/p/
wcmrest/PresentationTemplate/832f2d12-829c-41eb-a808-63393a3f77ce" label="Presentation Override"/>
<category scheme="wcmrest:workflowState" term="DRAFT" label="Draft"/>
<content type="application/vnd.ibm.wcm+xml">
<wcm:content xmlns="http://www.ibm.com/xmlns/wcm/8.0">
<elements xmlns:atom="http://www.w3.org/2005/Atom"/>
</wcm:content>
</content>
</entry>
Mises à jour de configuration de l'élément de l'API Content Template améliorée
Les mises à jour de configuration de l'élément de l'API Content Template améliorée permettent de mettre à jour la configuration des éléments de modèle en exécutant une méthode HTTP PUT et en incluant les mises à jour dans le corps de la demande HTTP PUT. Si props=true, la configuration est également incluse et la réponse contiendra la mise à jour complète comme dans une demande HTTP GET pour la configuration des éléments (les modifications seront reflétées dans la réponse). Seules les options de configuration incluses seront mises à jour.
&mime-type=application/json
- Sélection utilisateur
- Référence de composant
- Date et heure
- Fichier
- HTML
- Image
- JSP
- Lien
- Nombre
- Sélection d'option
- Texte enrichi
- Texte court
- Texte
Vous pouvez accéder et mettre à jour les propriétés de configuration des éléments de modèle de contenu en envoyant des demandes dans les formats suivants. L'exemple ci-dessous met en évidence ce qui pourrait être modifié dans un DateComponent.
Exemple de réponse issue d'une commande GET
- Modèle d'URL :
/wps/mycontenthandler/wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/ Prototype?props=true
- XML :
-
<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0"> <id>wcmrest:6374c462-cc80-4859-86c0-97eb5a46a483</id> <title xml:lang="fr-fr">CT-Date-default-title</title> <summary xml:lang="fr-fr">CT-Date-default-description</summary> <wcm:name>CT-Date-default-name</wcm:name> <wcm:type>Content</wcm:type> <updated>2020-03-16T18:55:38.817Z</updated> <wcm:created>2020-02-24T19:23:31.582Z</wcm:created> <wcm:lastModifier> <wcm:distinguishedName>uid=wpsadmin,o=defaultWIMFileBasedRealm</wcm:distinguishedName> <uri>/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/um/users/profiles/ Z9eAe5BP0JOKCJHCCJM86O9C0JMG633ECJM8C33P2JM8CMHOAMO473BD23J1733</uri> <name>wpsadmin</name> </wcm:lastModifier> <wcm:creator> <wcm:distinguishedName>uid=wpsadmin,o=defaultWIMFileBasedRealm</wcm:distinguishedName> <uri>/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/um/users/profiles/ Z9eAe5BP0JOKCJHCCJM86O9C0JMG633ECJM8C33P2JM8CMHOAMO473BD23J1733</uri> <name>wpsadmin</name> </wcm:creator> <wcm:profile/> <wcm:workflow> <wcm:publishDate>2020-02-24T19:21:40.476Z</wcm:publishDate> </wcm:workflow> <link rel="self" href="/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/ wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/Prototype" xml:lang="fr-fr" label="Read"/> <link rel="edit" href="/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/ wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/Prototype" xml:lang="fr-fr" label="Edit"/> <link rel="edit-media" href="/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/ wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/Prototype" type="application/vnd.ibm.wcm+xml" xml:lang="fr-fr" label="Edit Media"/> <content type="application/vnd.ibm.wcm+xml"> <wcm:content xmlns="http://www.ibm.com/xmlns/wcm/8.0"> <elements xmlns:atom="http://www.w3.org/2005/Atom"> <element name="Sample Date name"> <title xml:lang="fr-fr">Sample Date title</title> <type>DateComponent</type> <data type="application/vnd.ibm.wcm+xml"> <PropertiesContent type="application/vnd.ibm.wcm+xml"> <properties key="HELP_TEXT">This is a date and time component!</properties> <properties key="HELP_TEXT_PROVIDER_NAME">NONE</properties> <properties key="HIDDEN">true</properties> <properties key="MANDATORY">true</properties> <properties key="DATE_TYPE">0</properties> <properties key="START_OFFSET_DAYS">1</properties> <properties key="START_OFFSET_HOURS">1</properties> <properties key="START_OFFSET_MINUTES">1</properties> <properties key="END_OFFSET_DAYS">2</properties> <properties key="END_OFFSET_HOURS">2</properties> <properties key="END_OFFSET_MINUTES">2</properties> <properties key="STARTDATE">Fri Mar 13 01:00:00 GMT 2020</properties> <properties key="ENDDATE">Sat Mar 14 01:00:00 GMT 2020</properties> <date type="DateTime">2020-02-25T00:00:00.000Z</date> </PropertiesContent> </data> </element> </elements> </wcm:content> </content> </entry>
Exemple de contenu de corps pour la demande PUT
- Modèle d'URL :
/wps/mycontenthandler/wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/ Prototype?props=true
- XML :
<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0"> <id>wcmrest:6374c462-cc80-4859-86c0-97eb5a46a483</id> <title xml:lang="fr-fr">CT-Date-default-title</title> <summary xml:lang="fr-fr">CT-Date-default-description</summary> <wcm:name>CT-Date-default-name</wcm:name> <wcm:type>Content</wcm:type> <updated>2020-03-16T18:55:38.817Z</updated> <wcm:created>2020-02-24T19:23:31.582Z</wcm:created> <wcm:lastModifier> <wcm:distinguishedName>uid=wpsadmin,o=defaultWIMFileBasedRealm</wcm:distinguishedName> <uri>/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/um/users/profiles/ Z9eAe5BP0JOKCJHCCJM86O9C0JMG633ECJM8C33P2JM8CMHOAMO473BD23J1733</uri> <name>wpsadmin</name> </wcm:lastModifier> <wcm:creator> <wcm:distinguishedName>uid=wpsadmin,o=defaultWIMFileBasedRealm</wcm:distinguishedName> <uri>/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/um/users/profiles/ Z9eAe5BP0JOKCJHCCJM86O9C0JMG633ECJM8C33P2JM8CMHOAMO473BD23J1733</uri> <name>wpsadmin</name> </wcm:creator> <wcm:profile/> <wcm:workflow> <wcm:publishDate>2020-02-24T19:21:40.476Z</wcm:publishDate> </wcm:workflow> <link rel="self" href="/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/ wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/Prototype" xml:lang="fr-fr" label="Read"/> <link rel="edit" href="/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/ wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/Prototype" xml:lang="fr-fr" label="Edit"/> <link rel="edit-media" href="/wps/mycontenthandler/!ut/p/digest!zdqL4jKy5iNx_s0HSkKhgA/ wcmrest/ContentTemplate/be740772-5e30-48da-b7a6-e57839d58ea0/Prototype" type="application/vnd.ibm.wcm+xml" xml:lang="fr-fr" label="Edit Media"/> <content type="application/vnd.ibm.wcm+xml"> <wcm:content xmlns="http://www.ibm.com/xmlns/wcm/8.0"> <elements xmlns:atom="http://www.w3.org/2005/Atom"> <element name="Sample Date name"> <title xml:lang="fr-fr">Sample Date title</title> <type>DateComponent</type> <data type="application/vnd.ibm.wcm+xml"> <PropertiesContent type="application/vnd.ibm.wcm+xml"> <properties key="HELP_TEXT">This is an update to the date and time component!</properties> <properties key="HELP_TEXT_PROVIDER_NAME">NONE</properties> <properties key="HIDDEN">true</properties> <properties key="MANDATORY">true</properties> <properties key="DATE_TYPE">0</properties> <properties key="START_OFFSET_DAYS">2</properties> <properties key="START_OFFSET_HOURS">2</properties> <properties key="START_OFFSET_MINUTES">2</properties> <properties key="END_OFFSET_DAYS">3</properties> <properties key="END_OFFSET_HOURS">3</properties> <properties key="END_OFFSET_MINUTES">3</properties> <properties key="STARTDATE">Fri Mar 13 01:00:00 GMT 2020</properties> <properties key="ENDDATE">Sat Mar 14 01:00:00 GMT 2020</properties> <date type="DateTime">2020-02-25T00:00:00.000Z</date> </PropertiesContent> </data> </element> </elements> </wcm:content> </content> </entry>
Mettre à jour
/ContentTemplate/item-uuid/Prototype
PUT /wps/mycontenthandler/wcmrest/ContentTemplate/d19db2ce-87dc-484f-937a-203139818fbd/Prototype
Content-Type: application/atom+xml
<?xml version="1.0" encoding="UTF-8"?><entry xmlns="http://www.w3.org/2005/Atom"
xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
<id>wcmrest:8986d098-4b75-43c0-b912-37c905960dd1</id>
<wcm:type>Content</wcm:type>
<link rel="workflow" href="/wps/mycontenthandler/!ut/p/wcmrest/Workflow/27b4254a-3762-42e3-
8099-997f394874d4" label="Workflow"/>
<link rel="presentation-override"
href="/wps/mycontenthandler/!ut/p/wcmrest/PresentationTemplate/832f2d12-829c-41eb-a808-63393a3f77ce"
label="Presentation Override"/>
</entry>
HTTP/1.0 200 OK
Content-type: application/atom+xml; type=entry
<?xml version="1.0" encoding="UTF-8"?><entry xmlns="http://www.w3.org/2005/Atom"
xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
<id>wcmrest:8986d098-4b75-43c0-b912-37c905960dd1</id>
<title/>
<summary/>
<wcm:type>Content</wcm:type>
<updated>2015-03-19T04:06:49.489Z</updated>
<wcm:created>2015-03-19T04:02:33.670Z</wcm:created>
<wcm:lastModifier>
<wcm:distinguishedName>uid=wpsadmin,cn=users,dc=test</
wcm:distinguishedName>
<uri>/wps/mycontenthandler/!ut/p/um/users/profiles/
Z9eAeO9PA3SGCJPO0JM4633DEJM46GHC4MM07LHO4JM4C2BCCJOO64JCAMHH613</uri>
<name>wpsadmin</name>
</wcm:lastModifier>
<wcm:creator>
<wcm:distinguishedName>uid=wpsadmin,cn=users,dc=test</
wcm:distinguishedName>
<uri>/wps/mycontenthandler/!ut/p/um/users/profiles/
Z9eAeO9PA3SGCJPO0JM4633DEJM46GHC4MM07LHO4JM4C2BCCJOO64JCAMHH613</uri>
<name>wpsadmin</name>
</wcm:creator>
<link rel="self" href="/wps/mycontenthandler/!ut/p/wcmrest/
ContentTemplate/d19db2ce-87dc-484f-937a-203139818fbd/Prototype" label="Read"/>
<link rel="edit" href="/wps/mycontenthandler/!ut/p/wcmrest/
ContentTemplate/d19db2ce-87dc-484f-937a-203139818fbd/Prototype" label="Edit"/>
<link rel="workflow-stage" href="/wps/mycontenthandler/!ut/p/wcmrest/
WorkflowStage/b241a6b7-49ea-4a33-ad26-4ca1cc927620" label="Workflow Stage"/>
<link rel="workflow" href="/wps/mycontenthandler/!ut/p/wcmrest/
Workflow/27b4254a-3762-42e3-8099-997f394874d4" label="Workflow"/>
<link rel="edit-media" href="/wps/mycontenthandler/!ut/p/wcmrest/Content/
8986d098-4b75-43c0-b912-37c905960dd1" type="application/vnd.ibm.wcm+xml" label="Edit Media"/>
<link rel="presentation-override" href="/wps/mycontenthandler/!ut/p/
wcmrest/PresentationTemplate/832f2d12-829c-41eb-a808-63393a3f77ce" label="Presentation Override"/>
<category scheme="wcmrest:workflowState" term="DRAFT" label="Draft"/>
<content type="application/vnd.ibm.wcm+xml">
<wcm:content xmlns="http://www.ibm.com/xmlns/wcm/8.0">
<elements xmlns:atom="http://www.w3.org/2005/Atom"/>
</wcm:content>
</content>
</entry>
API Content Template améliorée
Cette API permet aux développeurs de récupérer la configuration des éléments de modèle de contenu, par exemple, si un élément est nécessaire ou non.
/wps/mycontenthandler/wcmrest/ContentTemplate/id/Prototype/elements?props=trueEn option, les données peuvent être formatées en json en ajoutant &mime-type=application/json.
Les éléments suivants sont actuellement possibles dans une requête dans WCM :
- Sélection utilisateur
- Référence de composant
- Date et heure
- Fichier
- HTML
- Image
- JSP
- Lien
- Nombre
- Sélection d'option
- Texte enrichi
- Texte court
- Texte
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>L'exemple de modèle suivant dispose de tous les champs.
Exemples de réponses
XML
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
<title xml:lang="fr-fr">Elements Feed</title>
<updated>2019-12-06T18:10:37.200Z</updated>
<entry>
<title xml:lang="fr-fr">user</title>
<wcm:name>user</wcm:name>
<wcm:type>UserSelectionComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/user" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>MAX_SELECTION</key>
<value>1</value>
</properties>
<wcm:userSelection xmlns="http://www.ibm.com/xmlns/wcm/8.0" xmlns:atom="http://www.w3.org/2005/Atom"/>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">componentReference</title>
<wcm:name>componentReference</wcm:name>
<wcm:type>ReferenceComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/componentReference" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>ALLOWED_TYPES</key>
<value>com.aptrix.pluto.cmpnt.HTMLCmpnt, com.aptrix.pluto.cmpnt.ImageResourceCmpnt</value>
</properties>
<wcm:reference></wcm:reference>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">dateandtime</title>
<wcm:name>dateandtime</wcm:name>
<wcm:type>DateComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/dateandtime" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>STARTDATE</key>
<value>Fri Dec 13 00:00:00 GMT 2019</value>
</properties>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">file</title>
<wcm:name>file</wcm:name>
<wcm:type>FileComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/file" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>ALLOWED_MIME_TYPES</key>
<value>[unknown/unknown, video/ogg]</value>
</properties>
<properties>
<key>MAX_BYTES</key>
<value>20000</value>
</properties>
<properties>
<key>MIN_BYTES</key>
<value>200</value>
</properties>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">html</title>
<wcm:name>html</wcm:name>
<wcm:type>HTMLComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/html" xml:lang="fr-fr" label="Read"/>
<content type="text/html">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>FILTER_ACTIVE_CONTENT</key>
<value>true</value>
</properties>
<properties>
<key>MIN_CHARS</key>
<value>200</value>
</properties>
<properties>
<key>MAX_CHARS</key>
<value>400</value>
</properties>Default HTML
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">image</title>
<wcm:name>image</wcm:name>
<wcm:type>ImageComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/image" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>ALLOWED_MIME_TYPES</key>
<value>[image/jpeg, image/png]</value>
</properties>
<properties>
<key>MAX_BYTES</key>
<value>300</value>
</properties>
<wcm:image xmlns="http://www.ibm.com/xmlns/wcm/8.0">
<dimension height="" width="" border="0"/>
<altText></altText>
<tagName></tagName>
</wcm:image>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">jsp</title>
<wcm:name>jsp</wcm:name>
<wcm:type>JSPComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/jsp" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<wcm:jsp xmlns="http://www.ibm.com/xmlns/wcm/8.0">
<path></path>
</wcm:jsp>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">link</title>
<wcm:name>link</wcm:name>
<wcm:type>LinkComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/link" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>RESTRICTED_TYPES</key>
<value>[portalpage, imagecomponent]</value>
</properties>
<wcm:linkElement xmlns="http://www.ibm.com/xmlns/wcm/8.0">
<destination type="content" allowClear="false" queryString=""></destination>
<display type="title"></display>
<description useDestination="false"></description>
<target>None</target>
<additionalAttributes></additionalAttributes>
</wcm:linkElement>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">number</title>
<wcm:name>number</wcm:name>
<wcm:type>NumericComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/number" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<wcm:double xmlns="http://www.ibm.com/xmlns/wcm/8.0"/>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">option</title>
<wcm:name>option</wcm:name>
<wcm:type>OptionSelectionComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/option" xml:lang="fr-fr" label="Read"/>
<content type="application/vnd.ibm.wcm+xml">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>MAX_SELECTION</key>
<value>1</value>
</properties>
<properties>
<key>MIN_SELECTION</key>
<value>1</value>
</properties>
<properties>
<key>VALUES</key>
<value>[test1, test2]</value>
</properties>
<properties>
<key>TYPE</key>
<value>0</value>
</properties>
<wcm:optionselection xmlns="http://www.ibm.com/xmlns/wcm/8.0">
<displaytype>CheckboxesOrRadioButtons</displaytype>
<selection>UserDefined</selection>
<options mode="Singleselect">
<option selected="false" id="test1">test1</option>
<option selected="false" id="test2">test2</option>
</options>
</wcm:optionselection>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">richtext</title>
<wcm:name>richtext</wcm:name>
<wcm:type>RichTextComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/richtext" xml:lang="fr-fr" label="Read"/>
<content type="text/html">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>IS_STYLE_DRIVEN</key>
<value>true</value>
</properties>
<properties>
<key>IS_RICHTEXT_ONLY</key>
<value>true</value>
</properties>
<properties>
<key>FILTER_ACTIVE_CONTENT</key>
<value>true</value>
</properties>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">shorttext</title>
<wcm:name>shorttext</wcm:name>
<wcm:type>ShortTextComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/shorttext" xml:lang="fr-fr" label="Read"/>
<content type="text/plain">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>MAX_CHARS</key>
<value>250</value>
</properties>
</PropertiesContent>
</content>
</entry>
<entry>
<title xml:lang="fr-fr">text</title>
<wcm:name>text</wcm:name>
<wcm:type>TextComponent</wcm:type>
<link rel="alternate" href="/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/text" xml:lang="fr-fr" label="Read"/>
<content type="text/plain">
<PropertiesContent>
<properties>
<key>HELP_TEXT_PROVIDER_NAME</key>
<value>NONE</value>
</properties>
<properties>
<key>HIDDEN</key>
<value>false</value>
</properties>
<properties>
<key>MANDATORY</key>
<value>false</value>
</properties>
<properties>
<key>MIN_CHARS</key>
<value>200</value>
</properties>
<properties>
<key>MAX_CHARS</key>
<value>400</value>
</properties>Test the sample
</PropertiesContent>
</content>
</entry>
</feed>
JSON:
{
"feed": {
"title": {
"lang": "en",
"value": "Elements Feed"
},
"updated": "Fri, 06 Dec 2019 18:07:58.243Z",
"entry": [
{
"title": {
"lang": "en",
"value": "user"
},
"name": "user",
"type": "UserSelectionComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/user",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "MAX_SELECTION",
"value": "1"
}
],
"userSelection": {}
}
}
},
{
"title": {
"lang": "en",
"value": "componentReference"
},
"name": "componentReference",
"type": "ReferenceComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/componentReference",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "ALLOWED_TYPES",
"value": "com.aptrix.pluto.cmpnt.HTMLCmpnt, com.aptrix.pluto.cmpnt.ImageResourceCmpnt"
}
],
"reference": ""
}
}
},
{
"title": {
"lang": "en",
"value": "dateandtime"
},
"name": "dateandtime",
"type": "DateComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/dateandtime",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "STARTDATE",
"value": "Fri Dec 13 00:00:00 GMT 2019"
}
]
}
}
},
{
"title": {
"lang": "en",
"value": "file"
},
"name": "file",
"type": "FileComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/file",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "ALLOWED_MIME_TYPES",
"value": "[unknown/unknown, video/ogg]"
},
{
"key": "MAX_BYTES",
"value": "20000"
},
{
"key": "MIN_BYTES",
"value": "200"
}
]
}
}
},
{
"title": {
"lang": "en",
"value": "html"
},
"name": "html",
"type": "HTMLComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/html",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "text/html",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "FILTER_ACTIVE_CONTENT",
"value": "true"
},
{
"key": "MIN_CHARS",
"value": "200"
},
{
"key": "MAX_CHARS",
"value": "400"
}
],
"value": "Default HTML"
}
}
},
{
"title": {
"lang": "en",
"value": "image"
},
"name": "image",
"type": "ImageComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/image",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "ALLOWED_MIME_TYPES",
"value": "[image/jpeg, image/png]"
},
{
"key": "MAX_BYTES",
"value": "300"
}
],
"image": {
"dimension": {
"height": "",
"width": "",
"border": "0"
},
"altText": "",
"tagName": ""
}
}
}
},
{
"title": {
"lang": "en",
"value": "jsp"
},
"name": "jsp",
"type": "JSPComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/jsp",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
}
],
"jsp": {
"path": ""
}
}
}
},
{
"title": {
"lang": "en",
"value": "link"
},
"name": "link",
"type": "LinkComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/link",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "RESTRICTED_TYPES",
"value": "[portalpage, imagecomponent]"
}
],
"linkElement": {
"destination": {
"type": "content",
"allowClear": false,
"queryString": ""
},
"display": {
"type": "title"
},
"description": {
"useDestination": false,
"value": ""
},
"target": "None",
"additionalAttributes": ""
}
}
}
},
{
"title": {
"lang": "en",
"value": "number"
},
"name": "number",
"type": "NumericComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/number",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
}
],
"double": null
}
}
},
{
"title": {
"lang": "en",
"value": "option"
},
"name": "option",
"type": "OptionSelectionComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/option",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "application/vnd.ibm.wcm+xml",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "MAX_SELECTION",
"value": "1"
},
{
"key": "MIN_SELECTION",
"value": "1"
},
{
"key": "VALUES",
"value": "[test1, test2]"
},
{
"key": "TYPE",
"value": "0"
}
],
"optionselection": {
"displaytype": "CheckboxesOrRadioButtons",
"selection": "UserDefined",
"options": {
"mode": "Singleselect",
"option": [
{
"selected": false,
"id": "test1",
"value": "test1"
},
{
"selected": false,
"id": "test2",
"value": "test2"
}
]
}
}
}
}
},
{
"title": {
"lang": "en",
"value": "richtext"
},
"name": "richtext",
"type": "RichTextComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/richtext",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "text/html",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "IS_STYLE_DRIVEN",
"value": "true"
},
{
"key": "IS_RICHTEXT_ONLY",
"value": "true"
},
{
"key": "FILTER_ACTIVE_CONTENT",
"value": "true"
}
],
"value": ""
}
}
},
{
"title": {
"lang": "en",
"value": "shorttext"
},
"name": "shorttext",
"type": "ShortTextComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/shorttext",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "text/plain",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "MAX_CHARS",
"value": "250"
}
],
"value": ""
}
}
},
{
"title": {
"lang": "en",
"value": "text"
},
"name": "text",
"type": "TextComponent",
"link": [
{
"rel": "alternate",
"href": "/wps/mycontenthandler/!ut/p/digest!e_-zQHtjYVrte9FiINA8xA/wcmrest/ContentTemplate/5640de67-315c-4674-bd7f-b6778f3e8858/Prototype/elements/text",
"lang": "en",
"label": "Read"
}
],
"content": {
"type": "text/plain",
"PropertiesContent": {
"properties": [
{
"key": "HELP_TEXT_PROVIDER_NAME",
"value": "NONE"
},
{
"key": "HIDDEN",
"value": "false"
},
{
"key": "MANDATORY",
"value": "false"
},
{
"key": "MIN_CHARS",
"value": "200"
},
{
"key": "MAX_CHARS",
"value": "400"
}
],
"value": "Test the sample"
}
}
}
]
}
}
API Apply Content Template
Nœud final Vous pouvez envoyer une demande PUT à :
http://host:port/wps/mycontenthandler/!ut/p/digest!KG7Oo8qSOni4fLuinAp3sA/wcmrest/ContentTemplateApply/<template-id>?addNewElements=true&removeElements=<true|false>&replaceElementsAutoConversion=<true|false>©HiddenFields=<true|false>&defaultValueMandatoryFields=<true|false>&saveInvalidItems=<true|false>&saveItemsAsDrafts=<true|false>&listOfContentIDs=&templateContentID=
Modèle d'URL
http://localhost:10039/wps/mycontenthandler/!ut/p/digest!KG7Oo8qSOni4fLuinAp3sA/wcmrest/ContentTemplateApply/3c8c5996-4e2a-4c86-a82d-e379bd0c45f0?addNewElements=true&removeElements=true&replaceElementsAutoConversion=false©HiddenFields=false&defaultValueMandatoryFields=true&saveInvalidItems=false&saveItemsAsDrafts=false&listOfContentIDs=dc4374b5-22df-448b-becf-bef929c3304f&templateContentID=d2b5a431-760d-47a3-90d7-cc80e116f8bb
Corps attendu
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:wcm="wcm/namespace">
</atom:entry>En-têtes attendus
Jeton LTPA de l'utilisateur.
addNewElements: Ajouter de nouveaux éléments au contenu - true|falseremoveElements: Retirer des éléments du contenu - true|falsereplaceElementsAutoConversion: Essayer la conversion automatique des éléments mis à jour - true|falsecopyHiddenFields: Copier des éléments masqués - true|falsedefaultValueMandatoryFields= Ajouter une valeur par défaut aux champs obligatoires - il utilise le templateContentID comme contenu à partir duquel les valeurs par défaut sont copiées - true|falsesaveInvalidItems= Enregistrer les éléments non valides - true|falsesaveItemsAsDrafts= Enregistrer les éléments comme brouillons - true|falselistOfContentIDs= Paramètre facultatif - si non fourni ou vide, le modèle est appliqué à tout le contenu du modèle - liste d'ID séparés par une virguletemplateContentID= ID du contenu du modèle utilisé pour les valeurs par défaut - ID du contenu
Corps en retour
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
<id><ID of the content template></id>
<title>ApplyContentTemplate</title>
<updated><Timestamp when it was updated></updated>
<entry>
<content type="application/vnd.ibm.wcm+xml">
<ContentTemplateApplication>
<contentTemplateName><Name of the template></contentTemplateName>
<contentTemplateID><ID of the content template></contentTemplateID>
<totalCount><Total number of items that were identified as to be updated></totalCount>
<convertedCount><Total number of items that were successfully updated></convertedCount>
<alreadyHasDraftsCount><Failed items as they have a draft already></alreadyHasDraftsCount>
<invalidCount><Failed items that failed as they were invalid with the update.></invalidCount>
<skippedCount><Failed items that were skipped - for instance the user does not have the right permissions on the item.></skippedCount>
</ContentTemplateApplication>
</content>
</entry>
</feed>
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:wcm="http://www.ibm.com/xmlns/wcm/8.0">
<id><ID of the content template></id>
<title>ApplyContentTemplate</title>
<updated><Timestamp when it was updated></updated>
<entry>
<content type="application/vnd.ibm.wcm+xml">
<ContentTemplateApplication>
<contentTemplateName><Name of the template></contentTemplateName>
<contentTemplateID><ID of the content template></contentTemplateID>
<totalCount><Total number of items that were identified as to be updated></totalCount>
<convertedCount><Total number of items that were successfully updated></convertedCount>
<alreadyHasDraftsCount><Failed items as they have a draft already></alreadyHasDraftsCount>
<invalidCount><Failed items that failed as they were invalid with the update.></invalidCount>
<skippedCount><Failed items that were skipped - for instance the user does not have the right permissions on the item.></skippedCount>
</ContentTemplateApplication>
</content>
</entry>
</feed>