# URL (UrlGenerator)

The [URL](https://docs.tonic.ai/app/generation/generators/generator-reference/url) generator is a substitution cipher that preserves formatting, but keeps the URL scheme and top-level domain intact.

## Link object structure <a href="#generator-api-url-link-object" id="generator-api-url-link-object"></a>

The URL generator does not support linking or consistency. You cannot configure differential privacy.

There is no generator-specific configuration.

```json
{
  "schema": "string",
  "table": "string",
  "column": "string",
  "path": "string",  //JSON fields only
  "dataType": "string",  //MongoDB, Amazon DynamoDB, and JSON fields only
  "metadata": {
    "generatorId": "UrlGenerator",
    "encryptionProcessor": "x-on", //To use configured Structural data encryption
    "customValueProcessor": "string"  //If custom value processor applied
  }
}
```

## Example replacement <a href="#generator-api-url-replacement" id="generator-api-url-replacement"></a>

Here is an example replacement that assigns the URL generator to a column.

```json
{
  "name": "url",
  "schema": "public",
  "table": "events",
  "links": [
    {
      "schema": "public",
      "table": "events",
      "column": "url",
      "metadata": {
        "generatorId": "UrlGenerator"
      }
    }
  ]
}
```
