v10
latestOpenAPI 3.1.02026-08-0375143791.1 KBwebdbs
Update a collection
Changes collection settings. New extraction rules apply on future syncs.
patch/webdbs/collections/{collection_id}
Path parameters
collection_idstring required
Collection ID.
Example:col_123
Collection ID.
Request body
Example request
{
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Product name."
},
"price": {
"type": "number",
"description": "Current price."
}
},
"required": [
"title"
],
"additionalProperties": false
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
},
"targets": [
{
"id": "tgt_123",
"sync": {
"every": "6h"
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
}
}
],
"sync": {
"every": "6h"
},
"tags": [
"production",
"team-alpha"
]
}Response
Updated collection
Example response
{
"id": "col_123",
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Product name."
},
"price": {
"type": "number",
"description": "Current price."
}
},
"required": [
"title"
],
"additionalProperties": false
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
},
"targets": [
{
"id": "tgt_123",
"sync": {
"every": "6h"
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
}
}
],
"sync": {
"every": "6h"
}
}