# Update Unsubscription Process

Updates supplied unsubscription dialog or redirect settings; omitted values stay, weight sets display order and kind cannot change. Affects future unsubscription journeys only.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "dialog",
        "redirect"
      ]
    },
    "id": {
      "type": "integer",
      "minimum": 1
    },
    "name": {
      "type": [
        "null",
        "string"
      ],
      "default": null,
      "minLength": 1,
      "maxLength": 250
    },
    "tagIds": {
      "type": [
        "array",
        "null"
      ],
      "description": "Omit to preserve matching tags; supplied manual tag IDs replace them, a repeated ID is stored once",
      "default": null,
      "items": {
        "type": "integer",
        "minimum": 1
      }
    },
    "message": {
      "type": [
        "null",
        "string"
      ],
      "default": null,
      "maxLength": 150
    },
    "url": {
      "type": [
        "null",
        "string"
      ],
      "default": null,
      "maxLength": 800
    },
    "weight": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 0
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "kind",
    "id"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "kind",
    "id",
    "name",
    "message",
    "url",
    "tagIds",
    "weight",
    "editUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "kind": {
      "type": "string",
      "enum": [
        "dialog",
        "redirect"
      ]
    },
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "message": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "tagIds": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "weight": {
      "type": "integer"
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

