> ## 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.

# MarketingServiceImpl

> Calling public service methods through the REST API: marketingServiceImpl

<ResponseField name="beanId" type="string">
  The Spring bean identifier containing the service being called.

  marketingServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean scope. Use PROTOTYPE for service calls.
</ResponseField>

<ResponseField name="functionName" type="string">
  The public service method name shown in the signature below.
</ResponseField>

<ResponseField name="args" type="object[]">
  The method argument array. Each argument is passed as an object with index 0, 1, and so on; the value must match the Java parameter type.
</ResponseField>

## Headers

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

Send `Lang-Context` and `Site-Context` with every request. For protected methods, send the JWT in the `Authorization` header as `Bearer <token>`.

**Access:** ADMIN. **Bearer Token:** conditional for USER/ADMIN.

* GUEST — unauthenticated users; only whitelist services are available.
* USER — authentication is required; methods with USER checks are available.
* ADMIN — full access to public methods of all services.
* If a method checks a role internally, GUEST may receive null.

## Methods

<ResponseField name="searchUserAnalytics" type="LinkedHashSet<UserAuditSettings>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Passed through `args[0].0`. |

  ### searchUserAnalytics

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

<ResponseField name="searchUserAnalyticsPaged" type="Page<UserAuditSettings>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Passed through `args[0].0`. |

  ### searchUserAnalyticsPaged

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

<ResponseField name="getPaginationAnalyticsData" type="Deque<Map<String, Object>>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Passed through `args[0].0`. |

  ### getPaginationAnalyticsData

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

<ResponseField name="generateDashlyHash" type="String">
  | Argument | Type | Description                            |
  | -------- | ---- | -------------------------------------- |
  | —        | —    | This method does not accept arguments. |

  ### generateDashlyHash

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

<ResponseField name="getSeoMetaData" type="Map<String,Object>">
  | Argument         | Type     | Description                 |
  | ---------------- | -------- | --------------------------- |
  | `seoUrl`         | `String` | Passed through `args[0].0`. |
  | `repositoryName` | `String` | Passed through `args[1].1`. |

  ### getSeoMetaData

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

<ResponseField name="getSeoUrl" type="String">
  | Argument         | Type     | Description                 |
  | ---------------- | -------- | --------------------------- |
  | `id`             | `String` | Passed through `args[0].0`. |
  | `repositoryName` | `String` | Passed through `args[1].1`. |

  ### getSeoUrl

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

<ResponseField name="getSeoUrlAsValue" type="Map<String, Object>">
  | Argument         | Type     | Description                 |
  | ---------------- | -------- | --------------------------- |
  | `id`             | `String` | Passed through `args[0].0`. |
  | `repositoryName` | `String` | Passed through `args[1].1`. |

  ### getSeoUrlAsValue

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

<ResponseField name="getSeoUrlByLang" type="String">
  | Argument         | Type     | Description                 |
  | ---------------- | -------- | --------------------------- |
  | `id`             | `String` | Passed through `args[0].0`. |
  | `lang`           | `String` | Passed through `args[1].1`. |
  | `repositoryName` | `String` | Passed through `args[2].2`. |

  ### getSeoUrlByLang

  ```json theme={null}
  {
    "beanId": "marketingServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getSeoUrlByLang",
    "args": [
      {
        "0": null,
        "1": null,
        "2": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="saveSearchRequest" type="boolean">
  | Argument     | Type     | Description                 |
  | ------------ | -------- | --------------------------- |
  | `searchTerm` | `String` | Passed through `args[0].0`. |

  ### saveSearchRequest

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