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"
}
}
}
'{
"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"
}
}
}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"
}
}
}
'{
"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"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the catalog to update
34
Catalog updated successfully
Show child attributes
"34"
"catalogs"
Show child attributes
6
2
Show child attributes
Show child attributes
"test_name"
"test_url"
{ "field": "test field" }false
0
"POST"
10
600
"minute"
"0755b5f0d3432bc3b0064227d2b6178d402327b9"
Was this page helpful?