AI/ML Sources
Vector Search Sources
Update Catalog
PUT
/
api
/
v1
/
catalogs
/
{id}
Copy
Ask AI
curl --request PUT \
--url https://api.squared.ai/api/v1/catalogs/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"connector_id": 6,
"catalog": {
"json_schema": {
"field": "test_field"
}
}
}'
Copy
Ask AI
{
"data": {
"id": "34",
"type": "catalogs",
"attributes": {
"connector_id": 6,
"workspace_id": 2,
"catalog": {
"streams": [
{
"name": "test_name",
"url": "test_url",
"json_schema": {
"field": "test field"
},
"batch_support": false,
"batch_size": 0,
"request_method": "POST"
}
],
"request_rate_concurrency": 10,
"request_rate_limit": 600,
"request_rate_limit_unit": "minute"
},
"catalog_hash": "0755b5f0d3432bc3b0064227d2b6178d402327b9"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the catalog to update
Example:
34
Body
application/json
Response
200
application/json
Catalog updated successfully
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request PUT \
--url https://api.squared.ai/api/v1/catalogs/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"connector_id": 6,
"catalog": {
"json_schema": {
"field": "test_field"
}
}
}'
Copy
Ask AI
{
"data": {
"id": "34",
"type": "catalogs",
"attributes": {
"connector_id": 6,
"workspace_id": 2,
"catalog": {
"streams": [
{
"name": "test_name",
"url": "test_url",
"json_schema": {
"field": "test field"
},
"batch_support": false,
"batch_size": 0,
"request_method": "POST"
}
],
"request_rate_concurrency": 10,
"request_rate_limit": 600,
"request_rate_limit_unit": "minute"
},
"catalog_hash": "0755b5f0d3432bc3b0064227d2b6178d402327b9"
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.