Ändern von zentralen Inhalten
RequestParameter: UpdateSectionRequest
ResponseParameter: UpdateSectionResponse
Mit Hilfe dieser Methode können Sie einen bestehenden zentralen Inhalt ändern. Für die Verwaltung von Bildern der Mediendatenbank verwenden Sie das Web-Service MediaService.
Das Request-Objekt besitzt folgende Felder zur Steuerung der Abfrage:
**Section:**
Der zu ändernde Abschnitt.
**Location:**
Der optional abgeänderte Pfad.
**DisplayName:**
Der Anzeigename.
**ValidFrom:**
Das Anfangsdatum des Gültigkeitszeitraum.
**ValidTo:**
Das Enddatum des Gültigkeitszeitraum.
**CatchPhrase:**
Das zu ändernde Schlagwort.
**Location**
ist optional. Wird es nicht eingegeben so bleibt der Zentrale Inhalt in seinem aktuellen Verzeichnis.
Das **Response-Objekt**
enthält keine Informationen.

Beispiel Request „Ändern von zentralen Inhalten“
C#
//Create an instance of the service agent
ServiceAgent agent = new ServiceAgent();
TemplateRequest request = new TemplateRequest();
request.SecurityContext = GetSecurityContext();
//Get the templates from mailworx
TemplateResponse response = agent.GetTemplates(request);
//get existing sections
CentralSectionRequest request = new CentralSectionRequest();
request.SecurityContext = GetSecurityContext();
request.Template = response.Templates[0];
CentralSectionResponse secResponse =
agent.GetCentralSections(secRequest);
//select central section for update
Section updSection = secResponse.Sections[0];
//make changes to section
updSection.Created = DateTime.Now;
//create request
UpdateSectionRequest updRequest =
new UpdateSectionRequest();
updRequest.SecurityContext = GetSecurityContext();
updRequest.Section = updSection;
// Optional: Set the new location of the section.
updateRequest.Location = "Neuer Ordner/Sub Ordner/Sub Ordner neu";
//update the central section
UpdateSectionResponse updResponse =
agent.UpdateCentralSection(updRequest);
ProfilesRequest
zur Definition, welche Zielgruppe ausgelesen werden sollen. Da Zielgruppen in der eworx Marketing Suite sprachunabhängig sind, wird die Language Eigenschaft von der SecureRequest-Message
Klasse ignoriert.
ProfilesResponse
beinhaltet ein Array von Zielgruppen, welche den in ProfilesRequest
beschriebenen Kriterien entsprechen.
Profile ist die Klasse, welche eine Zielgruppe in der eworx Marketing Suite abbildet.