PUT
/
api
/
v1
/
catalogs
/
{id}
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"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

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.