Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
201 - application/json
Model created
curl --request POST \
  --url https://api.squared.ai/api/v1/models \
  --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"
    }
  }
}curl --request POST \
  --url https://api.squared.ai/api/v1/models \
  --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"
    }
  }
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
Model created
Show child attributes
Was this page helpful?