@model-match/api 3.85.0 → 3.87.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 +10 -0
- package/dist/{index-vme166pE.d.mts → index-DdnXUoGY.d.mts} +461 -31
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +29 -5
- package/dist/slim/index.mjs +73 -5
- package/dist/{src-CQRSUGk6.mjs → src-DNF4Wm5N.mjs} +79 -3
- package/openapi.json +1222 -257
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -47314,6 +47314,40 @@
|
|
|
47314
47314
|
"description": "Rows a question returns when `limit` is not set.",
|
|
47315
47315
|
"type": "number"
|
|
47316
47316
|
},
|
|
47317
|
+
"heavyJobs": {
|
|
47318
|
+
"description": "A job saved with `size: heavy` gets these limits instead of `jobTimeoutSeconds` and `maxJobRows`. The SQL is the same: one read-only SELECT over the same tables. Absent while it cannot be reported.",
|
|
47319
|
+
"properties": {
|
|
47320
|
+
"allowed": {
|
|
47321
|
+
"description": "Whether your organization can save and run `heavy` jobs. False: a heavy job is refused with `403 entitlement_missing`; ask your ModelMatch admin to enable heavy runs.",
|
|
47322
|
+
"type": "boolean"
|
|
47323
|
+
},
|
|
47324
|
+
"maxRows": {
|
|
47325
|
+
"description": "Most rows a heavy job's result can hold.",
|
|
47326
|
+
"type": "number"
|
|
47327
|
+
},
|
|
47328
|
+
"runCredits": {
|
|
47329
|
+
"description": "Credits one heavy job run that succeeds costs.",
|
|
47330
|
+
"example": 100,
|
|
47331
|
+
"type": "number"
|
|
47332
|
+
},
|
|
47333
|
+
"timeoutSeconds": {
|
|
47334
|
+
"description": "How long one heavy job run may run.",
|
|
47335
|
+
"type": "number"
|
|
47336
|
+
}
|
|
47337
|
+
},
|
|
47338
|
+
"required": [
|
|
47339
|
+
"allowed",
|
|
47340
|
+
"timeoutSeconds",
|
|
47341
|
+
"maxRows",
|
|
47342
|
+
"runCredits"
|
|
47343
|
+
],
|
|
47344
|
+
"type": "object"
|
|
47345
|
+
},
|
|
47346
|
+
"jobRunCredits": {
|
|
47347
|
+
"description": "Credits one job run that succeeds costs.",
|
|
47348
|
+
"example": 10,
|
|
47349
|
+
"type": "number"
|
|
47350
|
+
},
|
|
47317
47351
|
"jobTimeoutSeconds": {
|
|
47318
47352
|
"description": "How long one job run may run.",
|
|
47319
47353
|
"type": "number"
|
|
@@ -47353,7 +47387,8 @@
|
|
|
47353
47387
|
"maxJobs",
|
|
47354
47388
|
"maxJobRows",
|
|
47355
47389
|
"queryCreditsPerRow",
|
|
47356
|
-
"queryMinCredits"
|
|
47390
|
+
"queryMinCredits",
|
|
47391
|
+
"jobRunCredits"
|
|
47357
47392
|
],
|
|
47358
47393
|
"type": "object"
|
|
47359
47394
|
},
|
|
@@ -47523,7 +47558,7 @@
|
|
|
47523
47558
|
"StudioError": {
|
|
47524
47559
|
"properties": {
|
|
47525
47560
|
"code": {
|
|
47526
|
-
"description": "Stable code for the kind of failure: `not_a_select`, `multiple_statements`, `syntax_error`, `unknown_table`, `table_function_not_allowed`, `function_not_allowed`, `query_failed` (for example an unknown column), `timeout`, `result_too_large`, `resource_limit`, `invalid_job`, `job_not_found`, `job_exists`, `job_limit_reached`, `job_running`, `job_failed`, `busy`, `rate_limited`, `invalid_request` (the request itself is malformed), `no_organization`, `studio_unavailable`.",
|
|
47561
|
+
"description": "Stable code for the kind of failure: `not_a_select`, `multiple_statements`, `syntax_error`, `unknown_table`, `table_function_not_allowed`, `function_not_allowed`, `query_failed` (for example an unknown column), `timeout`, `result_too_large`, `resource_limit`, `invalid_job`, `job_not_found`, `job_exists`, `job_limit_reached`, `job_running`, `job_failed`, `busy`, `rate_limited`, `invalid_request` (the request itself is malformed), `no_organization`, `entitlement_missing` (a heavy job, which your organization has not enabled; `details.entitlementKey`), `entitlement_unavailable`, `studio_unavailable`.",
|
|
47527
47562
|
"example": "unknown_table",
|
|
47528
47563
|
"type": "string"
|
|
47529
47564
|
},
|
|
@@ -47541,6 +47576,10 @@
|
|
|
47541
47576
|
"description": "The column name that does not exist.",
|
|
47542
47577
|
"type": "string"
|
|
47543
47578
|
},
|
|
47579
|
+
"entitlementKey": {
|
|
47580
|
+
"description": "For `entitlement_missing`: what your ModelMatch admin would enable.",
|
|
47581
|
+
"type": "string"
|
|
47582
|
+
},
|
|
47544
47583
|
"function": {
|
|
47545
47584
|
"description": "The function that is not available.",
|
|
47546
47585
|
"type": "string"
|
|
@@ -47676,6 +47715,14 @@
|
|
|
47676
47715
|
],
|
|
47677
47716
|
"type": "string"
|
|
47678
47717
|
},
|
|
47718
|
+
"size": {
|
|
47719
|
+
"description": "`heavy`: catalog `limits.heavyJobs` apply.",
|
|
47720
|
+
"enum": [
|
|
47721
|
+
"light",
|
|
47722
|
+
"heavy"
|
|
47723
|
+
],
|
|
47724
|
+
"type": "string"
|
|
47725
|
+
},
|
|
47679
47726
|
"sql": {
|
|
47680
47727
|
"type": "string"
|
|
47681
47728
|
},
|
|
@@ -47966,6 +48013,10 @@
|
|
|
47966
48013
|
"description": "The column name that does not exist.",
|
|
47967
48014
|
"type": "string"
|
|
47968
48015
|
},
|
|
48016
|
+
"entitlementKey": {
|
|
48017
|
+
"description": "For `entitlement_missing`: what your ModelMatch admin would enable.",
|
|
48018
|
+
"type": "string"
|
|
48019
|
+
},
|
|
47969
48020
|
"function": {
|
|
47970
48021
|
"description": "The function that is not available.",
|
|
47971
48022
|
"type": "string"
|
|
@@ -48111,6 +48162,14 @@
|
|
|
48111
48162
|
],
|
|
48112
48163
|
"type": "string"
|
|
48113
48164
|
},
|
|
48165
|
+
"size": {
|
|
48166
|
+
"description": "`heavy`: more time and rows per run (catalog `limits.heavyJobs`), if enabled for the organization.",
|
|
48167
|
+
"enum": [
|
|
48168
|
+
"light",
|
|
48169
|
+
"heavy"
|
|
48170
|
+
],
|
|
48171
|
+
"type": "string"
|
|
48172
|
+
},
|
|
48114
48173
|
"sql": {
|
|
48115
48174
|
"description": "One read-only SELECT, checked when the job is saved. It may use `$as_of`, the date of the run (a DATE), so the same job can be re-run for any day. Required unless copying.",
|
|
48116
48175
|
"maxLength": 20000,
|
|
@@ -48364,6 +48423,13 @@
|
|
|
48364
48423
|
"runId": {
|
|
48365
48424
|
"type": "string"
|
|
48366
48425
|
},
|
|
48426
|
+
"size": {
|
|
48427
|
+
"description": "`heavy`: ran with a heavy job's limits and price.",
|
|
48428
|
+
"enum": [
|
|
48429
|
+
"heavy"
|
|
48430
|
+
],
|
|
48431
|
+
"type": "string"
|
|
48432
|
+
},
|
|
48367
48433
|
"startedAt": {
|
|
48368
48434
|
"type": "string"
|
|
48369
48435
|
},
|
|
@@ -48469,11 +48535,16 @@
|
|
|
48469
48535
|
"email"
|
|
48470
48536
|
],
|
|
48471
48537
|
"type": "object"
|
|
48538
|
+
},
|
|
48539
|
+
"size": {
|
|
48540
|
+
"description": "`heavy`: more time and rows per run (catalog `limits.heavyJobs`), if enabled for the organization.",
|
|
48541
|
+
"enum": [
|
|
48542
|
+
"light",
|
|
48543
|
+
"heavy"
|
|
48544
|
+
],
|
|
48545
|
+
"type": "string"
|
|
48472
48546
|
}
|
|
48473
48547
|
},
|
|
48474
|
-
"required": [
|
|
48475
|
-
"notify"
|
|
48476
|
-
],
|
|
48477
48548
|
"type": "object"
|
|
48478
48549
|
},
|
|
48479
48550
|
"StudioModel": {
|
|
@@ -50270,6 +50341,424 @@
|
|
|
50270
50341
|
],
|
|
50271
50342
|
"type": "object"
|
|
50272
50343
|
},
|
|
50344
|
+
"StudioProgram": {
|
|
50345
|
+
"properties": {
|
|
50346
|
+
"available": {
|
|
50347
|
+
"description": "True when your organization can run programs. False: ask your ModelMatch admin to enable them.",
|
|
50348
|
+
"type": "boolean"
|
|
50349
|
+
},
|
|
50350
|
+
"name": {
|
|
50351
|
+
"example": "company_retention",
|
|
50352
|
+
"type": "string"
|
|
50353
|
+
},
|
|
50354
|
+
"options": {
|
|
50355
|
+
"description": "The switches you can set, with their defaults.",
|
|
50356
|
+
"items": {
|
|
50357
|
+
"properties": {
|
|
50358
|
+
"default": {
|
|
50359
|
+
"description": "Used when left out.",
|
|
50360
|
+
"nullable": true
|
|
50361
|
+
},
|
|
50362
|
+
"description": {
|
|
50363
|
+
"type": "string"
|
|
50364
|
+
},
|
|
50365
|
+
"name": {
|
|
50366
|
+
"type": "string"
|
|
50367
|
+
}
|
|
50368
|
+
},
|
|
50369
|
+
"required": [
|
|
50370
|
+
"name",
|
|
50371
|
+
"description"
|
|
50372
|
+
],
|
|
50373
|
+
"type": "object"
|
|
50374
|
+
},
|
|
50375
|
+
"type": "array"
|
|
50376
|
+
},
|
|
50377
|
+
"price": {
|
|
50378
|
+
"properties": {
|
|
50379
|
+
"credits": {
|
|
50380
|
+
"description": "Credits charged once for a run that succeeds, when it has finished. A run that fails or times out is free.",
|
|
50381
|
+
"type": "number"
|
|
50382
|
+
}
|
|
50383
|
+
},
|
|
50384
|
+
"required": [
|
|
50385
|
+
"credits"
|
|
50386
|
+
],
|
|
50387
|
+
"type": "object"
|
|
50388
|
+
},
|
|
50389
|
+
"summary": {
|
|
50390
|
+
"type": "string"
|
|
50391
|
+
},
|
|
50392
|
+
"tables": {
|
|
50393
|
+
"description": "The tables a run leaves in your organization: your `name` plus each `suffix` (empty for the first).",
|
|
50394
|
+
"items": {
|
|
50395
|
+
"properties": {
|
|
50396
|
+
"description": {
|
|
50397
|
+
"type": "string"
|
|
50398
|
+
},
|
|
50399
|
+
"suffix": {
|
|
50400
|
+
"type": "string"
|
|
50401
|
+
}
|
|
50402
|
+
},
|
|
50403
|
+
"required": [
|
|
50404
|
+
"suffix",
|
|
50405
|
+
"description"
|
|
50406
|
+
],
|
|
50407
|
+
"type": "object"
|
|
50408
|
+
},
|
|
50409
|
+
"type": "array"
|
|
50410
|
+
},
|
|
50411
|
+
"title": {
|
|
50412
|
+
"type": "string"
|
|
50413
|
+
}
|
|
50414
|
+
},
|
|
50415
|
+
"required": [
|
|
50416
|
+
"name",
|
|
50417
|
+
"title",
|
|
50418
|
+
"summary",
|
|
50419
|
+
"options",
|
|
50420
|
+
"tables",
|
|
50421
|
+
"price",
|
|
50422
|
+
"available"
|
|
50423
|
+
],
|
|
50424
|
+
"type": "object"
|
|
50425
|
+
},
|
|
50426
|
+
"StudioProgramCredits": {
|
|
50427
|
+
"properties": {
|
|
50428
|
+
"charged": {
|
|
50429
|
+
"description": "Credits this call charged: the program's price when it is the first to read a run that succeeded (its tables are then delivered), otherwise 0. A run is charged once.",
|
|
50430
|
+
"type": "number"
|
|
50431
|
+
},
|
|
50432
|
+
"pending": {
|
|
50433
|
+
"description": "Where a run was just started: what it will cost when it succeeds.",
|
|
50434
|
+
"type": "number"
|
|
50435
|
+
},
|
|
50436
|
+
"remaining": {
|
|
50437
|
+
"description": "Your balance after the charge, when one was made.",
|
|
50438
|
+
"type": "number"
|
|
50439
|
+
}
|
|
50440
|
+
},
|
|
50441
|
+
"required": [
|
|
50442
|
+
"charged"
|
|
50443
|
+
],
|
|
50444
|
+
"type": "object"
|
|
50445
|
+
},
|
|
50446
|
+
"StudioProgramError": {
|
|
50447
|
+
"properties": {
|
|
50448
|
+
"code": {
|
|
50449
|
+
"description": "`invalid_request` (a switch the program does not list, or a bad value), `invalid_name`, `program_not_found`, `run_not_found`, `table_exists`, `program_running`, `busy`, `rate_limited`, `entitlement_missing`, `entitlement_unavailable`, `billing_unavailable`, `no_organization`, `studio_not_enabled`, `studio_unavailable`.",
|
|
50450
|
+
"type": "string"
|
|
50451
|
+
},
|
|
50452
|
+
"details": {
|
|
50453
|
+
"description": "What the error is about: `retryAfterSeconds` and `limit` for a refusal to start now, `entitlementKey` for `entitlement_missing`.",
|
|
50454
|
+
"properties": {
|
|
50455
|
+
"availableTables": {
|
|
50456
|
+
"items": {
|
|
50457
|
+
"type": "string"
|
|
50458
|
+
},
|
|
50459
|
+
"type": "array"
|
|
50460
|
+
},
|
|
50461
|
+
"boostColumns": {
|
|
50462
|
+
"items": {
|
|
50463
|
+
"type": "string"
|
|
50464
|
+
},
|
|
50465
|
+
"type": "array"
|
|
50466
|
+
},
|
|
50467
|
+
"column": {
|
|
50468
|
+
"type": "string"
|
|
50469
|
+
},
|
|
50470
|
+
"dataPoint": {
|
|
50471
|
+
"type": "string"
|
|
50472
|
+
},
|
|
50473
|
+
"dataPoints": {
|
|
50474
|
+
"items": {
|
|
50475
|
+
"type": "string"
|
|
50476
|
+
},
|
|
50477
|
+
"type": "array"
|
|
50478
|
+
},
|
|
50479
|
+
"directionRules": {
|
|
50480
|
+
"items": {
|
|
50481
|
+
"type": "string"
|
|
50482
|
+
},
|
|
50483
|
+
"type": "array"
|
|
50484
|
+
},
|
|
50485
|
+
"entitlementKey": {
|
|
50486
|
+
"type": "string"
|
|
50487
|
+
},
|
|
50488
|
+
"examples": {
|
|
50489
|
+
"type": "number"
|
|
50490
|
+
},
|
|
50491
|
+
"function": {
|
|
50492
|
+
"type": "string"
|
|
50493
|
+
},
|
|
50494
|
+
"limit": {
|
|
50495
|
+
"type": "number"
|
|
50496
|
+
},
|
|
50497
|
+
"matchRate": {
|
|
50498
|
+
"type": "number"
|
|
50499
|
+
},
|
|
50500
|
+
"matched": {
|
|
50501
|
+
"type": "number"
|
|
50502
|
+
},
|
|
50503
|
+
"minimum": {
|
|
50504
|
+
"type": "number"
|
|
50505
|
+
},
|
|
50506
|
+
"positives": {
|
|
50507
|
+
"type": "number"
|
|
50508
|
+
},
|
|
50509
|
+
"retryAfterSeconds": {
|
|
50510
|
+
"type": "number"
|
|
50511
|
+
},
|
|
50512
|
+
"rows": {
|
|
50513
|
+
"type": "number"
|
|
50514
|
+
},
|
|
50515
|
+
"running": {
|
|
50516
|
+
"type": "number"
|
|
50517
|
+
},
|
|
50518
|
+
"suggestions": {
|
|
50519
|
+
"items": {
|
|
50520
|
+
"type": "string"
|
|
50521
|
+
},
|
|
50522
|
+
"type": "array"
|
|
50523
|
+
},
|
|
50524
|
+
"table": {
|
|
50525
|
+
"type": "string"
|
|
50526
|
+
}
|
|
50527
|
+
},
|
|
50528
|
+
"type": "object"
|
|
50529
|
+
},
|
|
50530
|
+
"error": {
|
|
50531
|
+
"type": "string"
|
|
50532
|
+
}
|
|
50533
|
+
},
|
|
50534
|
+
"required": [
|
|
50535
|
+
"error",
|
|
50536
|
+
"code"
|
|
50537
|
+
],
|
|
50538
|
+
"type": "object"
|
|
50539
|
+
},
|
|
50540
|
+
"StudioProgramList": {
|
|
50541
|
+
"properties": {
|
|
50542
|
+
"data": {
|
|
50543
|
+
"items": {
|
|
50544
|
+
"$ref": "#/components/schemas/StudioProgram"
|
|
50545
|
+
},
|
|
50546
|
+
"type": "array"
|
|
50547
|
+
}
|
|
50548
|
+
},
|
|
50549
|
+
"required": [
|
|
50550
|
+
"data"
|
|
50551
|
+
],
|
|
50552
|
+
"type": "object"
|
|
50553
|
+
},
|
|
50554
|
+
"StudioProgramPaymentRequired": {
|
|
50555
|
+
"properties": {
|
|
50556
|
+
"balance": {
|
|
50557
|
+
"type": "number"
|
|
50558
|
+
},
|
|
50559
|
+
"cost": {
|
|
50560
|
+
"type": "number"
|
|
50561
|
+
},
|
|
50562
|
+
"error": {
|
|
50563
|
+
"enum": [
|
|
50564
|
+
"payment_required"
|
|
50565
|
+
],
|
|
50566
|
+
"type": "string"
|
|
50567
|
+
},
|
|
50568
|
+
"message": {
|
|
50569
|
+
"type": "string"
|
|
50570
|
+
},
|
|
50571
|
+
"reason": {
|
|
50572
|
+
"type": "string"
|
|
50573
|
+
}
|
|
50574
|
+
},
|
|
50575
|
+
"required": [
|
|
50576
|
+
"error",
|
|
50577
|
+
"balance",
|
|
50578
|
+
"cost"
|
|
50579
|
+
],
|
|
50580
|
+
"type": "object"
|
|
50581
|
+
},
|
|
50582
|
+
"StudioProgramRun": {
|
|
50583
|
+
"properties": {
|
|
50584
|
+
"asOf": {
|
|
50585
|
+
"type": "string"
|
|
50586
|
+
},
|
|
50587
|
+
"dataThrough": {
|
|
50588
|
+
"nullable": true,
|
|
50589
|
+
"type": "string"
|
|
50590
|
+
},
|
|
50591
|
+
"delivered": {
|
|
50592
|
+
"description": "True once the tables are in your organization: query them like any table (the catalog lists them).",
|
|
50593
|
+
"type": "boolean"
|
|
50594
|
+
},
|
|
50595
|
+
"elapsedMs": {
|
|
50596
|
+
"nullable": true,
|
|
50597
|
+
"type": "number"
|
|
50598
|
+
},
|
|
50599
|
+
"error": {
|
|
50600
|
+
"nullable": true,
|
|
50601
|
+
"properties": {
|
|
50602
|
+
"code": {
|
|
50603
|
+
"type": "string"
|
|
50604
|
+
},
|
|
50605
|
+
"message": {
|
|
50606
|
+
"type": "string"
|
|
50607
|
+
}
|
|
50608
|
+
},
|
|
50609
|
+
"required": [
|
|
50610
|
+
"code",
|
|
50611
|
+
"message"
|
|
50612
|
+
],
|
|
50613
|
+
"type": "object"
|
|
50614
|
+
},
|
|
50615
|
+
"finishedAt": {
|
|
50616
|
+
"nullable": true,
|
|
50617
|
+
"type": "string"
|
|
50618
|
+
},
|
|
50619
|
+
"name": {
|
|
50620
|
+
"description": "The name you gave the result.",
|
|
50621
|
+
"type": "string"
|
|
50622
|
+
},
|
|
50623
|
+
"options": {
|
|
50624
|
+
"additionalProperties": {
|
|
50625
|
+
"nullable": true
|
|
50626
|
+
},
|
|
50627
|
+
"type": "object"
|
|
50628
|
+
},
|
|
50629
|
+
"program": {
|
|
50630
|
+
"type": "string"
|
|
50631
|
+
},
|
|
50632
|
+
"progress": {
|
|
50633
|
+
"nullable": true,
|
|
50634
|
+
"properties": {
|
|
50635
|
+
"done": {
|
|
50636
|
+
"type": "number"
|
|
50637
|
+
},
|
|
50638
|
+
"step": {
|
|
50639
|
+
"type": "string"
|
|
50640
|
+
},
|
|
50641
|
+
"total": {
|
|
50642
|
+
"type": "number"
|
|
50643
|
+
}
|
|
50644
|
+
},
|
|
50645
|
+
"required": [
|
|
50646
|
+
"step"
|
|
50647
|
+
],
|
|
50648
|
+
"type": "object"
|
|
50649
|
+
},
|
|
50650
|
+
"runId": {
|
|
50651
|
+
"type": "string"
|
|
50652
|
+
},
|
|
50653
|
+
"startedAt": {
|
|
50654
|
+
"type": "string"
|
|
50655
|
+
},
|
|
50656
|
+
"state": {
|
|
50657
|
+
"enum": [
|
|
50658
|
+
"running",
|
|
50659
|
+
"succeeded",
|
|
50660
|
+
"failed"
|
|
50661
|
+
],
|
|
50662
|
+
"type": "string"
|
|
50663
|
+
},
|
|
50664
|
+
"tables": {
|
|
50665
|
+
"items": {
|
|
50666
|
+
"properties": {
|
|
50667
|
+
"rowCount": {
|
|
50668
|
+
"nullable": true,
|
|
50669
|
+
"type": "number"
|
|
50670
|
+
},
|
|
50671
|
+
"table": {
|
|
50672
|
+
"type": "string"
|
|
50673
|
+
}
|
|
50674
|
+
},
|
|
50675
|
+
"required": [
|
|
50676
|
+
"table",
|
|
50677
|
+
"rowCount"
|
|
50678
|
+
],
|
|
50679
|
+
"type": "object"
|
|
50680
|
+
},
|
|
50681
|
+
"type": "array"
|
|
50682
|
+
},
|
|
50683
|
+
"title": {
|
|
50684
|
+
"type": "string"
|
|
50685
|
+
}
|
|
50686
|
+
},
|
|
50687
|
+
"required": [
|
|
50688
|
+
"runId",
|
|
50689
|
+
"program",
|
|
50690
|
+
"title",
|
|
50691
|
+
"name",
|
|
50692
|
+
"state",
|
|
50693
|
+
"delivered",
|
|
50694
|
+
"tables",
|
|
50695
|
+
"startedAt",
|
|
50696
|
+
"finishedAt",
|
|
50697
|
+
"elapsedMs",
|
|
50698
|
+
"asOf",
|
|
50699
|
+
"options",
|
|
50700
|
+
"dataThrough",
|
|
50701
|
+
"progress",
|
|
50702
|
+
"error"
|
|
50703
|
+
],
|
|
50704
|
+
"type": "object"
|
|
50705
|
+
},
|
|
50706
|
+
"StudioProgramRunList": {
|
|
50707
|
+
"properties": {
|
|
50708
|
+
"credits": {
|
|
50709
|
+
"$ref": "#/components/schemas/StudioProgramCredits"
|
|
50710
|
+
},
|
|
50711
|
+
"data": {
|
|
50712
|
+
"items": {
|
|
50713
|
+
"$ref": "#/components/schemas/StudioProgramRun"
|
|
50714
|
+
},
|
|
50715
|
+
"type": "array"
|
|
50716
|
+
}
|
|
50717
|
+
},
|
|
50718
|
+
"required": [
|
|
50719
|
+
"data",
|
|
50720
|
+
"credits"
|
|
50721
|
+
],
|
|
50722
|
+
"type": "object"
|
|
50723
|
+
},
|
|
50724
|
+
"StudioProgramRunRequest": {
|
|
50725
|
+
"additionalProperties": false,
|
|
50726
|
+
"properties": {
|
|
50727
|
+
"name": {
|
|
50728
|
+
"description": "What to call the result: the first table gets this name, the others this name plus their suffix (`tables[].suffix` on the program). Lower-case letters, digits and underscores, starting with a letter. A name starting with mm_, crm_, upload_ or model_ is reserved. Running again with the same name replaces your earlier result, and keeps it as `<name>__previous`.",
|
|
50729
|
+
"example": "tx_retention",
|
|
50730
|
+
"maxLength": 63,
|
|
50731
|
+
"minLength": 1,
|
|
50732
|
+
"type": "string"
|
|
50733
|
+
},
|
|
50734
|
+
"options": {
|
|
50735
|
+
"additionalProperties": {
|
|
50736
|
+
"nullable": true
|
|
50737
|
+
},
|
|
50738
|
+
"description": "Values for the program's switches (`options` on the program), for example `{ \"states\": [\"TX\"] }`. Only the switches the program lists; anything else is refused with 400. Left out: every switch's default.",
|
|
50739
|
+
"type": "object"
|
|
50740
|
+
}
|
|
50741
|
+
},
|
|
50742
|
+
"required": [
|
|
50743
|
+
"name"
|
|
50744
|
+
],
|
|
50745
|
+
"type": "object"
|
|
50746
|
+
},
|
|
50747
|
+
"StudioProgramRunResult": {
|
|
50748
|
+
"properties": {
|
|
50749
|
+
"credits": {
|
|
50750
|
+
"$ref": "#/components/schemas/StudioProgramCredits"
|
|
50751
|
+
},
|
|
50752
|
+
"data": {
|
|
50753
|
+
"$ref": "#/components/schemas/StudioProgramRun"
|
|
50754
|
+
}
|
|
50755
|
+
},
|
|
50756
|
+
"required": [
|
|
50757
|
+
"data",
|
|
50758
|
+
"credits"
|
|
50759
|
+
],
|
|
50760
|
+
"type": "object"
|
|
50761
|
+
},
|
|
50273
50762
|
"StudioPublishedModel": {
|
|
50274
50763
|
"properties": {
|
|
50275
50764
|
"asOf": {
|
|
@@ -51977,7 +52466,7 @@
|
|
|
51977
52466
|
"info": {
|
|
51978
52467
|
"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.",
|
|
51979
52468
|
"title": "ModelMatch API",
|
|
51980
|
-
"version": "3.
|
|
52469
|
+
"version": "3.173.0"
|
|
51981
52470
|
},
|
|
51982
52471
|
"openapi": "3.1.0",
|
|
51983
52472
|
"paths": {
|
|
@@ -91031,7 +91520,7 @@
|
|
|
91031
91520
|
}
|
|
91032
91521
|
}
|
|
91033
91522
|
},
|
|
91034
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
91523
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
91035
91524
|
},
|
|
91036
91525
|
"404": {
|
|
91037
91526
|
"content": {
|
|
@@ -91081,7 +91570,7 @@
|
|
|
91081
91570
|
}
|
|
91082
91571
|
}
|
|
91083
91572
|
},
|
|
91084
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
91573
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
91085
91574
|
}
|
|
91086
91575
|
},
|
|
91087
91576
|
"summary": "Tables you can query in Studio, with their columns",
|
|
@@ -91133,7 +91622,7 @@
|
|
|
91133
91622
|
}
|
|
91134
91623
|
}
|
|
91135
91624
|
},
|
|
91136
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
91625
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
91137
91626
|
},
|
|
91138
91627
|
"404": {
|
|
91139
91628
|
"content": {
|
|
@@ -91183,7 +91672,7 @@
|
|
|
91183
91672
|
}
|
|
91184
91673
|
}
|
|
91185
91674
|
},
|
|
91186
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
91675
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
91187
91676
|
}
|
|
91188
91677
|
},
|
|
91189
91678
|
"summary": "Your organization's saved jobs",
|
|
@@ -91192,7 +91681,7 @@
|
|
|
91192
91681
|
]
|
|
91193
91682
|
},
|
|
91194
91683
|
"post": {
|
|
91195
|
-
"description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.",
|
|
91684
|
+
"description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same.",
|
|
91196
91685
|
"operationId": "createStudioJob",
|
|
91197
91686
|
"requestBody": {
|
|
91198
91687
|
"content": {
|
|
@@ -91243,7 +91732,7 @@
|
|
|
91243
91732
|
}
|
|
91244
91733
|
}
|
|
91245
91734
|
},
|
|
91246
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
91735
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
91247
91736
|
},
|
|
91248
91737
|
"404": {
|
|
91249
91738
|
"content": {
|
|
@@ -91293,7 +91782,7 @@
|
|
|
91293
91782
|
}
|
|
91294
91783
|
}
|
|
91295
91784
|
},
|
|
91296
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
91785
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
91297
91786
|
}
|
|
91298
91787
|
},
|
|
91299
91788
|
"summary": "Save a question as a job",
|
|
@@ -91359,7 +91848,7 @@
|
|
|
91359
91848
|
}
|
|
91360
91849
|
}
|
|
91361
91850
|
},
|
|
91362
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
91851
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
91363
91852
|
},
|
|
91364
91853
|
"404": {
|
|
91365
91854
|
"content": {
|
|
@@ -91409,7 +91898,7 @@
|
|
|
91409
91898
|
}
|
|
91410
91899
|
}
|
|
91411
91900
|
},
|
|
91412
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
91901
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
91413
91902
|
}
|
|
91414
91903
|
},
|
|
91415
91904
|
"summary": "Delete a job and its results",
|
|
@@ -91473,7 +91962,7 @@
|
|
|
91473
91962
|
}
|
|
91474
91963
|
}
|
|
91475
91964
|
},
|
|
91476
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
91965
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
91477
91966
|
},
|
|
91478
91967
|
"404": {
|
|
91479
91968
|
"content": {
|
|
@@ -91523,7 +92012,7 @@
|
|
|
91523
92012
|
}
|
|
91524
92013
|
}
|
|
91525
92014
|
},
|
|
91526
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
92015
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
91527
92016
|
}
|
|
91528
92017
|
},
|
|
91529
92018
|
"summary": "One job: its runs, what changed, and where its result is",
|
|
@@ -91532,7 +92021,7 @@
|
|
|
91532
92021
|
]
|
|
91533
92022
|
},
|
|
91534
92023
|
"patch": {
|
|
91535
|
-
"description": "Change how a saved job tells you about its alerts: `notify.email` false stops the email to the job's creator when an alert matches on a scheduled run; true turns it back on. Matched alerts are still recorded on each run. Free.",
|
|
92024
|
+
"description": "Change how a saved job tells you about its alerts: `notify.email` false stops the email to the job's creator when an alert matches on a scheduled run; true turns it back on. Matched alerts are still recorded on each run. `size` switches it between `light` and `heavy` (`heavy` needs heavy runs enabled). Free.",
|
|
91536
92025
|
"operationId": "updateStudioJob",
|
|
91537
92026
|
"parameters": [
|
|
91538
92027
|
{
|
|
@@ -91597,7 +92086,7 @@
|
|
|
91597
92086
|
}
|
|
91598
92087
|
}
|
|
91599
92088
|
},
|
|
91600
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
92089
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
91601
92090
|
},
|
|
91602
92091
|
"404": {
|
|
91603
92092
|
"content": {
|
|
@@ -91647,7 +92136,7 @@
|
|
|
91647
92136
|
}
|
|
91648
92137
|
}
|
|
91649
92138
|
},
|
|
91650
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
92139
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
91651
92140
|
}
|
|
91652
92141
|
},
|
|
91653
92142
|
"summary": "Change a job's settings",
|
|
@@ -91658,7 +92147,7 @@
|
|
|
91658
92147
|
},
|
|
91659
92148
|
"/v1/studio/jobs/{name}/run": {
|
|
91660
92149
|
"post": {
|
|
91661
|
-
"description": "Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds; a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.",
|
|
92150
|
+
"description": "Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.",
|
|
91662
92151
|
"operationId": "runStudioJob",
|
|
91663
92152
|
"parameters": [
|
|
91664
92153
|
{
|
|
@@ -91723,7 +92212,7 @@
|
|
|
91723
92212
|
}
|
|
91724
92213
|
}
|
|
91725
92214
|
},
|
|
91726
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
92215
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
91727
92216
|
},
|
|
91728
92217
|
"404": {
|
|
91729
92218
|
"content": {
|
|
@@ -91773,7 +92262,7 @@
|
|
|
91773
92262
|
}
|
|
91774
92263
|
}
|
|
91775
92264
|
},
|
|
91776
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
92265
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
91777
92266
|
}
|
|
91778
92267
|
},
|
|
91779
92268
|
"summary": "Run a job now",
|
|
@@ -91878,34 +92367,608 @@
|
|
|
91878
92367
|
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — 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)."
|
|
91879
92368
|
}
|
|
91880
92369
|
},
|
|
91881
|
-
"summary": "Your organization's models",
|
|
92370
|
+
"summary": "Your organization's models",
|
|
92371
|
+
"tags": [
|
|
92372
|
+
"Studio"
|
|
92373
|
+
]
|
|
92374
|
+
},
|
|
92375
|
+
"post": {
|
|
92376
|
+
"description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. Data points marked `needsFairLendingReview` describe the neighborhood and need neighborhood data enabled for the organization (`neighborhoodDataAllowed` on getStudioModelOptions): without it a model that uses them — including one that leaves `features` out, which means every data point — is refused with `403 entitlement_missing`, naming them in `details.dataPoints`; so is a priority boost on ZIP code or city, or a direction rule on a place (`details.boostColumns`, `details.directionRules`); tell the person to ask their ModelMatch admin, or pick other data points. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Neighborhood data points, boosts or directions it carries need neighborhood data enabled like your own (or override `features` / `boosts` to leave them out). Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
|
|
92377
|
+
"operationId": "createStudioModel",
|
|
92378
|
+
"requestBody": {
|
|
92379
|
+
"content": {
|
|
92380
|
+
"application/json": {
|
|
92381
|
+
"schema": {
|
|
92382
|
+
"$ref": "#/components/schemas/StudioModelCreate"
|
|
92383
|
+
}
|
|
92384
|
+
}
|
|
92385
|
+
},
|
|
92386
|
+
"required": true
|
|
92387
|
+
},
|
|
92388
|
+
"responses": {
|
|
92389
|
+
"201": {
|
|
92390
|
+
"content": {
|
|
92391
|
+
"application/json": {
|
|
92392
|
+
"schema": {
|
|
92393
|
+
"$ref": "#/components/schemas/StudioModelCreated"
|
|
92394
|
+
}
|
|
92395
|
+
}
|
|
92396
|
+
},
|
|
92397
|
+
"description": "Training has started"
|
|
92398
|
+
},
|
|
92399
|
+
"400": {
|
|
92400
|
+
"content": {
|
|
92401
|
+
"application/json": {
|
|
92402
|
+
"schema": {
|
|
92403
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92404
|
+
}
|
|
92405
|
+
}
|
|
92406
|
+
},
|
|
92407
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
92408
|
+
},
|
|
92409
|
+
"401": {
|
|
92410
|
+
"content": {
|
|
92411
|
+
"application/json": {
|
|
92412
|
+
"schema": {
|
|
92413
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92414
|
+
}
|
|
92415
|
+
}
|
|
92416
|
+
},
|
|
92417
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92418
|
+
},
|
|
92419
|
+
"403": {
|
|
92420
|
+
"content": {
|
|
92421
|
+
"application/json": {
|
|
92422
|
+
"schema": {
|
|
92423
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92424
|
+
}
|
|
92425
|
+
}
|
|
92426
|
+
},
|
|
92427
|
+
"description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
|
|
92428
|
+
},
|
|
92429
|
+
"404": {
|
|
92430
|
+
"content": {
|
|
92431
|
+
"application/json": {
|
|
92432
|
+
"schema": {
|
|
92433
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92434
|
+
}
|
|
92435
|
+
}
|
|
92436
|
+
},
|
|
92437
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92438
|
+
},
|
|
92439
|
+
"409": {
|
|
92440
|
+
"content": {
|
|
92441
|
+
"application/json": {
|
|
92442
|
+
"schema": {
|
|
92443
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92444
|
+
}
|
|
92445
|
+
}
|
|
92446
|
+
},
|
|
92447
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
|
|
92448
|
+
},
|
|
92449
|
+
"422": {
|
|
92450
|
+
"content": {
|
|
92451
|
+
"application/json": {
|
|
92452
|
+
"schema": {
|
|
92453
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92454
|
+
}
|
|
92455
|
+
}
|
|
92456
|
+
},
|
|
92457
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
92458
|
+
},
|
|
92459
|
+
"429": {
|
|
92460
|
+
"content": {
|
|
92461
|
+
"application/json": {
|
|
92462
|
+
"schema": {
|
|
92463
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92464
|
+
}
|
|
92465
|
+
}
|
|
92466
|
+
},
|
|
92467
|
+
"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`)."
|
|
92468
|
+
},
|
|
92469
|
+
"502": {
|
|
92470
|
+
"content": {
|
|
92471
|
+
"application/json": {
|
|
92472
|
+
"schema": {
|
|
92473
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92474
|
+
}
|
|
92475
|
+
}
|
|
92476
|
+
},
|
|
92477
|
+
"description": "`entitlement_unavailable` — whether your organization can train on neighborhood data could not be confirmed right now; nothing was started. Try again in a minute."
|
|
92478
|
+
},
|
|
92479
|
+
"503": {
|
|
92480
|
+
"content": {
|
|
92481
|
+
"application/json": {
|
|
92482
|
+
"schema": {
|
|
92483
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92484
|
+
}
|
|
92485
|
+
}
|
|
92486
|
+
},
|
|
92487
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — 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)."
|
|
92488
|
+
}
|
|
92489
|
+
},
|
|
92490
|
+
"summary": "Create a prediction model and start training it",
|
|
92491
|
+
"tags": [
|
|
92492
|
+
"Studio"
|
|
92493
|
+
]
|
|
92494
|
+
}
|
|
92495
|
+
},
|
|
92496
|
+
"/v1/studio/models/options": {
|
|
92497
|
+
"get": {
|
|
92498
|
+
"description": "Everything needed to define a model: the outcomes that can be predicted, who can be scored (`populations`), the data points a model may use, grouped by theme, each with a line on why someone might believe it matters, the limits, what a table of your own outcomes must contain, and how long a model takes for each state (`trainingTime`: a range of minutes, an estimate). Call this first, show the themes, and ASK which data points the person believes matter: a model is trained on exactly their picks, and its report card tests that belief. Free.",
|
|
92499
|
+
"operationId": "getStudioModelOptions",
|
|
92500
|
+
"responses": {
|
|
92501
|
+
"200": {
|
|
92502
|
+
"content": {
|
|
92503
|
+
"application/json": {
|
|
92504
|
+
"schema": {
|
|
92505
|
+
"$ref": "#/components/schemas/StudioModelOptionsResult"
|
|
92506
|
+
}
|
|
92507
|
+
}
|
|
92508
|
+
},
|
|
92509
|
+
"description": "The choices"
|
|
92510
|
+
},
|
|
92511
|
+
"400": {
|
|
92512
|
+
"content": {
|
|
92513
|
+
"application/json": {
|
|
92514
|
+
"schema": {
|
|
92515
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92516
|
+
}
|
|
92517
|
+
}
|
|
92518
|
+
},
|
|
92519
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
92520
|
+
},
|
|
92521
|
+
"401": {
|
|
92522
|
+
"content": {
|
|
92523
|
+
"application/json": {
|
|
92524
|
+
"schema": {
|
|
92525
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92526
|
+
}
|
|
92527
|
+
}
|
|
92528
|
+
},
|
|
92529
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92530
|
+
},
|
|
92531
|
+
"403": {
|
|
92532
|
+
"content": {
|
|
92533
|
+
"application/json": {
|
|
92534
|
+
"schema": {
|
|
92535
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92536
|
+
}
|
|
92537
|
+
}
|
|
92538
|
+
},
|
|
92539
|
+
"description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
|
|
92540
|
+
},
|
|
92541
|
+
"404": {
|
|
92542
|
+
"content": {
|
|
92543
|
+
"application/json": {
|
|
92544
|
+
"schema": {
|
|
92545
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92546
|
+
}
|
|
92547
|
+
}
|
|
92548
|
+
},
|
|
92549
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92550
|
+
},
|
|
92551
|
+
"409": {
|
|
92552
|
+
"content": {
|
|
92553
|
+
"application/json": {
|
|
92554
|
+
"schema": {
|
|
92555
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92556
|
+
}
|
|
92557
|
+
}
|
|
92558
|
+
},
|
|
92559
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
|
|
92560
|
+
},
|
|
92561
|
+
"422": {
|
|
92562
|
+
"content": {
|
|
92563
|
+
"application/json": {
|
|
92564
|
+
"schema": {
|
|
92565
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92566
|
+
}
|
|
92567
|
+
}
|
|
92568
|
+
},
|
|
92569
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
92570
|
+
},
|
|
92571
|
+
"429": {
|
|
92572
|
+
"content": {
|
|
92573
|
+
"application/json": {
|
|
92574
|
+
"schema": {
|
|
92575
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92576
|
+
}
|
|
92577
|
+
}
|
|
92578
|
+
},
|
|
92579
|
+
"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`)."
|
|
92580
|
+
},
|
|
92581
|
+
"503": {
|
|
92582
|
+
"content": {
|
|
92583
|
+
"application/json": {
|
|
92584
|
+
"schema": {
|
|
92585
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92586
|
+
}
|
|
92587
|
+
}
|
|
92588
|
+
},
|
|
92589
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — 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)."
|
|
92590
|
+
}
|
|
92591
|
+
},
|
|
92592
|
+
"summary": "What a prediction model can be built from",
|
|
92593
|
+
"tags": [
|
|
92594
|
+
"Studio"
|
|
92595
|
+
]
|
|
92596
|
+
}
|
|
92597
|
+
},
|
|
92598
|
+
"/v1/studio/models/published/{table}": {
|
|
92599
|
+
"get": {
|
|
92600
|
+
"description": "The report card of a prediction model ModelMatch trains and publishes for every organization; its scores are the published table `table`. If `hasCaution` is true, say `caution` FIRST: the model fell behind the best simple rule in part of the test period while staying better than random. Then: what it predicts (`predicts`), the `headline` as written, what it learned from and was tested on (`learnedFrom.sentence`), the lift sentences (`metrics.top10`, `metrics.top1`), the three `metrics.checks`, the data points that mattered (`dataPoints.used`, strongest first, with how much the model leaned on each — not how much it causes the outcome) and the ones it barely used (`dataPoints.rejected`), and the `caveats`. Never promise accuracy, and never call a score a probability unless `metrics.calibrated` is true. Free.",
|
|
92601
|
+
"operationId": "getStudioPublishedModel",
|
|
92602
|
+
"parameters": [
|
|
92603
|
+
{
|
|
92604
|
+
"description": "Its `mm_model_*` table.",
|
|
92605
|
+
"in": "path",
|
|
92606
|
+
"name": "table",
|
|
92607
|
+
"required": true,
|
|
92608
|
+
"schema": {
|
|
92609
|
+
"description": "Its `mm_model_*` table.",
|
|
92610
|
+
"example": "mm_model_refi_watch",
|
|
92611
|
+
"pattern": "^mm_[a-z][a-z0-9_]{1,58}$",
|
|
92612
|
+
"type": "string"
|
|
92613
|
+
}
|
|
92614
|
+
}
|
|
92615
|
+
],
|
|
92616
|
+
"responses": {
|
|
92617
|
+
"200": {
|
|
92618
|
+
"content": {
|
|
92619
|
+
"application/json": {
|
|
92620
|
+
"schema": {
|
|
92621
|
+
"$ref": "#/components/schemas/StudioPublishedModelResult"
|
|
92622
|
+
}
|
|
92623
|
+
}
|
|
92624
|
+
},
|
|
92625
|
+
"description": "The report card"
|
|
92626
|
+
},
|
|
92627
|
+
"400": {
|
|
92628
|
+
"content": {
|
|
92629
|
+
"application/json": {
|
|
92630
|
+
"schema": {
|
|
92631
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92632
|
+
}
|
|
92633
|
+
}
|
|
92634
|
+
},
|
|
92635
|
+
"description": "`invalid_request` — not a published table's name."
|
|
92636
|
+
},
|
|
92637
|
+
"401": {
|
|
92638
|
+
"content": {
|
|
92639
|
+
"application/json": {
|
|
92640
|
+
"schema": {
|
|
92641
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92642
|
+
}
|
|
92643
|
+
}
|
|
92644
|
+
},
|
|
92645
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92646
|
+
},
|
|
92647
|
+
"403": {
|
|
92648
|
+
"content": {
|
|
92649
|
+
"application/json": {
|
|
92650
|
+
"schema": {
|
|
92651
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92652
|
+
}
|
|
92653
|
+
}
|
|
92654
|
+
},
|
|
92655
|
+
"description": "`no_organization` — select an organization; `studio_not_enabled` — Studio is not enabled for this account."
|
|
92656
|
+
},
|
|
92657
|
+
"404": {
|
|
92658
|
+
"content": {
|
|
92659
|
+
"application/json": {
|
|
92660
|
+
"schema": {
|
|
92661
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92662
|
+
}
|
|
92663
|
+
}
|
|
92664
|
+
},
|
|
92665
|
+
"description": "`published_model_not_found` — no model of that name is published. The catalog lists what is."
|
|
92666
|
+
},
|
|
92667
|
+
"409": {
|
|
92668
|
+
"content": {
|
|
92669
|
+
"application/json": {
|
|
92670
|
+
"schema": {
|
|
92671
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92672
|
+
}
|
|
92673
|
+
}
|
|
92674
|
+
},
|
|
92675
|
+
"description": "`published_unavailable` — published tables are switched off right now."
|
|
92676
|
+
},
|
|
92677
|
+
"503": {
|
|
92678
|
+
"content": {
|
|
92679
|
+
"application/json": {
|
|
92680
|
+
"schema": {
|
|
92681
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92682
|
+
}
|
|
92683
|
+
}
|
|
92684
|
+
},
|
|
92685
|
+
"description": "`studio_unavailable` — try again in a minute."
|
|
92686
|
+
}
|
|
92687
|
+
},
|
|
92688
|
+
"summary": "A model ModelMatch publishes: its report card",
|
|
92689
|
+
"tags": [
|
|
92690
|
+
"Studio"
|
|
92691
|
+
]
|
|
92692
|
+
}
|
|
92693
|
+
},
|
|
92694
|
+
"/v1/studio/models/{name}": {
|
|
92695
|
+
"delete": {
|
|
92696
|
+
"description": "Delete a model: the trained model, its report card and its scores table. The table leaves the catalog at once, and questions and jobs that read it stop working. A run in progress is stopped. This cannot be undone. Free.",
|
|
92697
|
+
"operationId": "deleteStudioModel",
|
|
92698
|
+
"parameters": [
|
|
92699
|
+
{
|
|
92700
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92701
|
+
"in": "path",
|
|
92702
|
+
"name": "name",
|
|
92703
|
+
"required": true,
|
|
92704
|
+
"schema": {
|
|
92705
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92706
|
+
"example": "refi_watch",
|
|
92707
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92708
|
+
"type": "string"
|
|
92709
|
+
}
|
|
92710
|
+
}
|
|
92711
|
+
],
|
|
92712
|
+
"responses": {
|
|
92713
|
+
"200": {
|
|
92714
|
+
"content": {
|
|
92715
|
+
"application/json": {
|
|
92716
|
+
"schema": {
|
|
92717
|
+
"$ref": "#/components/schemas/StudioModelDeleted"
|
|
92718
|
+
}
|
|
92719
|
+
}
|
|
92720
|
+
},
|
|
92721
|
+
"description": "Deleted"
|
|
92722
|
+
},
|
|
92723
|
+
"400": {
|
|
92724
|
+
"content": {
|
|
92725
|
+
"application/json": {
|
|
92726
|
+
"schema": {
|
|
92727
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92728
|
+
}
|
|
92729
|
+
}
|
|
92730
|
+
},
|
|
92731
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
92732
|
+
},
|
|
92733
|
+
"401": {
|
|
92734
|
+
"content": {
|
|
92735
|
+
"application/json": {
|
|
92736
|
+
"schema": {
|
|
92737
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92738
|
+
}
|
|
92739
|
+
}
|
|
92740
|
+
},
|
|
92741
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92742
|
+
},
|
|
92743
|
+
"403": {
|
|
92744
|
+
"content": {
|
|
92745
|
+
"application/json": {
|
|
92746
|
+
"schema": {
|
|
92747
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92748
|
+
}
|
|
92749
|
+
}
|
|
92750
|
+
},
|
|
92751
|
+
"description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
|
|
92752
|
+
},
|
|
92753
|
+
"404": {
|
|
92754
|
+
"content": {
|
|
92755
|
+
"application/json": {
|
|
92756
|
+
"schema": {
|
|
92757
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92758
|
+
}
|
|
92759
|
+
}
|
|
92760
|
+
},
|
|
92761
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92762
|
+
},
|
|
92763
|
+
"409": {
|
|
92764
|
+
"content": {
|
|
92765
|
+
"application/json": {
|
|
92766
|
+
"schema": {
|
|
92767
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92768
|
+
}
|
|
92769
|
+
}
|
|
92770
|
+
},
|
|
92771
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
|
|
92772
|
+
},
|
|
92773
|
+
"422": {
|
|
92774
|
+
"content": {
|
|
92775
|
+
"application/json": {
|
|
92776
|
+
"schema": {
|
|
92777
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92778
|
+
}
|
|
92779
|
+
}
|
|
92780
|
+
},
|
|
92781
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
92782
|
+
},
|
|
92783
|
+
"429": {
|
|
92784
|
+
"content": {
|
|
92785
|
+
"application/json": {
|
|
92786
|
+
"schema": {
|
|
92787
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92788
|
+
}
|
|
92789
|
+
}
|
|
92790
|
+
},
|
|
92791
|
+
"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`)."
|
|
92792
|
+
},
|
|
92793
|
+
"503": {
|
|
92794
|
+
"content": {
|
|
92795
|
+
"application/json": {
|
|
92796
|
+
"schema": {
|
|
92797
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92798
|
+
}
|
|
92799
|
+
}
|
|
92800
|
+
},
|
|
92801
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — 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)."
|
|
92802
|
+
}
|
|
92803
|
+
},
|
|
92804
|
+
"summary": "Delete a model, its report card and its scores, permanently",
|
|
92805
|
+
"tags": [
|
|
92806
|
+
"Studio"
|
|
92807
|
+
]
|
|
92808
|
+
},
|
|
92809
|
+
"get": {
|
|
92810
|
+
"description": "The model and, once training has finished, its report card (`card`). While it trains, `progress` says which numbered step it is on, how long it has been and how long is left (an estimate, as a range). Read the card as it is written, using its sentences and labels: fields named `id`, `code`, `verdict`, `better`, and everything under `technical`, are for programs and are never shown to a person. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then each home's estimated chance is an estimate from past cases). `status: refused` means the model is not dependable enough to publish: `card.refusal.reason` says why and `card.refusal.whatWouldHelp` what to try; a refused model has no scores. When `scores` is not null, query `scores.table` with runStudioQuery: one row per home with `rank`, `percentile`, `score`, `topReason`, the home's `city` and `zipCode` (select those and leave `streetAddress` out to show the list without street addresses), and `propertyId` to join to `loans` and `sales`. Reading is free. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). The charge is reported in `credits`.",
|
|
92811
|
+
"operationId": "getStudioModel",
|
|
92812
|
+
"parameters": [
|
|
92813
|
+
{
|
|
92814
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92815
|
+
"in": "path",
|
|
92816
|
+
"name": "name",
|
|
92817
|
+
"required": true,
|
|
92818
|
+
"schema": {
|
|
92819
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92820
|
+
"example": "refi_watch",
|
|
92821
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92822
|
+
"type": "string"
|
|
92823
|
+
}
|
|
92824
|
+
}
|
|
92825
|
+
],
|
|
92826
|
+
"responses": {
|
|
92827
|
+
"200": {
|
|
92828
|
+
"content": {
|
|
92829
|
+
"application/json": {
|
|
92830
|
+
"schema": {
|
|
92831
|
+
"$ref": "#/components/schemas/StudioModelResult"
|
|
92832
|
+
}
|
|
92833
|
+
}
|
|
92834
|
+
},
|
|
92835
|
+
"description": "The model"
|
|
92836
|
+
},
|
|
92837
|
+
"400": {
|
|
92838
|
+
"content": {
|
|
92839
|
+
"application/json": {
|
|
92840
|
+
"schema": {
|
|
92841
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92842
|
+
}
|
|
92843
|
+
}
|
|
92844
|
+
},
|
|
92845
|
+
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
92846
|
+
},
|
|
92847
|
+
"401": {
|
|
92848
|
+
"content": {
|
|
92849
|
+
"application/json": {
|
|
92850
|
+
"schema": {
|
|
92851
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92852
|
+
}
|
|
92853
|
+
}
|
|
92854
|
+
},
|
|
92855
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92856
|
+
},
|
|
92857
|
+
"402": {
|
|
92858
|
+
"content": {
|
|
92859
|
+
"application/json": {
|
|
92860
|
+
"schema": {
|
|
92861
|
+
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
92862
|
+
}
|
|
92863
|
+
}
|
|
92864
|
+
},
|
|
92865
|
+
"description": "The model finished and is waiting to be published, but your organization does not have the credits for it. Nothing was charged. Add credits and read the model again: it does not need to be trained again."
|
|
92866
|
+
},
|
|
92867
|
+
"403": {
|
|
92868
|
+
"content": {
|
|
92869
|
+
"application/json": {
|
|
92870
|
+
"schema": {
|
|
92871
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92872
|
+
}
|
|
92873
|
+
}
|
|
92874
|
+
},
|
|
92875
|
+
"description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
|
|
92876
|
+
},
|
|
92877
|
+
"404": {
|
|
92878
|
+
"content": {
|
|
92879
|
+
"application/json": {
|
|
92880
|
+
"schema": {
|
|
92881
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92882
|
+
}
|
|
92883
|
+
}
|
|
92884
|
+
},
|
|
92885
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92886
|
+
},
|
|
92887
|
+
"409": {
|
|
92888
|
+
"content": {
|
|
92889
|
+
"application/json": {
|
|
92890
|
+
"schema": {
|
|
92891
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92892
|
+
}
|
|
92893
|
+
}
|
|
92894
|
+
},
|
|
92895
|
+
"description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
|
|
92896
|
+
},
|
|
92897
|
+
"422": {
|
|
92898
|
+
"content": {
|
|
92899
|
+
"application/json": {
|
|
92900
|
+
"schema": {
|
|
92901
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92902
|
+
}
|
|
92903
|
+
}
|
|
92904
|
+
},
|
|
92905
|
+
"description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
|
|
92906
|
+
},
|
|
92907
|
+
"429": {
|
|
92908
|
+
"content": {
|
|
92909
|
+
"application/json": {
|
|
92910
|
+
"schema": {
|
|
92911
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92912
|
+
}
|
|
92913
|
+
}
|
|
92914
|
+
},
|
|
92915
|
+
"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`)."
|
|
92916
|
+
},
|
|
92917
|
+
"503": {
|
|
92918
|
+
"content": {
|
|
92919
|
+
"application/json": {
|
|
92920
|
+
"schema": {
|
|
92921
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92922
|
+
}
|
|
92923
|
+
}
|
|
92924
|
+
},
|
|
92925
|
+
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — 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)."
|
|
92926
|
+
}
|
|
92927
|
+
},
|
|
92928
|
+
"summary": "A model: its status and its report card",
|
|
91882
92929
|
"tags": [
|
|
91883
92930
|
"Studio"
|
|
91884
92931
|
]
|
|
91885
|
-
}
|
|
92932
|
+
}
|
|
92933
|
+
},
|
|
92934
|
+
"/v1/studio/models/{name}/refresh": {
|
|
91886
92935
|
"post": {
|
|
91887
|
-
"description": "
|
|
91888
|
-
"operationId": "
|
|
92936
|
+
"description": "Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves); `expectedMinutes` says how long it is expected to take, and `progress` which step it is on. Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A retrain of a model that uses neighborhood data points needs neighborhood data enabled for the organization, like creating one (`403 entitlement_missing` otherwise); a plain refresh of the scores does not. While it retrains the model stays `ready` with its current `card` and scores, and `progress` shows the training exactly as for a new model — the numbered step, the time left and the live `progress.trace`; the new card (with its final `trace`) replaces the current one when the run is published. A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
|
|
92937
|
+
"operationId": "refreshStudioModel",
|
|
92938
|
+
"parameters": [
|
|
92939
|
+
{
|
|
92940
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92941
|
+
"in": "path",
|
|
92942
|
+
"name": "name",
|
|
92943
|
+
"required": true,
|
|
92944
|
+
"schema": {
|
|
92945
|
+
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92946
|
+
"example": "refi_watch",
|
|
92947
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92948
|
+
"type": "string"
|
|
92949
|
+
}
|
|
92950
|
+
}
|
|
92951
|
+
],
|
|
91889
92952
|
"requestBody": {
|
|
91890
92953
|
"content": {
|
|
91891
92954
|
"application/json": {
|
|
91892
92955
|
"schema": {
|
|
91893
|
-
"$ref": "#/components/schemas/
|
|
92956
|
+
"$ref": "#/components/schemas/StudioModelRefresh"
|
|
91894
92957
|
}
|
|
91895
92958
|
}
|
|
91896
92959
|
},
|
|
91897
|
-
"required":
|
|
92960
|
+
"required": false
|
|
91898
92961
|
},
|
|
91899
92962
|
"responses": {
|
|
91900
|
-
"
|
|
92963
|
+
"202": {
|
|
91901
92964
|
"content": {
|
|
91902
92965
|
"application/json": {
|
|
91903
92966
|
"schema": {
|
|
91904
|
-
"$ref": "#/components/schemas/
|
|
92967
|
+
"$ref": "#/components/schemas/StudioModelResult"
|
|
91905
92968
|
}
|
|
91906
92969
|
}
|
|
91907
92970
|
},
|
|
91908
|
-
"description": "
|
|
92971
|
+
"description": "The refresh has started"
|
|
91909
92972
|
},
|
|
91910
92973
|
"400": {
|
|
91911
92974
|
"content": {
|
|
@@ -91927,6 +92990,16 @@
|
|
|
91927
92990
|
},
|
|
91928
92991
|
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
91929
92992
|
},
|
|
92993
|
+
"402": {
|
|
92994
|
+
"content": {
|
|
92995
|
+
"application/json": {
|
|
92996
|
+
"schema": {
|
|
92997
|
+
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
92998
|
+
}
|
|
92999
|
+
}
|
|
93000
|
+
},
|
|
93001
|
+
"description": "The model finished and is waiting to be published, but your organization does not have the credits for it. Nothing was charged. Add credits and read the model again: it does not need to be trained again."
|
|
93002
|
+
},
|
|
91930
93003
|
"403": {
|
|
91931
93004
|
"content": {
|
|
91932
93005
|
"application/json": {
|
|
@@ -91998,42 +93071,42 @@
|
|
|
91998
93071
|
"description": "`models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — 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)."
|
|
91999
93072
|
}
|
|
92000
93073
|
},
|
|
92001
|
-
"summary": "
|
|
93074
|
+
"summary": "Refresh a model's scores with the latest data",
|
|
92002
93075
|
"tags": [
|
|
92003
93076
|
"Studio"
|
|
92004
93077
|
]
|
|
92005
93078
|
}
|
|
92006
93079
|
},
|
|
92007
|
-
"/v1/studio/
|
|
93080
|
+
"/v1/studio/program-runs": {
|
|
92008
93081
|
"get": {
|
|
92009
|
-
"description": "
|
|
92010
|
-
"operationId": "
|
|
93082
|
+
"description": "Your organization's program runs, newest first, with their state and the tables each left. A run that has succeeded since it was last read is charged and delivered here, like a read of it. Each program has a flat price (`price.credits` on listStudioPrograms), charged once when a run has SUCCEEDED — by the first call that reads it — and only then are its tables delivered. A run that fails or times out is free.",
|
|
93083
|
+
"operationId": "listStudioProgramRuns",
|
|
92011
93084
|
"responses": {
|
|
92012
93085
|
"200": {
|
|
92013
93086
|
"content": {
|
|
92014
93087
|
"application/json": {
|
|
92015
93088
|
"schema": {
|
|
92016
|
-
"$ref": "#/components/schemas/
|
|
93089
|
+
"$ref": "#/components/schemas/StudioProgramRunList"
|
|
92017
93090
|
}
|
|
92018
93091
|
}
|
|
92019
93092
|
},
|
|
92020
|
-
"description": "The
|
|
93093
|
+
"description": "The runs"
|
|
92021
93094
|
},
|
|
92022
93095
|
"400": {
|
|
92023
93096
|
"content": {
|
|
92024
93097
|
"application/json": {
|
|
92025
93098
|
"schema": {
|
|
92026
|
-
"$ref": "#/components/schemas/
|
|
93099
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92027
93100
|
}
|
|
92028
93101
|
}
|
|
92029
93102
|
},
|
|
92030
|
-
"description": "
|
|
93103
|
+
"description": "`invalid_request` — a switch the program does not list (only its own switches can be set), or a bad value: `error` names the switches you can set. `invalid_name` — the name cannot name every table of the program (reserved prefix, characters, length)."
|
|
92031
93104
|
},
|
|
92032
93105
|
"401": {
|
|
92033
93106
|
"content": {
|
|
92034
93107
|
"application/json": {
|
|
92035
93108
|
"schema": {
|
|
92036
|
-
"$ref": "#/components/schemas/
|
|
93109
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92037
93110
|
}
|
|
92038
93111
|
}
|
|
92039
93112
|
},
|
|
@@ -92043,83 +93116,83 @@
|
|
|
92043
93116
|
"content": {
|
|
92044
93117
|
"application/json": {
|
|
92045
93118
|
"schema": {
|
|
92046
|
-
"$ref": "#/components/schemas/
|
|
93119
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92047
93120
|
}
|
|
92048
93121
|
}
|
|
92049
93122
|
},
|
|
92050
|
-
"description": "`no_organization` —
|
|
93123
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92051
93124
|
},
|
|
92052
93125
|
"404": {
|
|
92053
93126
|
"content": {
|
|
92054
93127
|
"application/json": {
|
|
92055
93128
|
"schema": {
|
|
92056
|
-
"$ref": "#/components/schemas/
|
|
93129
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92057
93130
|
}
|
|
92058
93131
|
}
|
|
92059
93132
|
},
|
|
92060
|
-
"description": "`
|
|
93133
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92061
93134
|
},
|
|
92062
93135
|
"409": {
|
|
92063
93136
|
"content": {
|
|
92064
93137
|
"application/json": {
|
|
92065
93138
|
"schema": {
|
|
92066
|
-
"$ref": "#/components/schemas/
|
|
93139
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92067
93140
|
}
|
|
92068
93141
|
}
|
|
92069
93142
|
},
|
|
92070
|
-
"description": "`
|
|
93143
|
+
"description": "`table_exists` — the name is taken by one of your tables or jobs that this program did not make. `program_running` — your organization already has a run in progress (one at a time): try again when it has finished."
|
|
92071
93144
|
},
|
|
92072
93145
|
"422": {
|
|
92073
93146
|
"content": {
|
|
92074
93147
|
"application/json": {
|
|
92075
93148
|
"schema": {
|
|
92076
|
-
"$ref": "#/components/schemas/
|
|
93149
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92077
93150
|
}
|
|
92078
93151
|
}
|
|
92079
93152
|
},
|
|
92080
|
-
"description": "
|
|
93153
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92081
93154
|
},
|
|
92082
93155
|
"429": {
|
|
92083
93156
|
"content": {
|
|
92084
93157
|
"application/json": {
|
|
92085
93158
|
"schema": {
|
|
92086
|
-
"$ref": "#/components/schemas/
|
|
93159
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92087
93160
|
}
|
|
92088
93161
|
}
|
|
92089
93162
|
},
|
|
92090
|
-
"description": "`rate_limited` — too many
|
|
93163
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92091
93164
|
},
|
|
92092
93165
|
"503": {
|
|
92093
93166
|
"content": {
|
|
92094
93167
|
"application/json": {
|
|
92095
93168
|
"schema": {
|
|
92096
|
-
"$ref": "#/components/schemas/
|
|
93169
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92097
93170
|
}
|
|
92098
93171
|
}
|
|
92099
93172
|
},
|
|
92100
|
-
"description": "`
|
|
93173
|
+
"description": "`studio_unavailable` — try again in a minute. `billing_unavailable` — the run succeeded but could not be charged for right now, so its tables are not delivered yet; read it again in a minute (it is never charged twice)."
|
|
92101
93174
|
}
|
|
92102
93175
|
},
|
|
92103
|
-
"summary": "
|
|
93176
|
+
"summary": "Your organization's program runs",
|
|
92104
93177
|
"tags": [
|
|
92105
93178
|
"Studio"
|
|
92106
93179
|
]
|
|
92107
93180
|
}
|
|
92108
93181
|
},
|
|
92109
|
-
"/v1/studio/
|
|
93182
|
+
"/v1/studio/program-runs/{runId}": {
|
|
92110
93183
|
"get": {
|
|
92111
|
-
"description": "
|
|
92112
|
-
"operationId": "
|
|
93184
|
+
"description": "Read a run until it is `succeeded` or `failed`. The first read after it succeeded charges it (once) and delivers its tables into your organization (`delivered: true`, `credits.charged`); then query them by the names in `tables`. Reading it again is free. Each program has a flat price (`price.credits` on listStudioPrograms), charged once when a run has SUCCEEDED — by the first call that reads it — and only then are its tables delivered. A run that fails or times out is free.",
|
|
93185
|
+
"operationId": "getStudioProgramRun",
|
|
92113
93186
|
"parameters": [
|
|
92114
93187
|
{
|
|
92115
|
-
"description": "
|
|
93188
|
+
"description": "The run, as startStudioProgramRun returned it.",
|
|
92116
93189
|
"in": "path",
|
|
92117
|
-
"name": "
|
|
93190
|
+
"name": "runId",
|
|
92118
93191
|
"required": true,
|
|
92119
93192
|
"schema": {
|
|
92120
|
-
"description": "
|
|
92121
|
-
"example": "
|
|
92122
|
-
"pattern": "^
|
|
93193
|
+
"description": "The run, as startStudioProgramRun returned it.",
|
|
93194
|
+
"example": "20261120T080000Z-a1b2",
|
|
93195
|
+
"pattern": "^[0-9A-Za-z-]{1,64}$",
|
|
92123
93196
|
"type": "string"
|
|
92124
93197
|
}
|
|
92125
93198
|
}
|
|
@@ -92129,333 +93202,225 @@
|
|
|
92129
93202
|
"content": {
|
|
92130
93203
|
"application/json": {
|
|
92131
93204
|
"schema": {
|
|
92132
|
-
"$ref": "#/components/schemas/
|
|
93205
|
+
"$ref": "#/components/schemas/StudioProgramRunResult"
|
|
92133
93206
|
}
|
|
92134
93207
|
}
|
|
92135
93208
|
},
|
|
92136
|
-
"description": "The
|
|
93209
|
+
"description": "The run"
|
|
92137
93210
|
},
|
|
92138
93211
|
"400": {
|
|
92139
93212
|
"content": {
|
|
92140
93213
|
"application/json": {
|
|
92141
93214
|
"schema": {
|
|
92142
|
-
"$ref": "#/components/schemas/
|
|
93215
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92143
93216
|
}
|
|
92144
93217
|
}
|
|
92145
93218
|
},
|
|
92146
|
-
"description": "`invalid_request` — not a
|
|
93219
|
+
"description": "`invalid_request` — a switch the program does not list (only its own switches can be set), or a bad value: `error` names the switches you can set. `invalid_name` — the name cannot name every table of the program (reserved prefix, characters, length)."
|
|
92147
93220
|
},
|
|
92148
93221
|
"401": {
|
|
92149
93222
|
"content": {
|
|
92150
93223
|
"application/json": {
|
|
92151
93224
|
"schema": {
|
|
92152
|
-
"$ref": "#/components/schemas/
|
|
93225
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92153
93226
|
}
|
|
92154
93227
|
}
|
|
92155
93228
|
},
|
|
92156
93229
|
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92157
93230
|
},
|
|
92158
|
-
"
|
|
92159
|
-
"content": {
|
|
92160
|
-
"application/json": {
|
|
92161
|
-
"schema": {
|
|
92162
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92163
|
-
}
|
|
92164
|
-
}
|
|
92165
|
-
},
|
|
92166
|
-
"description": "`no_organization` — select an organization; `studio_not_enabled` — Studio is not enabled for this account."
|
|
92167
|
-
},
|
|
92168
|
-
"404": {
|
|
92169
|
-
"content": {
|
|
92170
|
-
"application/json": {
|
|
92171
|
-
"schema": {
|
|
92172
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92173
|
-
}
|
|
92174
|
-
}
|
|
92175
|
-
},
|
|
92176
|
-
"description": "`published_model_not_found` — no model of that name is published. The catalog lists what is."
|
|
92177
|
-
},
|
|
92178
|
-
"409": {
|
|
92179
|
-
"content": {
|
|
92180
|
-
"application/json": {
|
|
92181
|
-
"schema": {
|
|
92182
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92183
|
-
}
|
|
92184
|
-
}
|
|
92185
|
-
},
|
|
92186
|
-
"description": "`published_unavailable` — published tables are switched off right now."
|
|
92187
|
-
},
|
|
92188
|
-
"503": {
|
|
92189
|
-
"content": {
|
|
92190
|
-
"application/json": {
|
|
92191
|
-
"schema": {
|
|
92192
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92193
|
-
}
|
|
92194
|
-
}
|
|
92195
|
-
},
|
|
92196
|
-
"description": "`studio_unavailable` — try again in a minute."
|
|
92197
|
-
}
|
|
92198
|
-
},
|
|
92199
|
-
"summary": "A model ModelMatch publishes: its report card",
|
|
92200
|
-
"tags": [
|
|
92201
|
-
"Studio"
|
|
92202
|
-
]
|
|
92203
|
-
}
|
|
92204
|
-
},
|
|
92205
|
-
"/v1/studio/models/{name}": {
|
|
92206
|
-
"delete": {
|
|
92207
|
-
"description": "Delete a model: the trained model, its report card and its scores table. The table leaves the catalog at once, and questions and jobs that read it stop working. A run in progress is stopped. This cannot be undone. Free.",
|
|
92208
|
-
"operationId": "deleteStudioModel",
|
|
92209
|
-
"parameters": [
|
|
92210
|
-
{
|
|
92211
|
-
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92212
|
-
"in": "path",
|
|
92213
|
-
"name": "name",
|
|
92214
|
-
"required": true,
|
|
92215
|
-
"schema": {
|
|
92216
|
-
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92217
|
-
"example": "refi_watch",
|
|
92218
|
-
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92219
|
-
"type": "string"
|
|
92220
|
-
}
|
|
92221
|
-
}
|
|
92222
|
-
],
|
|
92223
|
-
"responses": {
|
|
92224
|
-
"200": {
|
|
92225
|
-
"content": {
|
|
92226
|
-
"application/json": {
|
|
92227
|
-
"schema": {
|
|
92228
|
-
"$ref": "#/components/schemas/StudioModelDeleted"
|
|
92229
|
-
}
|
|
92230
|
-
}
|
|
92231
|
-
},
|
|
92232
|
-
"description": "Deleted"
|
|
92233
|
-
},
|
|
92234
|
-
"400": {
|
|
92235
|
-
"content": {
|
|
92236
|
-
"application/json": {
|
|
92237
|
-
"schema": {
|
|
92238
|
-
"$ref": "#/components/schemas/StudioModelError"
|
|
92239
|
-
}
|
|
92240
|
-
}
|
|
92241
|
-
},
|
|
92242
|
-
"description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
|
|
92243
|
-
},
|
|
92244
|
-
"401": {
|
|
93231
|
+
"402": {
|
|
92245
93232
|
"content": {
|
|
92246
93233
|
"application/json": {
|
|
92247
93234
|
"schema": {
|
|
92248
|
-
"$ref": "#/components/schemas/
|
|
93235
|
+
"$ref": "#/components/schemas/StudioProgramPaymentRequired"
|
|
92249
93236
|
}
|
|
92250
93237
|
}
|
|
92251
93238
|
},
|
|
92252
|
-
"description": "
|
|
93239
|
+
"description": "Starting: your balance does not cover the run's price, so nothing was started. Reading a finished run: your balance does not cover it, so its tables wait; add credits and read it again (it does not run again)."
|
|
92253
93240
|
},
|
|
92254
93241
|
"403": {
|
|
92255
93242
|
"content": {
|
|
92256
93243
|
"application/json": {
|
|
92257
93244
|
"schema": {
|
|
92258
|
-
"$ref": "#/components/schemas/
|
|
93245
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92259
93246
|
}
|
|
92260
93247
|
}
|
|
92261
93248
|
},
|
|
92262
|
-
"description": "`no_organization` —
|
|
93249
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92263
93250
|
},
|
|
92264
93251
|
"404": {
|
|
92265
93252
|
"content": {
|
|
92266
93253
|
"application/json": {
|
|
92267
93254
|
"schema": {
|
|
92268
|
-
"$ref": "#/components/schemas/
|
|
93255
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92269
93256
|
}
|
|
92270
93257
|
}
|
|
92271
93258
|
},
|
|
92272
|
-
"description": "`
|
|
93259
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92273
93260
|
},
|
|
92274
93261
|
"409": {
|
|
92275
93262
|
"content": {
|
|
92276
93263
|
"application/json": {
|
|
92277
93264
|
"schema": {
|
|
92278
|
-
"$ref": "#/components/schemas/
|
|
93265
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92279
93266
|
}
|
|
92280
93267
|
}
|
|
92281
93268
|
},
|
|
92282
|
-
"description": "`
|
|
93269
|
+
"description": "`table_exists` — the name is taken by one of your tables or jobs that this program did not make. `program_running` — your organization already has a run in progress (one at a time): try again when it has finished."
|
|
92283
93270
|
},
|
|
92284
93271
|
"422": {
|
|
92285
93272
|
"content": {
|
|
92286
93273
|
"application/json": {
|
|
92287
93274
|
"schema": {
|
|
92288
|
-
"$ref": "#/components/schemas/
|
|
93275
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92289
93276
|
}
|
|
92290
93277
|
}
|
|
92291
93278
|
},
|
|
92292
|
-
"description": "
|
|
93279
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92293
93280
|
},
|
|
92294
93281
|
"429": {
|
|
92295
93282
|
"content": {
|
|
92296
93283
|
"application/json": {
|
|
92297
93284
|
"schema": {
|
|
92298
|
-
"$ref": "#/components/schemas/
|
|
93285
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92299
93286
|
}
|
|
92300
93287
|
}
|
|
92301
93288
|
},
|
|
92302
|
-
"description": "`rate_limited` — too many
|
|
93289
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92303
93290
|
},
|
|
92304
93291
|
"503": {
|
|
92305
93292
|
"content": {
|
|
92306
93293
|
"application/json": {
|
|
92307
93294
|
"schema": {
|
|
92308
|
-
"$ref": "#/components/schemas/
|
|
93295
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92309
93296
|
}
|
|
92310
93297
|
}
|
|
92311
93298
|
},
|
|
92312
|
-
"description": "`
|
|
93299
|
+
"description": "`studio_unavailable` — try again in a minute. `billing_unavailable` — the run succeeded but could not be charged for right now, so its tables are not delivered yet; read it again in a minute (it is never charged twice)."
|
|
92313
93300
|
}
|
|
92314
93301
|
},
|
|
92315
|
-
"summary": "
|
|
93302
|
+
"summary": "One program run: its state, progress and tables",
|
|
92316
93303
|
"tags": [
|
|
92317
93304
|
"Studio"
|
|
92318
93305
|
]
|
|
92319
|
-
}
|
|
93306
|
+
}
|
|
93307
|
+
},
|
|
93308
|
+
"/v1/studio/programs": {
|
|
92320
93309
|
"get": {
|
|
92321
|
-
"description": "
|
|
92322
|
-
"operationId": "
|
|
92323
|
-
"parameters": [
|
|
92324
|
-
{
|
|
92325
|
-
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92326
|
-
"in": "path",
|
|
92327
|
-
"name": "name",
|
|
92328
|
-
"required": true,
|
|
92329
|
-
"schema": {
|
|
92330
|
-
"description": "The model's name: 3 to 40 lower-case letters, digits and underscores, starting with a letter. Its scores are the table `model_<name>`.",
|
|
92331
|
-
"example": "refi_watch",
|
|
92332
|
-
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92333
|
-
"type": "string"
|
|
92334
|
-
}
|
|
92335
|
-
}
|
|
92336
|
-
],
|
|
93310
|
+
"description": "Programs are the heavy computations behind some of the tables ModelMatch publishes for everyone (`mm_` tables, such as company retention). Most questions are answered by querying the published table — do that first, it is already computed and costs a normal question. Run a program when the person needs it computed with their own settings, such as only the states they work in: the result becomes their own tables. Each program lists the switches you can set, the tables a run leaves, and its price. `available: false` means the organization cannot run programs yet (ask their ModelMatch admin). Free.",
|
|
93311
|
+
"operationId": "listStudioPrograms",
|
|
92337
93312
|
"responses": {
|
|
92338
93313
|
"200": {
|
|
92339
93314
|
"content": {
|
|
92340
93315
|
"application/json": {
|
|
92341
93316
|
"schema": {
|
|
92342
|
-
"$ref": "#/components/schemas/
|
|
93317
|
+
"$ref": "#/components/schemas/StudioProgramList"
|
|
92343
93318
|
}
|
|
92344
93319
|
}
|
|
92345
93320
|
},
|
|
92346
|
-
"description": "The
|
|
93321
|
+
"description": "The programs"
|
|
92347
93322
|
},
|
|
92348
93323
|
"400": {
|
|
92349
93324
|
"content": {
|
|
92350
93325
|
"application/json": {
|
|
92351
93326
|
"schema": {
|
|
92352
|
-
"$ref": "#/components/schemas/
|
|
93327
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92353
93328
|
}
|
|
92354
93329
|
}
|
|
92355
93330
|
},
|
|
92356
|
-
"description": "
|
|
93331
|
+
"description": "`invalid_request` — a switch the program does not list (only its own switches can be set), or a bad value: `error` names the switches you can set. `invalid_name` — the name cannot name every table of the program (reserved prefix, characters, length)."
|
|
92357
93332
|
},
|
|
92358
93333
|
"401": {
|
|
92359
93334
|
"content": {
|
|
92360
93335
|
"application/json": {
|
|
92361
93336
|
"schema": {
|
|
92362
|
-
"$ref": "#/components/schemas/
|
|
93337
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92363
93338
|
}
|
|
92364
93339
|
}
|
|
92365
93340
|
},
|
|
92366
93341
|
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92367
93342
|
},
|
|
92368
|
-
"402": {
|
|
92369
|
-
"content": {
|
|
92370
|
-
"application/json": {
|
|
92371
|
-
"schema": {
|
|
92372
|
-
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
92373
|
-
}
|
|
92374
|
-
}
|
|
92375
|
-
},
|
|
92376
|
-
"description": "The model finished and is waiting to be published, but your organization does not have the credits for it. Nothing was charged. Add credits and read the model again: it does not need to be trained again."
|
|
92377
|
-
},
|
|
92378
93343
|
"403": {
|
|
92379
93344
|
"content": {
|
|
92380
93345
|
"application/json": {
|
|
92381
93346
|
"schema": {
|
|
92382
|
-
"$ref": "#/components/schemas/
|
|
93347
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92383
93348
|
}
|
|
92384
93349
|
}
|
|
92385
93350
|
},
|
|
92386
|
-
"description": "`no_organization` —
|
|
93351
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92387
93352
|
},
|
|
92388
93353
|
"404": {
|
|
92389
93354
|
"content": {
|
|
92390
93355
|
"application/json": {
|
|
92391
93356
|
"schema": {
|
|
92392
|
-
"$ref": "#/components/schemas/
|
|
93357
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92393
93358
|
}
|
|
92394
93359
|
}
|
|
92395
93360
|
},
|
|
92396
|
-
"description": "`
|
|
93361
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92397
93362
|
},
|
|
92398
93363
|
"409": {
|
|
92399
93364
|
"content": {
|
|
92400
93365
|
"application/json": {
|
|
92401
93366
|
"schema": {
|
|
92402
|
-
"$ref": "#/components/schemas/
|
|
93367
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92403
93368
|
}
|
|
92404
93369
|
}
|
|
92405
93370
|
},
|
|
92406
|
-
"description": "`
|
|
93371
|
+
"description": "`table_exists` — the name is taken by one of your tables or jobs that this program did not make. `program_running` — your organization already has a run in progress (one at a time): try again when it has finished."
|
|
92407
93372
|
},
|
|
92408
93373
|
"422": {
|
|
92409
93374
|
"content": {
|
|
92410
93375
|
"application/json": {
|
|
92411
93376
|
"schema": {
|
|
92412
|
-
"$ref": "#/components/schemas/
|
|
93377
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92413
93378
|
}
|
|
92414
93379
|
}
|
|
92415
93380
|
},
|
|
92416
|
-
"description": "
|
|
93381
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92417
93382
|
},
|
|
92418
93383
|
"429": {
|
|
92419
93384
|
"content": {
|
|
92420
93385
|
"application/json": {
|
|
92421
93386
|
"schema": {
|
|
92422
|
-
"$ref": "#/components/schemas/
|
|
93387
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92423
93388
|
}
|
|
92424
93389
|
}
|
|
92425
93390
|
},
|
|
92426
|
-
"description": "`rate_limited` — too many
|
|
93391
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92427
93392
|
},
|
|
92428
93393
|
"503": {
|
|
92429
93394
|
"content": {
|
|
92430
93395
|
"application/json": {
|
|
92431
93396
|
"schema": {
|
|
92432
|
-
"$ref": "#/components/schemas/
|
|
93397
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92433
93398
|
}
|
|
92434
93399
|
}
|
|
92435
93400
|
},
|
|
92436
|
-
"description": "`
|
|
93401
|
+
"description": "`studio_unavailable` — try again in a minute. `billing_unavailable` — the run succeeded but could not be charged for right now, so its tables are not delivered yet; read it again in a minute (it is never charged twice)."
|
|
92437
93402
|
}
|
|
92438
93403
|
},
|
|
92439
|
-
"summary": "
|
|
93404
|
+
"summary": "ModelMatch programs you can run for your own organization",
|
|
92440
93405
|
"tags": [
|
|
92441
93406
|
"Studio"
|
|
92442
93407
|
]
|
|
92443
93408
|
}
|
|
92444
93409
|
},
|
|
92445
|
-
"/v1/studio/
|
|
93410
|
+
"/v1/studio/programs/{program}/run": {
|
|
92446
93411
|
"post": {
|
|
92447
|
-
"description": "
|
|
92448
|
-
"operationId": "
|
|
93412
|
+
"description": "Start a run with your own values for the program's switches and a `name` for the result. It answers at once with `state: running`; read it with getStudioProgramRun until it is `succeeded` (then it is charged once and its tables are delivered: `delivered: true`) or `failed` (free). A run of the whole country can take one to two hours; one state, minutes — narrowing it (for example `states`) makes it much faster. `progress` says which step it is on. Only the switches the program lists can be set; anything else is refused with 400. The tables land in your organization only, never in the published tables; query them like any table, join them, or build jobs on them. One run at a time per organization (`409 program_running`). Your balance must cover the price to start (402 otherwise). Each program has a flat price (`price.credits` on listStudioPrograms), charged once when a run has SUCCEEDED — by the first call that reads it — and only then are its tables delivered. A run that fails or times out is free.",
|
|
93413
|
+
"operationId": "startStudioProgramRun",
|
|
92449
93414
|
"parameters": [
|
|
92450
93415
|
{
|
|
92451
|
-
"description": "The
|
|
93416
|
+
"description": "The program, as listStudioPrograms lists it.",
|
|
92452
93417
|
"in": "path",
|
|
92453
|
-
"name": "
|
|
93418
|
+
"name": "program",
|
|
92454
93419
|
"required": true,
|
|
92455
93420
|
"schema": {
|
|
92456
|
-
"description": "The
|
|
92457
|
-
"example": "
|
|
92458
|
-
"pattern": "^[a-z][a-z0-9_]{
|
|
93421
|
+
"description": "The program, as listStudioPrograms lists it.",
|
|
93422
|
+
"example": "company_retention",
|
|
93423
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
92459
93424
|
"type": "string"
|
|
92460
93425
|
}
|
|
92461
93426
|
}
|
|
@@ -92464,38 +93429,38 @@
|
|
|
92464
93429
|
"content": {
|
|
92465
93430
|
"application/json": {
|
|
92466
93431
|
"schema": {
|
|
92467
|
-
"$ref": "#/components/schemas/
|
|
93432
|
+
"$ref": "#/components/schemas/StudioProgramRunRequest"
|
|
92468
93433
|
}
|
|
92469
93434
|
}
|
|
92470
93435
|
},
|
|
92471
|
-
"required":
|
|
93436
|
+
"required": true
|
|
92472
93437
|
},
|
|
92473
93438
|
"responses": {
|
|
92474
93439
|
"202": {
|
|
92475
93440
|
"content": {
|
|
92476
93441
|
"application/json": {
|
|
92477
93442
|
"schema": {
|
|
92478
|
-
"$ref": "#/components/schemas/
|
|
93443
|
+
"$ref": "#/components/schemas/StudioProgramRunResult"
|
|
92479
93444
|
}
|
|
92480
93445
|
}
|
|
92481
93446
|
},
|
|
92482
|
-
"description": "The
|
|
93447
|
+
"description": "The run has started"
|
|
92483
93448
|
},
|
|
92484
93449
|
"400": {
|
|
92485
93450
|
"content": {
|
|
92486
93451
|
"application/json": {
|
|
92487
93452
|
"schema": {
|
|
92488
|
-
"$ref": "#/components/schemas/
|
|
93453
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92489
93454
|
}
|
|
92490
93455
|
}
|
|
92491
93456
|
},
|
|
92492
|
-
"description": "
|
|
93457
|
+
"description": "`invalid_request` — a switch the program does not list (only its own switches can be set), or a bad value: `error` names the switches you can set. `invalid_name` — the name cannot name every table of the program (reserved prefix, characters, length)."
|
|
92493
93458
|
},
|
|
92494
93459
|
"401": {
|
|
92495
93460
|
"content": {
|
|
92496
93461
|
"application/json": {
|
|
92497
93462
|
"schema": {
|
|
92498
|
-
"$ref": "#/components/schemas/
|
|
93463
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92499
93464
|
}
|
|
92500
93465
|
}
|
|
92501
93466
|
},
|
|
@@ -92505,84 +93470,84 @@
|
|
|
92505
93470
|
"content": {
|
|
92506
93471
|
"application/json": {
|
|
92507
93472
|
"schema": {
|
|
92508
|
-
"$ref": "#/components/schemas/
|
|
93473
|
+
"$ref": "#/components/schemas/StudioProgramPaymentRequired"
|
|
92509
93474
|
}
|
|
92510
93475
|
}
|
|
92511
93476
|
},
|
|
92512
|
-
"description": "
|
|
93477
|
+
"description": "Starting: your balance does not cover the run's price, so nothing was started. Reading a finished run: your balance does not cover it, so its tables wait; add credits and read it again (it does not run again)."
|
|
92513
93478
|
},
|
|
92514
93479
|
"403": {
|
|
92515
93480
|
"content": {
|
|
92516
93481
|
"application/json": {
|
|
92517
93482
|
"schema": {
|
|
92518
|
-
"$ref": "#/components/schemas/
|
|
93483
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92519
93484
|
}
|
|
92520
93485
|
}
|
|
92521
93486
|
},
|
|
92522
|
-
"description": "`no_organization` —
|
|
93487
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92523
93488
|
},
|
|
92524
93489
|
"404": {
|
|
92525
93490
|
"content": {
|
|
92526
93491
|
"application/json": {
|
|
92527
93492
|
"schema": {
|
|
92528
|
-
"$ref": "#/components/schemas/
|
|
93493
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92529
93494
|
}
|
|
92530
93495
|
}
|
|
92531
93496
|
},
|
|
92532
|
-
"description": "`
|
|
93497
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92533
93498
|
},
|
|
92534
93499
|
"409": {
|
|
92535
93500
|
"content": {
|
|
92536
93501
|
"application/json": {
|
|
92537
93502
|
"schema": {
|
|
92538
|
-
"$ref": "#/components/schemas/
|
|
93503
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92539
93504
|
}
|
|
92540
93505
|
}
|
|
92541
93506
|
},
|
|
92542
|
-
"description": "`
|
|
93507
|
+
"description": "`table_exists` — the name is taken by one of your tables or jobs that this program did not make. `program_running` — your organization already has a run in progress (one at a time): try again when it has finished."
|
|
92543
93508
|
},
|
|
92544
93509
|
"422": {
|
|
92545
93510
|
"content": {
|
|
92546
93511
|
"application/json": {
|
|
92547
93512
|
"schema": {
|
|
92548
|
-
"$ref": "#/components/schemas/
|
|
93513
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92549
93514
|
}
|
|
92550
93515
|
}
|
|
92551
93516
|
},
|
|
92552
|
-
"description": "
|
|
93517
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92553
93518
|
},
|
|
92554
93519
|
"429": {
|
|
92555
93520
|
"content": {
|
|
92556
93521
|
"application/json": {
|
|
92557
93522
|
"schema": {
|
|
92558
|
-
"$ref": "#/components/schemas/
|
|
93523
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92559
93524
|
}
|
|
92560
93525
|
}
|
|
92561
93526
|
},
|
|
92562
|
-
"description": "`rate_limited` — too many
|
|
93527
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92563
93528
|
},
|
|
92564
93529
|
"502": {
|
|
92565
93530
|
"content": {
|
|
92566
93531
|
"application/json": {
|
|
92567
93532
|
"schema": {
|
|
92568
|
-
"$ref": "#/components/schemas/
|
|
93533
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92569
93534
|
}
|
|
92570
93535
|
}
|
|
92571
93536
|
},
|
|
92572
|
-
"description": "`entitlement_unavailable` — whether your organization can
|
|
93537
|
+
"description": "`entitlement_unavailable` — whether your organization can run programs could not be confirmed right now; nothing was started."
|
|
92573
93538
|
},
|
|
92574
93539
|
"503": {
|
|
92575
93540
|
"content": {
|
|
92576
93541
|
"application/json": {
|
|
92577
93542
|
"schema": {
|
|
92578
|
-
"$ref": "#/components/schemas/
|
|
93543
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92579
93544
|
}
|
|
92580
93545
|
}
|
|
92581
93546
|
},
|
|
92582
|
-
"description": "`
|
|
93547
|
+
"description": "`studio_unavailable` — try again in a minute. `billing_unavailable` — the run succeeded but could not be charged for right now, so its tables are not delivered yet; read it again in a minute (it is never charged twice)."
|
|
92583
93548
|
}
|
|
92584
93549
|
},
|
|
92585
|
-
"summary": "
|
|
93550
|
+
"summary": "Run a ModelMatch program for your own organization",
|
|
92586
93551
|
"tags": [
|
|
92587
93552
|
"Studio"
|
|
92588
93553
|
]
|
|
@@ -92655,7 +93620,7 @@
|
|
|
92655
93620
|
}
|
|
92656
93621
|
}
|
|
92657
93622
|
},
|
|
92658
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
93623
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
92659
93624
|
},
|
|
92660
93625
|
"404": {
|
|
92661
93626
|
"content": {
|
|
@@ -92777,7 +93742,7 @@
|
|
|
92777
93742
|
}
|
|
92778
93743
|
}
|
|
92779
93744
|
},
|
|
92780
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
93745
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
92781
93746
|
},
|
|
92782
93747
|
"404": {
|
|
92783
93748
|
"content": {
|
|
@@ -92827,7 +93792,7 @@
|
|
|
92827
93792
|
}
|
|
92828
93793
|
}
|
|
92829
93794
|
},
|
|
92830
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
93795
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
92831
93796
|
}
|
|
92832
93797
|
},
|
|
92833
93798
|
"summary": "Answer one question with SQL",
|
|
@@ -92879,7 +93844,7 @@
|
|
|
92879
93844
|
}
|
|
92880
93845
|
}
|
|
92881
93846
|
},
|
|
92882
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
93847
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
92883
93848
|
},
|
|
92884
93849
|
"404": {
|
|
92885
93850
|
"content": {
|
|
@@ -92929,7 +93894,7 @@
|
|
|
92929
93894
|
}
|
|
92930
93895
|
}
|
|
92931
93896
|
},
|
|
92932
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
93897
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
92933
93898
|
}
|
|
92934
93899
|
},
|
|
92935
93900
|
"summary": "Your organization's uploads",
|
|
@@ -92989,7 +93954,7 @@
|
|
|
92989
93954
|
}
|
|
92990
93955
|
}
|
|
92991
93956
|
},
|
|
92992
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
93957
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
92993
93958
|
},
|
|
92994
93959
|
"404": {
|
|
92995
93960
|
"content": {
|
|
@@ -93039,7 +94004,7 @@
|
|
|
93039
94004
|
}
|
|
93040
94005
|
}
|
|
93041
94006
|
},
|
|
93042
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
94007
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
93043
94008
|
}
|
|
93044
94009
|
},
|
|
93045
94010
|
"summary": "Start an upload: get a URL to send a file to",
|
|
@@ -93105,7 +94070,7 @@
|
|
|
93105
94070
|
}
|
|
93106
94071
|
}
|
|
93107
94072
|
},
|
|
93108
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
94073
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
93109
94074
|
},
|
|
93110
94075
|
"404": {
|
|
93111
94076
|
"content": {
|
|
@@ -93155,7 +94120,7 @@
|
|
|
93155
94120
|
}
|
|
93156
94121
|
}
|
|
93157
94122
|
},
|
|
93158
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
94123
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
93159
94124
|
}
|
|
93160
94125
|
},
|
|
93161
94126
|
"summary": "Delete an upload and its table, permanently",
|
|
@@ -93231,7 +94196,7 @@
|
|
|
93231
94196
|
}
|
|
93232
94197
|
}
|
|
93233
94198
|
},
|
|
93234
|
-
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
|
|
94199
|
+
"description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`."
|
|
93235
94200
|
},
|
|
93236
94201
|
"404": {
|
|
93237
94202
|
"content": {
|
|
@@ -93281,7 +94246,7 @@
|
|
|
93281
94246
|
}
|
|
93282
94247
|
}
|
|
93283
94248
|
},
|
|
93284
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
94249
|
+
"description": "`studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute."
|
|
93285
94250
|
}
|
|
93286
94251
|
},
|
|
93287
94252
|
"summary": "Finish an upload: turn the file into a table",
|