> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PageManagementServiceImpl

> Aufruf öffentlicher Servicemethoden über die REST API: pageManagementServiceImpl

<ResponseField name="beanId" type="string">
  Die Spring-Bean-ID des aufzurufenden Services.

  pageManagementServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean-Scope. Für Serviceaufrufe wird PROTOTYPE verwendet.
</ResponseField>

<ResponseField name="functionName" type="string">
  Der öffentliche Methodenname des Services, der in der Signatur angegeben ist.
</ResponseField>

<ResponseField name="args" type="object[]">
  Das Argument-Array der Methode. Jedes Argument wird mit dem Index 0, 1 usw. übergeben; der Wert muss dem Java-Parametertyp entsprechen.
</ResponseField>

## Headers

```http theme={null}
POST /api/v1/bean/request
Content-Type: application/json
Lang-Context: de
Site-Context: my-site
Authorization: Bearer <token>
```

Senden Sie `Lang-Context` und `Site-Context` mit jeder Anfrage. Für geschützte Methoden senden Sie das JWT im Header `Authorization` im Format `Bearer <token>`.

**Zugriff:** ADMIN. **Bearer Token:** erforderlich.

* GUEST — nicht angemeldete Benutzer; nur Whitelist-Services sind verfügbar.
* USER — Authentifizierung erforderlich; Methoden mit USER-Prüfung sind verfügbar.
* ADMIN — vollständiger Zugriff auf öffentliche Methoden aller Services.
* Wenn eine Methode intern eine Rolle prüft, kann GUEST null erhalten.

## Methoden

<ResponseField name="createPage" type="String">
  | Argument      | Typ                             | Beschreibung                |
  | ------------- | ------------------------------- | --------------------------- |
  | `pageRequest` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### createPage

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "imageUrl":  null,
      "pageUrl":  null,
      "containerType":  null,
      "categoriesId":  null,
      "content":  null,
      "releaseDate":  null,
      "published":  false,
      "imageUrlRemove":  false,
      "metaInfo":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "pageManagementServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "createPage",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="deletePage" type="void">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `pageId` | `String` | Übergeben über `args[0].0`. |

  ### deletePage

  ```json theme={null}
  {
    "beanId": "pageManagementServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "deletePage",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="deletePages" type="void">
  | Argument  | Typ                 | Beschreibung                |
  | --------- | ------------------- | --------------------------- |
  | `pageIds` | `ArrayList<String>` | Übergeben über `args[0].0`. |

  ### deletePages

  ```json theme={null}
  {
    "beanId": "pageManagementServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "deletePages",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="updatePage" type="void">
  | Argument      | Typ                             | Beschreibung                |
  | ------------- | ------------------------------- | --------------------------- |
  | `pageRequest` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### updatePage

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "imageUrl":  null,
      "pageUrl":  null,
      "containerType":  null,
      "categoriesId":  null,
      "content":  null,
      "releaseDate":  null,
      "published":  false,
      "imageUrlRemove":  false,
      "metaInfo":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "pageManagementServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "updatePage",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="duplicatePage" type="void">
  | Argument      | Typ                             | Beschreibung                |
  | ------------- | ------------------------------- | --------------------------- |
  | `copyRequest` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### duplicatePage

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "fromId":  null,
      "toId":  null,
      "translate":  false,
      "emailTemplate":  false,
      "pageUrl":  null,
      "request":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "pageManagementServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "duplicatePage",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="copyPage" type="void">
  | Argument      | Typ                             | Beschreibung                |
  | ------------- | ------------------------------- | --------------------------- |
  | `copyRequest` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### copyPage

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "fromId":  null,
      "toId":  null,
      "translate":  false,
      "emailTemplate":  false,
      "pageUrl":  null,
      "request":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "pageManagementServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "copyPage",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="publishToUrl" type="void">
  | Argument       | Typ                             | Beschreibung                |
  | -------------- | ------------------------------- | --------------------------- |
  | `routeRequest` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### publishToUrl

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "pageName":  null,
      "pageRoot":  null,
      "containerId":  null,
      "containerType":  null,
      "copyTo":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "pageManagementServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "publishToUrl",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>
