Folgende SOAP-Methoden werden speziell für die Interaktion mit Artikel-Typen bereitgestellt.
addAttribute
Artikel-Typ-Attribute anlegen
EvalancheResourceInformation addAttribute (int resource_id, string name, string label, string type_id, string group_id)Parameter
- int resource_id: ID des Artikel-Typs
- string name: Name des neuen Attributs
- string label: Label des neuen Attributs
- string type_id: ID des Attribut-Typs des neuen Attributs. Mögliche Attribute-IDs siehe: Artikel-Typ-Attribut IDs
- string group_id: ID der Gruppe des neuen Attributs
Rückgabewert
- EvalancheArticletypeAttributes[]:Liste von Objekten mit folgenden Attributen:
- id: ID des neuen Attributs
- name: Name des neuen Attributs
- label: Label des neuen Attributs
- type_id:ID des Attribut-Typs des neuen Attributs. Mögliche Attribute-IDs siehe: Artikel-Typ-Attribut IDs
- group_id:ID der Gruppe des neuen Attributs
- help_text: Hilfetext des neuen Attributs
- input_help_text:Eingabehilfetext des neuen Attributs
- mandatory:Pflichtfeld-Option des neuen Attributs
- visible:Anzeige-Option des neuen Attributs
- replacement_variable:Ersetzungsvariable des Attributs
- allows_options:Options-Anlage Möglichkeit
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:addAttribute>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<name>ATTRIBUTE_NAME</name>
<label>ATTRIBUTE_LABLE</label>
<type_id>ATTRIBUTE_TYPE_ID</type_id>
<group_id>GROUP_ID</group_i d>
</art:addAttribute>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:addAttributeResponse>
<addAttributeResult>
<id>ATTRIBUTE_ID</id>
<name>ATTRIBUTE_NAME</name>
<label>ATTRIBUTE_LABEL</label>
<type_id>ATTRIBUTE_ID</type_id>
<group_id>GROUP_ID</group_id>
<help_text/>
<input_help_text/>
<mandatory>false</mandatory>
<visible>true</visible>
<replacement_variable>REPLACEMENT_VARIABLE</replacement_variable>
<allows_options>ALLOW_OPTIONS</allows_options>
</addAttributeResult>
</ns1:addAttributeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
addAttributeGroup
Attribut-Gruppe anlegen
EvalancheResourceInformation addAttributeGroup (int resource_id, string name)Parameter
- int resource_id: ID des Artikel-Typs
- name: Name des Attribut-Gruppe
Rückgabewert
- EvalancheArticletypeGroups[]:Liste von Objekten mit folgenden Attributen:
- id: ID der neuen Attribut-Gruppe
- name: Name der Attribut-Gruppe
- sort_order:Position in der Reihenfolge der Attribut-Gruppen
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:addAttributeGroup>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<name>TestGroup</name>
</art:addAttributeGroup>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body><ns1:addAttributeGroupResponse>
<addAttributeGroupResult>
<id>GROUP_ID</id>
<name>GROUP_NAME</name>
<sort_order>SORT_ORDER</sort_order>
</addAttributeGroupResult>
</ns1:addAttributeGroupResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
assignRoleToAttribute
Rolle einem Attribut zuweisen
EvalancheResourceInformation assignRoleToAttribute (int resource_id, int attribute_id, int type_id)Parameter
- int resource_id: Id des Artikel-Typs
- int attribute_id: Id des Attributes
- int type_id: Id des Attribut-Typs
Rückgabewert
- assignRoleToAttributeResult: True/False ob die Zuweisung erfolgreich war
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:assignRoleToAttribute>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
<type_id>ATTRIBUTE_TYPE_ID</type_id>
</art:assignRoleToAttribute>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:assignRoleToAttributeResponse>
<assignRoleToAttributeResult>true/false</assignRoleToAttributeResult>
</ns1:assignRoleToAttributeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
changeAttributeType
Attribute-Typen verändern
EvalancheResourceInformation changeAttributeType (int resource_id, int attribute_id, int type_id)Parameter
- int resource_id: ID des Artikel-Typs
- int attribute_id: ID des Attributes
- int type_id: ID des Attribut-Typs
Rückgabewert
- changeTypeResult: True/False ob das Ändern erfolgreich war
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:changeAttributeType>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
<type_id>ATTRIBUTE_TYPE_ID</type_id>
</art:changeAttributeType>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:changeAttributeTypeResponse>
<changeAttributeTypeResult>true/false</changeAttributeTypeResult>
</ns1:changeAttributeTypeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
copy
Erstellt eine Kopie der durch die resource_id angegebenen Ressource
EvalancheResourceInformation copy (int resource_id, int category_id)Details: copy
create
Artikel-Typ erstellen
EvalancheResourceInformation create (string name, int category_id)Parameter
- string name: Name des Artikel-Typs
- int category_id: ID des Ordners, in welchem der Artikel-Typ erstellt werden soll
Rückgabewert
- EvalancheResourceInformation: Objekt analog zur Methode getById (Informationen über ein Objekt mittels Objekt ID abfragen)
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:create>
<name>ARTICLE_PRESET_NAME</name>
<category_id>FOLDER_ID</category_id>
</art:create>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:createResponse>
<createResult>
<url>ARTICLE_PRESET_URL</url>
<type_id>OBJECT_TYPE_ID</type_id>
<category_id>FOLDER_ID</category_id>
<customer_id>MANDATOR_ID</customer_id>
<id>ARTICLE_PRESET_ID</id>
<name>ARTICLE_PRESET_NAME</name>
</createResult>
</ns1:createResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
createAttributeOption
Attribute-Option erstellen
EvalancheResourceInformation createAttributeOption (int resource_id, int attribute_id, string label)Parameter
- int resource_id: ID des Artikel-Typs
- int attribute_id: ID des Attributes
- string label: Label des Attributes
Rückgabewert
- id: ID der neuen Attribute-Option
- name: Name der neuen Attribute-Option
- label: Label der neuen Attribute-Option
- order: Position der neuen Attribute-Option
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:createAttributeOption>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
<label>LABEL</label>
</art:createAttributeOption>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:createAttributeOptionResponse>
<createAttributeOptionResult>
<id>ATTRIBUTE_OPTION_ID</id>
<name>ATTRIBUTE_OPTION_NAME</name>
<label>LABEL</label>
<order>ORDER</order>
</createAttributeOptionResult>
</ns1:createAttributeOptionResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
delete
Löscht die Ressource.
bool delete (int resource_id)Details: delete
getAll
Listet alle Ressourcen innerhalb eines Mandanten auf.
ArrayOfEvalancheResourceInformation getAll (int mandator_id)Details: getAll
getApplicableRoleTypes
Anwendbare Artikel-Typ-Attribut-Rollen abfragen
EvalancheResourceInformation getApplicableRoleTypes (int resource_id, int attribute_id)Parameter
- int resource_id: ID des Artikel-Typs
- int attribute_id: ID des Artikel-Typ-Attributes
Rückgabewert
- EvalancheApplicableRoleTypes[]:Liste von Objekten mit folgenden Attributen:
- id: ID der Rolle
- name: Name der Rolle
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:getApplicableRoleTypes>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
</art:getApplicableRoleTypes>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:getApplicableRoleTypesResponse>
<getApplicableRoleTypesResult>
<item>
<id>ROLE_ID</id>
<name>ROLE_NAME</name>
</item>
[...]
</getApplicableRoleTypesResult>
</ns1:getApplicableRoleTypesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getAssignedRoleTypes
Zugewiesene Artikel-Typ-Attribut-Rollen abfragen
EvalancheResourceInformation getAssignedRoleTypes (int resource_id, int attribute_id)Parameter
- int resource_id: ID des Artikel-Typs
- int attribute_id: ID des Artikel-Typ-Attributes
Rückgabewert
- EvalancheAssignedRoleTypes[]:Liste von Objekten mit folgenden Attributen:
- id: ID der Rolle
- name: Name der Rolle
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:getAssignedRoleTypes>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
</art:getAssignedRoleTypes>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:getAssignedRoleTypesResponse>
<getAssignedRoleTypesResult>
<item>
<id>ROLE_ID</id>
<name>ROLE_NAME</name>
</item>
</getAssignedRoleTypesResult>
</ns1:getAssignedRoleTypesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getAttributeGroups
Attribut-Gruppe abfragen
EvalancheResourceInformation getAttributeGroups (int resource_id)Parameter
- int resource_id: ID des Artikel-Typs
Rückgabewert
- EvalancheArticletypeGroups[]:Liste von Objekten mit folgenden Attributen:
- id: ID der Attribut-Gruppe
- name: Name der Attribut-Gruppe
- sort_order:Position in der Reihenfolge der Attribut-Gruppen
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:getAttributeGroups>
<resource_id>ARTICLE_PRESET_ID</resource_id>
</art:getAttributeGroups>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:getAttributeGroupsResponse>
<getAttributeGroupsResult>
<item>
<id>GROUP_ID</id>
<name>GROUP_NAME</name>
<sort_order>SORT_ORDER</sort_order>
</item>
[...]
</getAttributeGroupsResult>
</ns1:getAttributeGroupsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getAttributeOptions
Attribute-Optionen abfragen
EvalancheResourceInformation getAttributeOptions (int resource_id, int attribute_id)Parameter
- int resource_id: ID des Artikel-Typs, aus dem die Attribut-Optionen geholt werden sollen
- int attribute_id: ID des Attributes, aus welchem die Attribut-Optionen geholt werden sollen
Rückgabewert
- EvalancheArticletypeAttributeOptions[]:Liste von Objekten mit folgenden Attributen:
- id: ID der Attribut-Option
- name: Name der Attribut-Option
- label: Label der Attribut-Option
- order: Position in der Reihenfolge
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:getAttributeOptions>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
</art:getAttributeOptions>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:getAttributeOptionsResponse>
<getAttributeOptionsResult>
<item>
<id>ATTRIBUTE_OPTION_ID</id>
<name>ATTRIBUTE_OPTION_NAME</name>
<label>LABEL</label>
<order>ORDER</order>
</item>
[...]
</getAttributeOptionsResult>
</ns1:getAttributeOptionsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getAttributes
Artikel-Typ-Attribute abfragen
EvalancheResourceInformation getAttributes (int resource_id)Parameter
- int resource_id: ID des Artikel-Typs
Rückgabewert
- EvalancheArticletypeAttributes[]:Liste von Objekten mit folgenden Attributen:
- id: ID des Attributs
- name: Name des Attributs
- label: Label des Attributs
- type_id: ID des Attribut-Typs
- group_id: ID der Gruppe des Attributs
- help_text: Hilfetext des Attributs
- input_help_text:Eingabehilfetext des Attributs
- mandatory:Pflichtfeld-Option des Attributs
- visible: Anzeige-Option des Attributs
- replacement_variable:Ersetzungsvariable des Attributs
- allows_options:Options-Anlage Möglichkeit
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:getAttributes>
<resource_id>ARTICLE_PRESET_ID</resource_id>
</art:getAttributes>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:getAttributesResponse>
<getAttributesResult>
<item>
<id>ATTRIBUTE_ID</id>
<name>ATTRIBUTE_NAME</name>
<label>ATTRIBUTE_NAME</label>
<type_id>ATTRIBUTE_TYPE_ID</type_id>
<group_id>GROUP_ID</group_id>
<help_text>HELP_TEXT</help_text>
<input_help_text/>
<mandatory>MANDATORY</mandatory>
<visible>VISIBLE</visible>
<replacement_variable>REPLACEMENT_VARIABLE</replacement_variable>
<allows_options>ALLOW_OPTIONS</allows_options>
</item>
[...]
</getAttributesResult>
</ns1:getAttributesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getByCategory
Gibt alle Objekte eines Ordners aus.
ArrayOfEvalancheResourceInformation getByCategory (int category_id)Details: getByCategory
getByExternalId
Gibt alle Objekte mit gegebener EXTERNAL_ID aus.
ArrayOfEvalancheResourceInformation[] getByExternalId (string external_id)Details: getByExternalId
getById
Sucht ein Objekt anhand einer ID.
EvalancheHashMap getById(int resource_id)Details: getById
getByModificationDate
Eine Resource über das Änderungsdatum abfragen
EvalancheResourceInformation getByModificationDate (int start_date, int end_date, int mandator_id)Details: getByModificationDate
getByTypeId
Holen Sie sich alle Ressourcen innerhalb dieses Namespace mit der angegebenen Ressourcentyp-ID (siehe Methode getTypeIds).
ArrayOfEvalancheResourceInformation getByTypeId (int type_id, int mandator_id)Details: getByTypeId
getResourceDefaultCategory
Liefert Informationen über den Standardordner von Objekten
getResourceDefaultCategoryResponse getResourceDefaultCategory (int customer_id)Details: getResourceDefaultCategory
getTypeIds
Attribute-Typen abfragen
EvalancheResourceInformation getTypeIds ()Parameter
Rückgabewert
- EvalancheArticletypeTypes[]:Liste von Objekten mit folgenden Attributen:
- id: ID des Objekt-Types
- description:Beschreibung des Objekt-Types
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:getTypeIds/>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:getTypeIdsResponse>
<getTypeIdsResult>
<item>
<id>20</id>
<description>articletype</description>
</item>
</getTypeIdsResult>
</ns1:getTypeIdsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
isAlive
Testet, ob die API verfügbar ist und die verwendeten Anmeldeinformationen gültig sind. Die Eigenschaft `random_message` des Ergebnisses hat absolut keine Relevanz, da die Werte zufällig von http://whatthecommit.com übernommen werden.
isAliveResponse isAlive ()Details: isAlive
move
Verschiebt das Objekt in einen anderen Ordner
EvalancheResourceInformation move (int resource_id, int category_id)Details: move
removeAttribute
Artikel-Typ-Attribut entfernen
EvalancheResourceInformation removeAttribute (int resource_id, int attribute_id)Parameter
- int resource_id: ID des Artikel-Typs aus dem das Attribute entfernt werden soll
- int attribute_id: ID des Attributes, welches entfernt werden soll
Rückgabewert
- removeAttributeResult: True/False ob das Entfernen erfolgreich war
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:removeAttribute>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
</art:removeAttribute>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:removeAttributeResponse>
<removeAttributeResult>true/false</removeAttributeResult>
</ns1:removeAttributeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
removeAttributeGroup
Attribut-Gruppe entfernen
EvalancheResourceInformation removeAttributeGroup (int resource_id, int attribute_group_id)Parameter
- int resource_id: ID des Artikel-Typs
- attribute_group_id: ID der Attribut-Gruppe
Rückgabewert
- removeAttributeResult: True/False ob das Entfernen erfolgreich war
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:removeAttributeGroup>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_group_id>GROUP_ID</attribute_group_id>
</art:removeAttributeGroup>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:removeAttributeGroupResponse>
<removeAttributeGroupResult>true/false</removeAttributeGroupResult>
</ns1:removeAttributeGroupResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
removeAttributeOption
Attribute-Optionen entfernen
EvalancheResourceInformation removeAttributeOption (int resource_id, int attribute_id, int option_id)Parameter
- int resource_id: ID des Artikel-Typs
- int attribute_id: ID des zu entfernenden Attributes
- int option_id: ID der zu entfernenden Option
Rückgabewert
- removeAttributeResult: True/False ob das Entfernen erfolgreich war
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:removeAttributeOption>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
<option_id>ATTRIBUTE_OPTION_ID</option_id>
</art:removeAttributeOption>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:removeAttributeOptionResponse>
<removeAttributeOptionResult>true/false</removeAttributeOptionResult>
</ns1:removeAttributeOptionResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
rename
Gibt dem Objekt einen anderen Namen
EvalancheResourceInformation rename (int resource_id, string name)Details: rename
updateAttribute
Artikel-Typ-Attribute ändern
EvalancheResourceInformation updateAttribute (int resource_id, int attribute_id, EvalancheHashMap data, string name)Parameter
- int resource_id: ID des Artikel-Typs
- int attribute_id: ID des zu ändernden Attributs
- EvalancheHashMap data: EvalancheHashMap mit den Daten des Artikels
Rückgabewert
- EvalancheArticletypeAttributes[]:Liste von Objekten mit folgenden Attributen:
- id: ID des geänderten Attributs
- name: Name des geänderten Attributs
- label: Label des geänderten Attributs
- type_id:ID des Attribut-Typs des geänderten Attributs. Mögliche Attribute-IDs siehe: Artikel-Typ-Attribut IDs
- group_id:ID der Gruppe des geänderten Attributs
- help_text:Hilfetext des geänderten Attributs
- input_help_text:Eingabehilfetext des geänderten Attributs
- mandatory:Pflichtfeld-Option des geänderten Attributs
- visible:Anzeige-Option des geänderten Attributs
- replacement_variable:Ersetzungsvariable des geänderten Attributs
- allows_options:Options-Anlage Möglichkeit
Benötigte Rechte
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/articletype">
<soapenv:Header/>
<soapenv:Body>
<art:updateAttribute>
<resource_id>ARTICLE_PRESET_ID</resource_id>
<attribute_id>ATTRIBUTE_ID</attribute_id>
<data>
<items>
<!--Zero or more repetitions:-->
<item>
<!--You may enter the following 2 items in any order-->
<key>KEY (e.g. visible)</key>
<value>VALUE (e.g. 0)</value>
</item>
</items>
</data>
</art:updateAttribute>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/articletype">
<SOAP-ENV:Body>
<ns1:updateAttributeResponse>
<updateAttributeResult>
<id>ATTRIBUTE_ID</id>
<name>ATTRIBUTE_NAME</name>
<label>ATTRIBUTE_LABLE</label>
<type_id>ATTRIBUTE_TYPE_ID</type_id>
<group_id>GROUP_ID</group_id>
<help_text/>
<input_help_text/>
<mandatory>true/false</mandatory>
<visible>true/false</visible>
<replacement_variable>REPLACEMENT_VARIABLE</replacement_variable>
<allows_options>true/false</allows_options>
</updateAttributeResult>
</ns1:updateAttributeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Artikel-Typ-Attribut IDs
1 -> Einzeilige Eingabe
8 -> Mehrzeilige Eingabe (formatiert)
2 -> Mehrzeilige Eingabe (HTML-Editor)
6 -> Einfachselektion
7 -> Mehrfachselektion
4 -> Links (Liste)
3 -> Bild
5 -> Datum mit Uhrzeit
9 -> Dokumentation
10 -> Mehrzeilige Eingabe (Text)
11 -> Trenner
12 -> Farbe
13 -> Boolean (Wahr/Falsch)
14 -> Dokumentation (Html)
15 -> Container
20 -> Container (Liste)
16 -> Url
18 -> Bild (Liste)
19 -> Werte (Liste)