@model-match/api 3.108.0 → 3.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +11 -0
- package/dist/{index-Br4kMLFF.d.mts → index-D4yk3He3.d.mts} +273 -9
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +21 -3
- package/dist/slim/index.mjs +59 -3
- package/dist/{src-CYGd9bVt.mjs → src-CieihRcZ.mjs} +63 -1
- package/openapi.json +679 -63
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -26533,6 +26533,43 @@
|
|
|
26533
26533
|
],
|
|
26534
26534
|
"type": "object"
|
|
26535
26535
|
},
|
|
26536
|
+
"DatabaseStatementResult": {
|
|
26537
|
+
"properties": {
|
|
26538
|
+
"changes": {
|
|
26539
|
+
"description": "For a write: the rows it changed.",
|
|
26540
|
+
"type": "integer"
|
|
26541
|
+
},
|
|
26542
|
+
"columns": {
|
|
26543
|
+
"items": {
|
|
26544
|
+
"type": "string"
|
|
26545
|
+
},
|
|
26546
|
+
"type": "array"
|
|
26547
|
+
},
|
|
26548
|
+
"lastInsertRowid": {
|
|
26549
|
+
"type": "integer"
|
|
26550
|
+
},
|
|
26551
|
+
"rows": {
|
|
26552
|
+
"description": "Each row's values in `columns` order. Text and blobs longer than 10,000 characters are cut; a blob is `{ blob: <base64>, bytes, truncated }`.",
|
|
26553
|
+
"items": {
|
|
26554
|
+
"items": {
|
|
26555
|
+
"nullable": true
|
|
26556
|
+
},
|
|
26557
|
+
"type": "array"
|
|
26558
|
+
},
|
|
26559
|
+
"type": "array"
|
|
26560
|
+
},
|
|
26561
|
+
"truncated": {
|
|
26562
|
+
"description": "True when there were more rows than were returned.",
|
|
26563
|
+
"type": "boolean"
|
|
26564
|
+
}
|
|
26565
|
+
},
|
|
26566
|
+
"required": [
|
|
26567
|
+
"columns",
|
|
26568
|
+
"rows",
|
|
26569
|
+
"truncated"
|
|
26570
|
+
],
|
|
26571
|
+
"type": "object"
|
|
26572
|
+
},
|
|
26536
26573
|
"DatabaseTable": {
|
|
26537
26574
|
"properties": {
|
|
26538
26575
|
"columns": {
|
|
@@ -28199,6 +28236,125 @@
|
|
|
28199
28236
|
],
|
|
28200
28237
|
"type": "object"
|
|
28201
28238
|
},
|
|
28239
|
+
"FileDatabaseQuery": {
|
|
28240
|
+
"additionalProperties": false,
|
|
28241
|
+
"properties": {
|
|
28242
|
+
"maxRows": {
|
|
28243
|
+
"description": "Rows to return (default 500, at most 5,000).",
|
|
28244
|
+
"maximum": 5000,
|
|
28245
|
+
"minimum": 1,
|
|
28246
|
+
"type": "integer"
|
|
28247
|
+
},
|
|
28248
|
+
"params": {
|
|
28249
|
+
"anyOf": [
|
|
28250
|
+
{
|
|
28251
|
+
"items": {
|
|
28252
|
+
"anyOf": [
|
|
28253
|
+
{
|
|
28254
|
+
"type": "string"
|
|
28255
|
+
},
|
|
28256
|
+
{
|
|
28257
|
+
"type": "number"
|
|
28258
|
+
},
|
|
28259
|
+
{
|
|
28260
|
+
"type": "boolean"
|
|
28261
|
+
},
|
|
28262
|
+
{
|
|
28263
|
+
"nullable": true
|
|
28264
|
+
}
|
|
28265
|
+
]
|
|
28266
|
+
},
|
|
28267
|
+
"maxItems": 999,
|
|
28268
|
+
"type": "array"
|
|
28269
|
+
},
|
|
28270
|
+
{
|
|
28271
|
+
"additionalProperties": {
|
|
28272
|
+
"anyOf": [
|
|
28273
|
+
{
|
|
28274
|
+
"type": "string"
|
|
28275
|
+
},
|
|
28276
|
+
{
|
|
28277
|
+
"type": "number"
|
|
28278
|
+
},
|
|
28279
|
+
{
|
|
28280
|
+
"type": "boolean"
|
|
28281
|
+
},
|
|
28282
|
+
{
|
|
28283
|
+
"nullable": true
|
|
28284
|
+
}
|
|
28285
|
+
]
|
|
28286
|
+
},
|
|
28287
|
+
"type": "object"
|
|
28288
|
+
}
|
|
28289
|
+
],
|
|
28290
|
+
"description": "Values for the statement's parameters: an array for `?`, or an object for named ones (`:name`, `@name`, `$name`; the key includes the prefix). Text, numbers, true/false or null."
|
|
28291
|
+
},
|
|
28292
|
+
"sql": {
|
|
28293
|
+
"description": "One read-only statement: `SELECT`, `WITH … SELECT` or `VALUES`.",
|
|
28294
|
+
"example": "SELECT name, closed_on FROM deals ORDER BY closed_on DESC",
|
|
28295
|
+
"maxLength": 100000,
|
|
28296
|
+
"minLength": 1,
|
|
28297
|
+
"type": "string"
|
|
28298
|
+
}
|
|
28299
|
+
},
|
|
28300
|
+
"required": [
|
|
28301
|
+
"sql"
|
|
28302
|
+
],
|
|
28303
|
+
"type": "object"
|
|
28304
|
+
},
|
|
28305
|
+
"FileDatabaseQueryResult": {
|
|
28306
|
+
"properties": {
|
|
28307
|
+
"data": {
|
|
28308
|
+
"allOf": [
|
|
28309
|
+
{
|
|
28310
|
+
"$ref": "#/components/schemas/DatabaseStatementResult"
|
|
28311
|
+
},
|
|
28312
|
+
{
|
|
28313
|
+
"properties": {
|
|
28314
|
+
"revision": {
|
|
28315
|
+
"description": "The revision of the database that answered.",
|
|
28316
|
+
"type": "integer"
|
|
28317
|
+
}
|
|
28318
|
+
},
|
|
28319
|
+
"required": [
|
|
28320
|
+
"revision"
|
|
28321
|
+
],
|
|
28322
|
+
"type": "object"
|
|
28323
|
+
}
|
|
28324
|
+
]
|
|
28325
|
+
}
|
|
28326
|
+
},
|
|
28327
|
+
"required": [
|
|
28328
|
+
"data"
|
|
28329
|
+
],
|
|
28330
|
+
"type": "object"
|
|
28331
|
+
},
|
|
28332
|
+
"FileDatabaseResult": {
|
|
28333
|
+
"properties": {
|
|
28334
|
+
"data": {
|
|
28335
|
+
"properties": {
|
|
28336
|
+
"database": {
|
|
28337
|
+
"allOf": [
|
|
28338
|
+
{
|
|
28339
|
+
"$ref": "#/components/schemas/FileDatabase"
|
|
28340
|
+
},
|
|
28341
|
+
{
|
|
28342
|
+
"description": "A SQLite database's tables, columns and row counts, views, indexes and triggers — for its current revision."
|
|
28343
|
+
}
|
|
28344
|
+
]
|
|
28345
|
+
}
|
|
28346
|
+
},
|
|
28347
|
+
"required": [
|
|
28348
|
+
"database"
|
|
28349
|
+
],
|
|
28350
|
+
"type": "object"
|
|
28351
|
+
}
|
|
28352
|
+
},
|
|
28353
|
+
"required": [
|
|
28354
|
+
"data"
|
|
28355
|
+
],
|
|
28356
|
+
"type": "object"
|
|
28357
|
+
},
|
|
28202
28358
|
"FileError": {
|
|
28203
28359
|
"properties": {
|
|
28204
28360
|
"code": {
|
|
@@ -54124,7 +54280,7 @@
|
|
|
54124
54280
|
"StudioModelError": {
|
|
54125
54281
|
"properties": {
|
|
54126
54282
|
"code": {
|
|
54127
|
-
"description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `
|
|
54283
|
+
"description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_disabled` (501: training is turned off here; do not retry), `studio_unavailable`.",
|
|
54128
54284
|
"example": "match_rate_too_low",
|
|
54129
54285
|
"type": "string"
|
|
54130
54286
|
},
|
|
@@ -56514,6 +56670,13 @@
|
|
|
56514
56670
|
"properties": {
|
|
56515
56671
|
"data": {
|
|
56516
56672
|
"$ref": "#/components/schemas/StudioUpload"
|
|
56673
|
+
},
|
|
56674
|
+
"tables": {
|
|
56675
|
+
"description": "For a SQLite database: every table it became (`data` is the first). Each is `upload_<name>_<table>`.",
|
|
56676
|
+
"items": {
|
|
56677
|
+
"$ref": "#/components/schemas/StudioUpload"
|
|
56678
|
+
},
|
|
56679
|
+
"type": "array"
|
|
56517
56680
|
}
|
|
56518
56681
|
},
|
|
56519
56682
|
"required": [
|
|
@@ -56562,6 +56725,47 @@
|
|
|
56562
56725
|
],
|
|
56563
56726
|
"type": "object"
|
|
56564
56727
|
},
|
|
56728
|
+
"StudioTablesReload": {
|
|
56729
|
+
"additionalProperties": false,
|
|
56730
|
+
"properties": {
|
|
56731
|
+
"fromFileId": {
|
|
56732
|
+
"description": "The SQLite database in your files library whose tables to read again.",
|
|
56733
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
56734
|
+
"type": "string"
|
|
56735
|
+
}
|
|
56736
|
+
},
|
|
56737
|
+
"required": [
|
|
56738
|
+
"fromFileId"
|
|
56739
|
+
],
|
|
56740
|
+
"type": "object"
|
|
56741
|
+
},
|
|
56742
|
+
"StudioTablesReloaded": {
|
|
56743
|
+
"properties": {
|
|
56744
|
+
"data": {
|
|
56745
|
+
"properties": {
|
|
56746
|
+
"revision": {
|
|
56747
|
+
"type": "integer"
|
|
56748
|
+
},
|
|
56749
|
+
"tables": {
|
|
56750
|
+
"description": "The tables being read again. Each keeps answering on its current rows until its new rows are in.",
|
|
56751
|
+
"items": {
|
|
56752
|
+
"type": "string"
|
|
56753
|
+
},
|
|
56754
|
+
"type": "array"
|
|
56755
|
+
}
|
|
56756
|
+
},
|
|
56757
|
+
"required": [
|
|
56758
|
+
"tables",
|
|
56759
|
+
"revision"
|
|
56760
|
+
],
|
|
56761
|
+
"type": "object"
|
|
56762
|
+
}
|
|
56763
|
+
},
|
|
56764
|
+
"required": [
|
|
56765
|
+
"data"
|
|
56766
|
+
],
|
|
56767
|
+
"type": "object"
|
|
56768
|
+
},
|
|
56565
56769
|
"StudioUpload": {
|
|
56566
56770
|
"properties": {
|
|
56567
56771
|
"bytes": {
|
|
@@ -56670,6 +56874,26 @@
|
|
|
56670
56874
|
"name": {
|
|
56671
56875
|
"type": "string"
|
|
56672
56876
|
},
|
|
56877
|
+
"reloadError": {
|
|
56878
|
+
"description": "Why the last reload left the table on its earlier rows (for example, the table is no longer in the database).",
|
|
56879
|
+
"properties": {
|
|
56880
|
+
"at": {
|
|
56881
|
+
"type": "string"
|
|
56882
|
+
},
|
|
56883
|
+
"code": {
|
|
56884
|
+
"type": "string"
|
|
56885
|
+
},
|
|
56886
|
+
"message": {
|
|
56887
|
+
"type": "string"
|
|
56888
|
+
}
|
|
56889
|
+
},
|
|
56890
|
+
"required": [
|
|
56891
|
+
"code",
|
|
56892
|
+
"message",
|
|
56893
|
+
"at"
|
|
56894
|
+
],
|
|
56895
|
+
"type": "object"
|
|
56896
|
+
},
|
|
56673
56897
|
"rowCount": {
|
|
56674
56898
|
"nullable": true,
|
|
56675
56899
|
"type": "number"
|
|
@@ -56683,6 +56907,14 @@
|
|
|
56683
56907
|
"nullable": true,
|
|
56684
56908
|
"type": "string"
|
|
56685
56909
|
},
|
|
56910
|
+
"sourceRevision": {
|
|
56911
|
+
"description": "For a table loaded from a SQLite database: the revision of the file its rows are from. A new revision of the file reloads it.",
|
|
56912
|
+
"type": "integer"
|
|
56913
|
+
},
|
|
56914
|
+
"sourceTable": {
|
|
56915
|
+
"description": "For a table loaded from a SQLite database: the database's table it holds.",
|
|
56916
|
+
"type": "string"
|
|
56917
|
+
},
|
|
56686
56918
|
"status": {
|
|
56687
56919
|
"description": "`pending` — waiting for the file. `ingesting` — the file is being read; call complete again. `ready` — it is a table. `failed` — the file was refused (`error` says why); create the upload again with a corrected file.",
|
|
56688
56920
|
"enum": [
|
|
@@ -58532,7 +58764,7 @@
|
|
|
58532
58764
|
"info": {
|
|
58533
58765
|
"description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
|
|
58534
58766
|
"title": "ModelMatch API",
|
|
58535
|
-
"version": "3.
|
|
58767
|
+
"version": "3.214.0"
|
|
58536
58768
|
},
|
|
58537
58769
|
"openapi": "3.1.0",
|
|
58538
58770
|
"paths": {
|
|
@@ -87568,10 +87800,10 @@
|
|
|
87568
87800
|
]
|
|
87569
87801
|
}
|
|
87570
87802
|
},
|
|
87571
|
-
"/v1/files/{id}/
|
|
87572
|
-
"
|
|
87573
|
-
"description": "
|
|
87574
|
-
"operationId": "
|
|
87803
|
+
"/v1/files/{id}/database": {
|
|
87804
|
+
"get": {
|
|
87805
|
+
"description": "For a SQLite database in your files library (`kind: \"sqlite\"`): its tables with their columns and row counts, views, indexes and triggers, for its current revision. You need any role on the file. Read now if it has not been yet. A file that is not a database answers `409 not_a_database`; a protected one `403 protected_not_enabled`. Free.",
|
|
87806
|
+
"operationId": "getFileDatabase",
|
|
87575
87807
|
"parameters": [
|
|
87576
87808
|
{
|
|
87577
87809
|
"description": "The file's id.",
|
|
@@ -87584,19 +87816,6 @@
|
|
|
87584
87816
|
"pattern": "^file_[0-9a-f]{32}$",
|
|
87585
87817
|
"type": "string"
|
|
87586
87818
|
}
|
|
87587
|
-
},
|
|
87588
|
-
{
|
|
87589
|
-
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
87590
|
-
"in": "query",
|
|
87591
|
-
"name": "target",
|
|
87592
|
-
"required": true,
|
|
87593
|
-
"schema": {
|
|
87594
|
-
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
87595
|
-
"example": "ask_chat:chat_123",
|
|
87596
|
-
"maxLength": 220,
|
|
87597
|
-
"minLength": 3,
|
|
87598
|
-
"type": "string"
|
|
87599
|
-
}
|
|
87600
87819
|
}
|
|
87601
87820
|
],
|
|
87602
87821
|
"responses": {
|
|
@@ -87604,22 +87823,11 @@
|
|
|
87604
87823
|
"content": {
|
|
87605
87824
|
"application/json": {
|
|
87606
87825
|
"schema": {
|
|
87607
|
-
"
|
|
87608
|
-
"data": {
|
|
87609
|
-
"items": {
|
|
87610
|
-
"type": "string"
|
|
87611
|
-
},
|
|
87612
|
-
"type": "array"
|
|
87613
|
-
}
|
|
87614
|
-
},
|
|
87615
|
-
"required": [
|
|
87616
|
-
"data"
|
|
87617
|
-
],
|
|
87618
|
-
"type": "object"
|
|
87826
|
+
"$ref": "#/components/schemas/FileDatabaseResult"
|
|
87619
87827
|
}
|
|
87620
87828
|
}
|
|
87621
87829
|
},
|
|
87622
|
-
"description": "The
|
|
87830
|
+
"description": "The database"
|
|
87623
87831
|
},
|
|
87624
87832
|
"400": {
|
|
87625
87833
|
"content": {
|
|
@@ -87702,14 +87910,16 @@
|
|
|
87702
87910
|
"description": "Storage or the access log unavailable"
|
|
87703
87911
|
}
|
|
87704
87912
|
},
|
|
87705
|
-
"summary": "
|
|
87913
|
+
"summary": "A database file's tables",
|
|
87706
87914
|
"tags": [
|
|
87707
87915
|
"Files"
|
|
87708
87916
|
]
|
|
87709
|
-
}
|
|
87917
|
+
}
|
|
87918
|
+
},
|
|
87919
|
+
"/v1/files/{id}/database/query": {
|
|
87710
87920
|
"post": {
|
|
87711
|
-
"description": "
|
|
87712
|
-
"operationId": "
|
|
87921
|
+
"description": "Run ONE read-only statement (`SELECT`, `WITH … SELECT` or `VALUES`) on a SQLite database in your files library, with optional `params`. You need any role on the file. The database is opened read-only: nothing can change it, and its triggers never run. At most `maxRows` rows (default 500, up to 5,000; `truncated` says there were more), and 5 seconds. ATTACH, PRAGMA, extension loading and file functions are refused (`400 sql_not_allowed`); an error in the statement is `400 sql_error` with what to fix; a statement that runs too long is `422 timeout`. Free.",
|
|
87922
|
+
"operationId": "queryFileDatabase",
|
|
87713
87923
|
"parameters": [
|
|
87714
87924
|
{
|
|
87715
87925
|
"description": "The file's id.",
|
|
@@ -87728,7 +87938,7 @@
|
|
|
87728
87938
|
"content": {
|
|
87729
87939
|
"application/json": {
|
|
87730
87940
|
"schema": {
|
|
87731
|
-
"$ref": "#/components/schemas/
|
|
87941
|
+
"$ref": "#/components/schemas/FileDatabaseQuery"
|
|
87732
87942
|
}
|
|
87733
87943
|
}
|
|
87734
87944
|
},
|
|
@@ -87739,22 +87949,11 @@
|
|
|
87739
87949
|
"content": {
|
|
87740
87950
|
"application/json": {
|
|
87741
87951
|
"schema": {
|
|
87742
|
-
"
|
|
87743
|
-
"data": {
|
|
87744
|
-
"items": {
|
|
87745
|
-
"type": "string"
|
|
87746
|
-
},
|
|
87747
|
-
"type": "array"
|
|
87748
|
-
}
|
|
87749
|
-
},
|
|
87750
|
-
"required": [
|
|
87751
|
-
"data"
|
|
87752
|
-
],
|
|
87753
|
-
"type": "object"
|
|
87952
|
+
"$ref": "#/components/schemas/FileDatabaseQueryResult"
|
|
87754
87953
|
}
|
|
87755
87954
|
}
|
|
87756
87955
|
},
|
|
87757
|
-
"description": "The
|
|
87956
|
+
"description": "The rows"
|
|
87758
87957
|
},
|
|
87759
87958
|
"400": {
|
|
87760
87959
|
"content": {
|
|
@@ -87837,16 +88036,16 @@
|
|
|
87837
88036
|
"description": "Storage or the access log unavailable"
|
|
87838
88037
|
}
|
|
87839
88038
|
},
|
|
87840
|
-
"summary": "
|
|
88039
|
+
"summary": "Run a read-only query on a database file",
|
|
87841
88040
|
"tags": [
|
|
87842
88041
|
"Files"
|
|
87843
88042
|
]
|
|
87844
88043
|
}
|
|
87845
88044
|
},
|
|
87846
|
-
"/v1/files/{id}/
|
|
88045
|
+
"/v1/files/{id}/links": {
|
|
87847
88046
|
"delete": {
|
|
87848
|
-
"description": "
|
|
87849
|
-
"operationId": "
|
|
88047
|
+
"description": "The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.",
|
|
88048
|
+
"operationId": "unlinkFile",
|
|
87850
88049
|
"parameters": [
|
|
87851
88050
|
{
|
|
87852
88051
|
"description": "The file's id.",
|
|
@@ -87859,6 +88058,19 @@
|
|
|
87859
88058
|
"pattern": "^file_[0-9a-f]{32}$",
|
|
87860
88059
|
"type": "string"
|
|
87861
88060
|
}
|
|
88061
|
+
},
|
|
88062
|
+
{
|
|
88063
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
88064
|
+
"in": "query",
|
|
88065
|
+
"name": "target",
|
|
88066
|
+
"required": true,
|
|
88067
|
+
"schema": {
|
|
88068
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
88069
|
+
"example": "ask_chat:chat_123",
|
|
88070
|
+
"maxLength": 220,
|
|
88071
|
+
"minLength": 3,
|
|
88072
|
+
"type": "string"
|
|
88073
|
+
}
|
|
87862
88074
|
}
|
|
87863
88075
|
],
|
|
87864
88076
|
"responses": {
|
|
@@ -87868,7 +88080,10 @@
|
|
|
87868
88080
|
"schema": {
|
|
87869
88081
|
"properties": {
|
|
87870
88082
|
"data": {
|
|
87871
|
-
"
|
|
88083
|
+
"items": {
|
|
88084
|
+
"type": "string"
|
|
88085
|
+
},
|
|
88086
|
+
"type": "array"
|
|
87872
88087
|
}
|
|
87873
88088
|
},
|
|
87874
88089
|
"required": [
|
|
@@ -87878,7 +88093,266 @@
|
|
|
87878
88093
|
}
|
|
87879
88094
|
}
|
|
87880
88095
|
},
|
|
87881
|
-
"description": "The file"
|
|
88096
|
+
"description": "The file's links"
|
|
88097
|
+
},
|
|
88098
|
+
"400": {
|
|
88099
|
+
"content": {
|
|
88100
|
+
"application/json": {
|
|
88101
|
+
"schema": {
|
|
88102
|
+
"$ref": "#/components/schemas/FileError"
|
|
88103
|
+
}
|
|
88104
|
+
}
|
|
88105
|
+
},
|
|
88106
|
+
"description": "Invalid request"
|
|
88107
|
+
},
|
|
88108
|
+
"401": {
|
|
88109
|
+
"content": {
|
|
88110
|
+
"application/json": {
|
|
88111
|
+
"schema": {
|
|
88112
|
+
"$ref": "#/components/schemas/FileError"
|
|
88113
|
+
}
|
|
88114
|
+
}
|
|
88115
|
+
},
|
|
88116
|
+
"description": "Not signed in"
|
|
88117
|
+
},
|
|
88118
|
+
"403": {
|
|
88119
|
+
"content": {
|
|
88120
|
+
"application/json": {
|
|
88121
|
+
"schema": {
|
|
88122
|
+
"$ref": "#/components/schemas/FileError"
|
|
88123
|
+
}
|
|
88124
|
+
}
|
|
88125
|
+
},
|
|
88126
|
+
"description": "Not allowed"
|
|
88127
|
+
},
|
|
88128
|
+
"404": {
|
|
88129
|
+
"content": {
|
|
88130
|
+
"application/json": {
|
|
88131
|
+
"schema": {
|
|
88132
|
+
"$ref": "#/components/schemas/FileError"
|
|
88133
|
+
}
|
|
88134
|
+
}
|
|
88135
|
+
},
|
|
88136
|
+
"description": "No such file"
|
|
88137
|
+
},
|
|
88138
|
+
"409": {
|
|
88139
|
+
"content": {
|
|
88140
|
+
"application/json": {
|
|
88141
|
+
"schema": {
|
|
88142
|
+
"$ref": "#/components/schemas/FileError"
|
|
88143
|
+
}
|
|
88144
|
+
}
|
|
88145
|
+
},
|
|
88146
|
+
"description": "Conflicts with the file's state"
|
|
88147
|
+
},
|
|
88148
|
+
"422": {
|
|
88149
|
+
"content": {
|
|
88150
|
+
"application/json": {
|
|
88151
|
+
"schema": {
|
|
88152
|
+
"$ref": "#/components/schemas/FileError"
|
|
88153
|
+
}
|
|
88154
|
+
}
|
|
88155
|
+
},
|
|
88156
|
+
"description": "The upload did not match"
|
|
88157
|
+
},
|
|
88158
|
+
"502": {
|
|
88159
|
+
"content": {
|
|
88160
|
+
"application/json": {
|
|
88161
|
+
"schema": {
|
|
88162
|
+
"$ref": "#/components/schemas/FileError"
|
|
88163
|
+
}
|
|
88164
|
+
}
|
|
88165
|
+
},
|
|
88166
|
+
"description": "Could not check membership"
|
|
88167
|
+
},
|
|
88168
|
+
"503": {
|
|
88169
|
+
"content": {
|
|
88170
|
+
"application/json": {
|
|
88171
|
+
"schema": {
|
|
88172
|
+
"$ref": "#/components/schemas/FileError"
|
|
88173
|
+
}
|
|
88174
|
+
}
|
|
88175
|
+
},
|
|
88176
|
+
"description": "Storage or the access log unavailable"
|
|
88177
|
+
}
|
|
88178
|
+
},
|
|
88179
|
+
"summary": "Detach a file",
|
|
88180
|
+
"tags": [
|
|
88181
|
+
"Files"
|
|
88182
|
+
]
|
|
88183
|
+
},
|
|
88184
|
+
"post": {
|
|
88185
|
+
"description": "The owner or an editor attaches a file to a CRM record, a Studio table, a chat, a project or an export. Linking to a CRM record needs you to be able to see the record, and lets anyone who can see the record view the file if it is standard (a protected file stays shared person by person). Other links share the file with no one. Free.",
|
|
88186
|
+
"operationId": "linkFile",
|
|
88187
|
+
"parameters": [
|
|
88188
|
+
{
|
|
88189
|
+
"description": "The file's id.",
|
|
88190
|
+
"in": "path",
|
|
88191
|
+
"name": "id",
|
|
88192
|
+
"required": true,
|
|
88193
|
+
"schema": {
|
|
88194
|
+
"description": "The file's id.",
|
|
88195
|
+
"example": "file_3f2a…",
|
|
88196
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
88197
|
+
"type": "string"
|
|
88198
|
+
}
|
|
88199
|
+
}
|
|
88200
|
+
],
|
|
88201
|
+
"requestBody": {
|
|
88202
|
+
"content": {
|
|
88203
|
+
"application/json": {
|
|
88204
|
+
"schema": {
|
|
88205
|
+
"$ref": "#/components/schemas/FileLinkCreate"
|
|
88206
|
+
}
|
|
88207
|
+
}
|
|
88208
|
+
},
|
|
88209
|
+
"required": true
|
|
88210
|
+
},
|
|
88211
|
+
"responses": {
|
|
88212
|
+
"200": {
|
|
88213
|
+
"content": {
|
|
88214
|
+
"application/json": {
|
|
88215
|
+
"schema": {
|
|
88216
|
+
"properties": {
|
|
88217
|
+
"data": {
|
|
88218
|
+
"items": {
|
|
88219
|
+
"type": "string"
|
|
88220
|
+
},
|
|
88221
|
+
"type": "array"
|
|
88222
|
+
}
|
|
88223
|
+
},
|
|
88224
|
+
"required": [
|
|
88225
|
+
"data"
|
|
88226
|
+
],
|
|
88227
|
+
"type": "object"
|
|
88228
|
+
}
|
|
88229
|
+
}
|
|
88230
|
+
},
|
|
88231
|
+
"description": "The file's links"
|
|
88232
|
+
},
|
|
88233
|
+
"400": {
|
|
88234
|
+
"content": {
|
|
88235
|
+
"application/json": {
|
|
88236
|
+
"schema": {
|
|
88237
|
+
"$ref": "#/components/schemas/FileError"
|
|
88238
|
+
}
|
|
88239
|
+
}
|
|
88240
|
+
},
|
|
88241
|
+
"description": "Invalid request"
|
|
88242
|
+
},
|
|
88243
|
+
"401": {
|
|
88244
|
+
"content": {
|
|
88245
|
+
"application/json": {
|
|
88246
|
+
"schema": {
|
|
88247
|
+
"$ref": "#/components/schemas/FileError"
|
|
88248
|
+
}
|
|
88249
|
+
}
|
|
88250
|
+
},
|
|
88251
|
+
"description": "Not signed in"
|
|
88252
|
+
},
|
|
88253
|
+
"403": {
|
|
88254
|
+
"content": {
|
|
88255
|
+
"application/json": {
|
|
88256
|
+
"schema": {
|
|
88257
|
+
"$ref": "#/components/schemas/FileError"
|
|
88258
|
+
}
|
|
88259
|
+
}
|
|
88260
|
+
},
|
|
88261
|
+
"description": "Not allowed"
|
|
88262
|
+
},
|
|
88263
|
+
"404": {
|
|
88264
|
+
"content": {
|
|
88265
|
+
"application/json": {
|
|
88266
|
+
"schema": {
|
|
88267
|
+
"$ref": "#/components/schemas/FileError"
|
|
88268
|
+
}
|
|
88269
|
+
}
|
|
88270
|
+
},
|
|
88271
|
+
"description": "No such file"
|
|
88272
|
+
},
|
|
88273
|
+
"409": {
|
|
88274
|
+
"content": {
|
|
88275
|
+
"application/json": {
|
|
88276
|
+
"schema": {
|
|
88277
|
+
"$ref": "#/components/schemas/FileError"
|
|
88278
|
+
}
|
|
88279
|
+
}
|
|
88280
|
+
},
|
|
88281
|
+
"description": "Conflicts with the file's state"
|
|
88282
|
+
},
|
|
88283
|
+
"422": {
|
|
88284
|
+
"content": {
|
|
88285
|
+
"application/json": {
|
|
88286
|
+
"schema": {
|
|
88287
|
+
"$ref": "#/components/schemas/FileError"
|
|
88288
|
+
}
|
|
88289
|
+
}
|
|
88290
|
+
},
|
|
88291
|
+
"description": "The upload did not match"
|
|
88292
|
+
},
|
|
88293
|
+
"502": {
|
|
88294
|
+
"content": {
|
|
88295
|
+
"application/json": {
|
|
88296
|
+
"schema": {
|
|
88297
|
+
"$ref": "#/components/schemas/FileError"
|
|
88298
|
+
}
|
|
88299
|
+
}
|
|
88300
|
+
},
|
|
88301
|
+
"description": "Could not check membership"
|
|
88302
|
+
},
|
|
88303
|
+
"503": {
|
|
88304
|
+
"content": {
|
|
88305
|
+
"application/json": {
|
|
88306
|
+
"schema": {
|
|
88307
|
+
"$ref": "#/components/schemas/FileError"
|
|
88308
|
+
}
|
|
88309
|
+
}
|
|
88310
|
+
},
|
|
88311
|
+
"description": "Storage or the access log unavailable"
|
|
88312
|
+
}
|
|
88313
|
+
},
|
|
88314
|
+
"summary": "Attach a file to something",
|
|
88315
|
+
"tags": [
|
|
88316
|
+
"Files"
|
|
88317
|
+
]
|
|
88318
|
+
}
|
|
88319
|
+
},
|
|
88320
|
+
"/v1/files/{id}/pin": {
|
|
88321
|
+
"delete": {
|
|
88322
|
+
"description": "Removes your pin. Succeeds when the file was not pinned. Free.",
|
|
88323
|
+
"operationId": "unpinFile",
|
|
88324
|
+
"parameters": [
|
|
88325
|
+
{
|
|
88326
|
+
"description": "The file's id.",
|
|
88327
|
+
"in": "path",
|
|
88328
|
+
"name": "id",
|
|
88329
|
+
"required": true,
|
|
88330
|
+
"schema": {
|
|
88331
|
+
"description": "The file's id.",
|
|
88332
|
+
"example": "file_3f2a…",
|
|
88333
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
88334
|
+
"type": "string"
|
|
88335
|
+
}
|
|
88336
|
+
}
|
|
88337
|
+
],
|
|
88338
|
+
"responses": {
|
|
88339
|
+
"200": {
|
|
88340
|
+
"content": {
|
|
88341
|
+
"application/json": {
|
|
88342
|
+
"schema": {
|
|
88343
|
+
"properties": {
|
|
88344
|
+
"data": {
|
|
88345
|
+
"$ref": "#/components/schemas/File"
|
|
88346
|
+
}
|
|
88347
|
+
},
|
|
88348
|
+
"required": [
|
|
88349
|
+
"data"
|
|
88350
|
+
],
|
|
88351
|
+
"type": "object"
|
|
88352
|
+
}
|
|
88353
|
+
}
|
|
88354
|
+
},
|
|
88355
|
+
"description": "The file"
|
|
87882
88356
|
},
|
|
87883
88357
|
"400": {
|
|
87884
88358
|
"content": {
|
|
@@ -103499,7 +103973,7 @@
|
|
|
103499
103973
|
}
|
|
103500
103974
|
}
|
|
103501
103975
|
},
|
|
103502
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
103976
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
103503
103977
|
}
|
|
103504
103978
|
},
|
|
103505
103979
|
"summary": "Your organization's models",
|
|
@@ -103601,6 +104075,16 @@
|
|
|
103601
104075
|
},
|
|
103602
104076
|
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
103603
104077
|
},
|
|
104078
|
+
"501": {
|
|
104079
|
+
"content": {
|
|
104080
|
+
"application/json": {
|
|
104081
|
+
"schema": {
|
|
104082
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
104083
|
+
}
|
|
104084
|
+
}
|
|
104085
|
+
},
|
|
104086
|
+
"description": "`models_disabled` — model training is turned off in this environment, so nothing can be trained or refreshed here. A setting, not an outage: do not retry. Reading models and querying their scores still work."
|
|
104087
|
+
},
|
|
103604
104088
|
"503": {
|
|
103605
104089
|
"content": {
|
|
103606
104090
|
"application/json": {
|
|
@@ -103609,7 +104093,7 @@
|
|
|
103609
104093
|
}
|
|
103610
104094
|
}
|
|
103611
104095
|
},
|
|
103612
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104096
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
103613
104097
|
}
|
|
103614
104098
|
},
|
|
103615
104099
|
"summary": "Create a prediction model and start training it",
|
|
@@ -103711,7 +104195,7 @@
|
|
|
103711
104195
|
}
|
|
103712
104196
|
}
|
|
103713
104197
|
},
|
|
103714
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104198
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
103715
104199
|
}
|
|
103716
104200
|
},
|
|
103717
104201
|
"summary": "What a prediction model can be built from",
|
|
@@ -103923,7 +104407,7 @@
|
|
|
103923
104407
|
}
|
|
103924
104408
|
}
|
|
103925
104409
|
},
|
|
103926
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104410
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
103927
104411
|
}
|
|
103928
104412
|
},
|
|
103929
104413
|
"summary": "Delete a model, its report card and its scores, permanently",
|
|
@@ -104061,7 +104545,7 @@
|
|
|
104061
104545
|
}
|
|
104062
104546
|
}
|
|
104063
104547
|
},
|
|
104064
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104548
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
104065
104549
|
}
|
|
104066
104550
|
},
|
|
104067
104551
|
"summary": "A model: its status and its report card",
|
|
@@ -104189,6 +104673,16 @@
|
|
|
104189
104673
|
},
|
|
104190
104674
|
"description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
104191
104675
|
},
|
|
104676
|
+
"501": {
|
|
104677
|
+
"content": {
|
|
104678
|
+
"application/json": {
|
|
104679
|
+
"schema": {
|
|
104680
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
104681
|
+
}
|
|
104682
|
+
}
|
|
104683
|
+
},
|
|
104684
|
+
"description": "`models_disabled` — model training is turned off in this environment, so nothing can be trained or refreshed here. A setting, not an outage: do not retry. Reading models and querying their scores still work."
|
|
104685
|
+
},
|
|
104192
104686
|
"503": {
|
|
104193
104687
|
"content": {
|
|
104194
104688
|
"application/json": {
|
|
@@ -104197,7 +104691,7 @@
|
|
|
104197
104691
|
}
|
|
104198
104692
|
}
|
|
104199
104693
|
},
|
|
104200
|
-
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `
|
|
104694
|
+
"description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
|
|
104201
104695
|
}
|
|
104202
104696
|
},
|
|
104203
104697
|
"summary": "Refresh a model's scores with the latest data",
|
|
@@ -105042,7 +105536,7 @@
|
|
|
105042
105536
|
]
|
|
105043
105537
|
},
|
|
105044
105538
|
"post": {
|
|
105045
|
-
"description": "Turn a file of your own data that is already in your files library — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. Name the file (`fromFileId`: one you can open, whose status is `ready`) and the table (`name`; the table is `upload_<name>`). The file is read as it is: the table shows its source file (`sourceFileId`), and the file shows the table it feeds (it is linked to `studio_table:upload_<name>`). Deleting the file later does not delete the table; deleting the table does not delete the file. A small file answers `200` with `status: ready`, and the answer says what the table holds: `columns`, `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints`. A large one answers `202` with `status: ingesting`: read it with `GET /v1/studio/tables/{name}` in a few seconds. A file that cannot be used is refused with the reason. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 tables and 1 GB in total. Free.",
|
|
105539
|
+
"description": "Turn a file of your own data that is already in your files library — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. Name the file (`fromFileId`: one you can open, whose status is `ready`) and the table (`name`; the table is `upload_<name>`). The file is read as it is: the table shows its source file (`sourceFileId`), and the file shows the table it feeds (it is linked to `studio_table:upload_<name>`). Deleting the file later does not delete the table; deleting the table does not delete the file. A small file answers `200` with `status: ready`, and the answer says what the table holds: `columns`, `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints`. A large one answers `202` with `status: ingesting`: read it with `GET /v1/studio/tables/{name}` in a few seconds. A file that cannot be used is refused with the reason. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 tables and 1 GB in total. A SQLite database becomes one table per table it holds, `upload_<name>_<table>` (`tables` lists them all; `data` is the first), each naming its `sourceTable` and `sourceRevision`. When the database gets a new revision its tables are read again by themselves (`POST /v1/studio/tables/reload` does it on demand). Free.",
|
|
105046
105540
|
"operationId": "createStudioTable",
|
|
105047
105541
|
"requestBody": {
|
|
105048
105542
|
"content": {
|
|
@@ -105172,6 +105666,128 @@
|
|
|
105172
105666
|
]
|
|
105173
105667
|
}
|
|
105174
105668
|
},
|
|
105669
|
+
"/v1/studio/tables/reload": {
|
|
105670
|
+
"post": {
|
|
105671
|
+
"description": "Read every table made from a SQLite database in your files library (`fromFileId`) again, from its latest revision. This happens by itself when the database gets a new revision; call it to make sure. Answers `202` at once with the tables being read: each keeps answering on its current rows until its new rows are in, then shows the new `sourceRevision`. A table no longer in the database keeps its rows and says why (`reloadError`). You need to be able to open the file. Free.",
|
|
105672
|
+
"operationId": "reloadStudioTables",
|
|
105673
|
+
"requestBody": {
|
|
105674
|
+
"content": {
|
|
105675
|
+
"application/json": {
|
|
105676
|
+
"schema": {
|
|
105677
|
+
"$ref": "#/components/schemas/StudioTablesReload"
|
|
105678
|
+
}
|
|
105679
|
+
}
|
|
105680
|
+
},
|
|
105681
|
+
"required": true
|
|
105682
|
+
},
|
|
105683
|
+
"responses": {
|
|
105684
|
+
"202": {
|
|
105685
|
+
"content": {
|
|
105686
|
+
"application/json": {
|
|
105687
|
+
"schema": {
|
|
105688
|
+
"$ref": "#/components/schemas/StudioTablesReloaded"
|
|
105689
|
+
}
|
|
105690
|
+
}
|
|
105691
|
+
},
|
|
105692
|
+
"description": "The tables being read again"
|
|
105693
|
+
},
|
|
105694
|
+
"400": {
|
|
105695
|
+
"content": {
|
|
105696
|
+
"application/json": {
|
|
105697
|
+
"schema": {
|
|
105698
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105699
|
+
}
|
|
105700
|
+
}
|
|
105701
|
+
},
|
|
105702
|
+
"description": "`invalid_request` — the request is malformed; `invalid_upload_name` — the name cannot be used; `unsupported_format` — the file is not a CSV, TSV, Excel (.xlsx) or Parquet file."
|
|
105703
|
+
},
|
|
105704
|
+
"401": {
|
|
105705
|
+
"content": {
|
|
105706
|
+
"application/json": {
|
|
105707
|
+
"schema": {
|
|
105708
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105709
|
+
}
|
|
105710
|
+
}
|
|
105711
|
+
},
|
|
105712
|
+
"description": "Authentication required."
|
|
105713
|
+
},
|
|
105714
|
+
"403": {
|
|
105715
|
+
"content": {
|
|
105716
|
+
"application/json": {
|
|
105717
|
+
"schema": {
|
|
105718
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105719
|
+
}
|
|
105720
|
+
}
|
|
105721
|
+
},
|
|
105722
|
+
"description": "`no_organization` — select an organization and retry. `studio_not_enabled` — Studio is not enabled for this account. `protected_not_enabled` — a protected file cannot be loaded into a table."
|
|
105723
|
+
},
|
|
105724
|
+
"404": {
|
|
105725
|
+
"content": {
|
|
105726
|
+
"application/json": {
|
|
105727
|
+
"schema": {
|
|
105728
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105729
|
+
}
|
|
105730
|
+
}
|
|
105731
|
+
},
|
|
105732
|
+
"description": "`not_found` — no file of that id that you can open (or the files library is not enabled for your organization); `upload_not_found` — your organization has no table of that name."
|
|
105733
|
+
},
|
|
105734
|
+
"409": {
|
|
105735
|
+
"content": {
|
|
105736
|
+
"application/json": {
|
|
105737
|
+
"schema": {
|
|
105738
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105739
|
+
}
|
|
105740
|
+
}
|
|
105741
|
+
},
|
|
105742
|
+
"description": "`not_ready` — the file has not finished uploading; `upload_exists` — the name is taken (delete that table first, or pick another name); `upload_limit_reached` — your organization is at its limit of tables (`details.limit`); `upload_storage_full` — the file would take your organization past its total size."
|
|
105743
|
+
},
|
|
105744
|
+
"422": {
|
|
105745
|
+
"content": {
|
|
105746
|
+
"application/json": {
|
|
105747
|
+
"schema": {
|
|
105748
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105749
|
+
}
|
|
105750
|
+
}
|
|
105751
|
+
},
|
|
105752
|
+
"description": "The file holds more than an upload may, or cannot be read: `file_too_large`, `too_many_rows`, `too_many_columns` (`details.limit`), `empty_file`, `unreadable_file`, `ingest_timeout`. `error` says what to change."
|
|
105753
|
+
},
|
|
105754
|
+
"429": {
|
|
105755
|
+
"content": {
|
|
105756
|
+
"application/json": {
|
|
105757
|
+
"schema": {
|
|
105758
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105759
|
+
}
|
|
105760
|
+
}
|
|
105761
|
+
},
|
|
105762
|
+
"description": "`rate_limited` — too many uploads from your organization in the last minute; or `busy` — a file is already being read. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
105763
|
+
},
|
|
105764
|
+
"502": {
|
|
105765
|
+
"content": {
|
|
105766
|
+
"application/json": {
|
|
105767
|
+
"schema": {
|
|
105768
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105769
|
+
}
|
|
105770
|
+
}
|
|
105771
|
+
},
|
|
105772
|
+
"description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
|
|
105773
|
+
},
|
|
105774
|
+
"503": {
|
|
105775
|
+
"content": {
|
|
105776
|
+
"application/json": {
|
|
105777
|
+
"schema": {
|
|
105778
|
+
"$ref": "#/components/schemas/StudioError"
|
|
105779
|
+
}
|
|
105780
|
+
}
|
|
105781
|
+
},
|
|
105782
|
+
"description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
|
|
105783
|
+
}
|
|
105784
|
+
},
|
|
105785
|
+
"summary": "Read a database's tables again",
|
|
105786
|
+
"tags": [
|
|
105787
|
+
"Studio"
|
|
105788
|
+
]
|
|
105789
|
+
}
|
|
105790
|
+
},
|
|
105175
105791
|
"/v1/studio/tables/{name}": {
|
|
105176
105792
|
"delete": {
|
|
105177
105793
|
"description": "Delete a table (`name`, without the `upload_` prefix) and its rows. It leaves the catalog at once, and questions, jobs and models that read it stop working. Its source file stays in your files library, no longer linked to the table. This cannot be undone — to get the table back, load the file again. Free.",
|