# Stop Website Split Test

Terminates a running website split test: the variant with the highest conversion rate becomes the winner, every visitor sees it from then on, and nothing is counted any more. Cannot be undone; copy-website-split-test starts a new test from it. Pass confirm=true only after the user confirmed terminating this split test.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "ID of the split test, from search-website-split-tests",
      "minimum": 1
    },
    "confirm": {
      "type": "boolean",
      "description": "true only after the user confirmed terminating this split test",
      "default": false
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "type",
    "id",
    "settings",
    "ui"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "type": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "settings": {
      "type": "object"
    },
    "ui": {
      "type": "object"
    }
  },
  "additionalProperties": false
}
```

