PATCH
/
upload
/
update_webpage
cURL
curl --request PATCH \
  --url https://api.usecortex.ai/upload/update_webpage \
  --header 'Authorization: Bearer <token>' \
  --header 'accept: <accept>'
{
  "success": true,
  "message": "Scrape webpage job updated to S3 and SQS.",
  "file_id": "ScrapeJob123"
}

Sample Request

curl --location --request PATCH 'https://api.usecortex.ai/upload/update_webpage?tenant_id={TENANT_ID}&sub_tenant_id={SUB_TENANT_ID}&source_id={SOURCE_ID}&web_url={WEB_URL}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer token (your API key)

accept
string
default:application/json
required

Response content type

Query Parameters

web_url
string
required

The public URL to scrape

tenant_id
string
required

Tenant identifier

sub_tenant_id
string

Sub-tenant identifier

source_id
string
required

Source ID of the existing scrape job

Response

200
application/json

Update accepted

The response is of type object.