Skip to main content
PATCH
/
crawl
/
{id}
Update website datasource settings
curl --request PATCH \
  --url https://api.open.cx/crawl/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_name": "<string>",
  "page_limit": 2500,
  "exclude_paths": [
    "<string>"
  ],
  "include_paths": [
    "<string>"
  ],
  "crawl_interval_hours": 4503599627370508,
  "status": "active"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "url": "<string>",
  "display_name": "<string>",
  "status": "<string>",
  "page_limit": 123,
  "exclude_paths": [
    "<string>"
  ],
  "include_paths": [
    "<string>"
  ],
  "crawl_interval_hours": 123,
  "last_crawl_started_at": "2023-11-07T05:31:56Z",
  "last_crawl_completed_at": "2023-11-07T05:31:56Z",
  "error_message": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string<uuid>
required

The website datasource ID

Body

application/json
display_name
string
page_limit
integer | null
Required range: 1 <= x <= 5000
exclude_paths
string[]
include_paths
string[]
crawl_interval_hours
integer | null
Required range: 24 <= x <= 9007199254740991
status
enum<string>
Available options:
active,
paused

Response

Default Response

id
string<uuid>
required
url
string
required
display_name
string
required
status
string
required
page_limit
number | null
required
exclude_paths
string[]
required
include_paths
string[]
required
crawl_interval_hours
number | null
required
last_crawl_started_at
string<date-time> | null
required
last_crawl_completed_at
string<date-time> | null
required
error_message
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required