---
title: "Add or update wachet"
method: PUT
path: "/thirdparty/v1/task"
tags: ["task"]
---

# Add or update wachet

`PUT /thirdparty/v1/task`

## Request body

- ClientTask
  - `id` string, nullable
  - `name` string, nullable
  - `method` string, nullable
  - `url` string, nullable
  - `headers` StringStringKeyValuePair[], nullable
    - `key` string, nullable
    - `value` string, nullable
  - `body` string, nullable
  - `xPath` string, nullable
  - `excludeXPath` string, nullable
  - `regex` string, nullable
  - `alerts` ClientAlert[], nullable
    - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
    - `value` string, nullable
    - `parameters` ClientAlertParameters
      - `compare` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
      - `value` string, nullable
  - `recurrenceInSeconds` integer, nullable
  - `folderId` string, nullable
  - `data` ClientData
    - `lastCheckTimestamp` string, date-time
    - `valueChangedTimestamp` string, date-time, nullable
    - `raw` string, nullable
    - `error` string, nullable
    - `diff` DiffElement[], nullable
      - `operation` integer
      - `text` string, nullable
  - `notificationEndpoints` NotificationEndpoint[], nullable
    - `type` 0 | 1 | 4 | 8 | 16 | 32 | 64 | 92
    - `value` string, nullable
  - `proxies` WebProxyInfo[], nullable
    - `location` string, nullable
  - `location` 0 | 1 | 2 | 3 | 4 | 5
  - `dynamicContent` boolean
  - `scrollPage` boolean
  - `ignoreInvalidPages` boolean
  - `collectRawHtml` boolean
  - `jobType` 0 | 1
  - `crawlingDepth` integer
  - `crawlBinaryContent` boolean
  - `urlFilter` ClientUrlFilter
    - `include` ClientUrlFilterValue[], nullable
      - `filter` string, nullable
      - `type` 0 | 1
    - `exclude` ClientUrlFilterValue[], nullable
      - `filter` string, nullable
      - `type` 0 | 1
  - `crawlPagesFromAllDomains` boolean
  - `note` string, nullable

## Response `200`

Success

- ClientTask
  - `id` string, nullable
  - `name` string, nullable
  - `method` string, nullable
  - `url` string, nullable
  - `headers` StringStringKeyValuePair[], nullable
    - `key` string, nullable
    - `value` string, nullable
  - `body` string, nullable
  - `xPath` string, nullable
  - `excludeXPath` string, nullable
  - `regex` string, nullable
  - `alerts` ClientAlert[], nullable
    - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
    - `value` string, nullable
    - `parameters` ClientAlertParameters
      - `compare` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
      - `value` string, nullable
  - `recurrenceInSeconds` integer, nullable
  - `folderId` string, nullable
  - `data` ClientData
    - `lastCheckTimestamp` string, date-time
    - `valueChangedTimestamp` string, date-time, nullable
    - `raw` string, nullable
    - `error` string, nullable
    - `diff` DiffElement[], nullable
      - `operation` integer
      - `text` string, nullable
  - `notificationEndpoints` NotificationEndpoint[], nullable
    - `type` 0 | 1 | 4 | 8 | 16 | 32 | 64 | 92
    - `value` string, nullable
  - `proxies` WebProxyInfo[], nullable
    - `location` string, nullable
  - `location` 0 | 1 | 2 | 3 | 4 | 5
  - `dynamicContent` boolean
  - `scrollPage` boolean
  - `ignoreInvalidPages` boolean
  - `collectRawHtml` boolean
  - `jobType` 0 | 1
  - `crawlingDepth` integer
  - `crawlBinaryContent` boolean
  - `urlFilter` ClientUrlFilter
    - `include` ClientUrlFilterValue[], nullable
      - `filter` string, nullable
      - `type` 0 | 1
    - `exclude` ClientUrlFilterValue[], nullable
      - `filter` string, nullable
      - `type` 0 | 1
  - `crawlPagesFromAllDomains` boolean
  - `note` string, nullable

---

[API](https://skmtc.dev/wachete/apis/wachete-api.md) · [All operations](https://skmtc.dev/wachete/apis/wachete-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wachete/wachete-api/revisions/9b83dfaba77a/schema)
