REST API
- Introduction
- Models
- Connector Definitions
- Connectors
- Syncs
- Sync Runs
- Sync Records
- Reports
- Roles
- Catalogs
Models
Update Model
PUT
/
api
/
v1
/
models
/
{id}
curl --request PUT \
--url https://api.squared.ai/api/v1/models/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": {
"name": "<string>",
"description": "<string>",
"query": "<string>",
"query_type": "<string>",
"configuration": {},
"primary_key": "<string>",
"connector_id": 123
}
}'
{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"name": "<string>",
"description": "<string>",
"query": "<string>",
"query_type": "<string>",
"configuration": {},
"primary_key": "<string>",
"connector_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200 - application/json
Model updated
Was this page helpful?
curl --request PUT \
--url https://api.squared.ai/api/v1/models/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": {
"name": "<string>",
"description": "<string>",
"query": "<string>",
"query_type": "<string>",
"configuration": {},
"primary_key": "<string>",
"connector_id": 123
}
}'
{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"name": "<string>",
"description": "<string>",
"query": "<string>",
"query_type": "<string>",
"configuration": {},
"primary_key": "<string>",
"connector_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}