The following SOAP methods are provided specifically for the creation and customization of article templates.
create
Create article template
EvalancheResourceInformation create ( string title, int type_id, string template, int folder_id )
Details
Parameters
- string title: Name of the article template
- int type_id: Type of article template (33=Email; 34=Text; 35=PDF; 36=Web/Mobile)
- string template: Content of the template
- int folder_id: ID of the folder in which the template is to be created
Return value
- EvalancheResourceInformation: Object analogous to the method getById (retrieve information about an object using object Id)
Required rights
Create article template
Use
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletemplate"> <soapenv
:Header/> <soapenv
:Body> <art:
create> <title>TEMPLATE_NAME</title>
<type_id>33</type_id>
<template>CONTENT</template>
<folder_id>FOLDER_ID</folder_id> </art
:
create> </soapenv
:Body> </soapenv
:Envelope>>/soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletemplate"> <SOAP-ENV
:Body> <ns1:createResponse>
<createResult> <url>https://scnem.com/art_resource.php?sid=eiu5m.5
h4adj</url> <type_id>33</type_id>
<category_id>FOLDER_ID>/category_id>
<customer_id>
MANDATOR_ID</customer_id> <id>TEMPLATE_ID</id>
<name>TEMPLATE_NAME</name>
</createResult> </ns1:
createResponse> </SOAP-ENV
:Body> </SOAP-ENV
:Envelope> </SOAP-ENV:Envelope>
updateTemplate
Change article template
EvalancheResourceInformation updateTemplate ( int template_id, string template )
Details
Parameters
- int template_id: ID of the article template
- string template: Content of the template
Return value
- EvalancheResourceInformation: Object analogous to the method getById (retrieve information about an object using object Id)
Required rights
Change article template
Use
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletemplate"> <soapenv
:Header/> <soapenv
:Body> <art:
updateTemplate> <template_id>TEMPLATE_ID</template_id>
<template>CONTENT</template>
</art:updateTemplate> </soapenv
:Body> </soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletemplate"> <SOAP-ENV
:Body> <ns1:
updateTemplateResponse> <updateTemplateResult>
<url>TEMPLATE_URL</url>
<type_id>33</type_id>
<category_id>FOLDER_ID</category_id>
<customer_id>MANDATOR_ID</customer_id> <id>TEMPLATE_ID</id>
<name>TEMPLATE_NAME</name>
</updateTemplateResult> </ns1:
updateTemplateResponse> </SOAP-ENV
:Body> </SOAP-ENV
:Envelope></SOAP-ENV:Envelope>