@model-match/api 3.84.0 → 3.86.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-CXVjN2YB.d.mts → index-BPIdPjKd.d.mts} +427 -19
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +28 -4
- package/dist/slim/index.mjs +72 -4
- package/dist/{src-ANf3s8EA.mjs → src-Bcbt2n1a.mjs} +78 -2
- package/openapi.json +1167 -238
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -47588,7 +47588,7 @@
|
|
|
47588
47588
|
"type": "string"
|
|
47589
47589
|
},
|
|
47590
47590
|
"on": {
|
|
47591
|
-
"description": "`rows_added
|
|
47591
|
+
"description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
|
|
47592
47592
|
"enum": [
|
|
47593
47593
|
"rows_added",
|
|
47594
47594
|
"rows_removed",
|
|
@@ -47618,6 +47618,18 @@
|
|
|
47618
47618
|
},
|
|
47619
47619
|
"type": "array"
|
|
47620
47620
|
},
|
|
47621
|
+
"copiedFrom": {
|
|
47622
|
+
"description": "When it was saved as a copy: the job (`job`) or the ModelMatch table (`published`) it came from.",
|
|
47623
|
+
"properties": {
|
|
47624
|
+
"job": {
|
|
47625
|
+
"type": "string"
|
|
47626
|
+
},
|
|
47627
|
+
"published": {
|
|
47628
|
+
"type": "string"
|
|
47629
|
+
}
|
|
47630
|
+
},
|
|
47631
|
+
"type": "object"
|
|
47632
|
+
},
|
|
47621
47633
|
"createdAt": {
|
|
47622
47634
|
"type": "string"
|
|
47623
47635
|
},
|
|
@@ -47764,7 +47776,7 @@
|
|
|
47764
47776
|
"type": "string"
|
|
47765
47777
|
},
|
|
47766
47778
|
"on": {
|
|
47767
|
-
"description": "`rows_added
|
|
47779
|
+
"description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
|
|
47768
47780
|
"enum": [
|
|
47769
47781
|
"rows_added",
|
|
47770
47782
|
"rows_removed",
|
|
@@ -48011,7 +48023,7 @@
|
|
|
48011
48023
|
"additionalProperties": false,
|
|
48012
48024
|
"properties": {
|
|
48013
48025
|
"alerts": {
|
|
48014
|
-
"description": "Changes between
|
|
48026
|
+
"description": "Changes between runs to flag; on a scheduled run a match is emailed to the creator.",
|
|
48015
48027
|
"items": {
|
|
48016
48028
|
"properties": {
|
|
48017
48029
|
"column": {
|
|
@@ -48019,7 +48031,7 @@
|
|
|
48019
48031
|
"type": "string"
|
|
48020
48032
|
},
|
|
48021
48033
|
"on": {
|
|
48022
|
-
"description": "`rows_added
|
|
48034
|
+
"description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
|
|
48023
48035
|
"enum": [
|
|
48024
48036
|
"rows_added",
|
|
48025
48037
|
"rows_removed",
|
|
@@ -48050,13 +48062,21 @@
|
|
|
48050
48062
|
"maxItems": 5,
|
|
48051
48063
|
"type": "array"
|
|
48052
48064
|
},
|
|
48065
|
+
"copyFrom": {
|
|
48066
|
+
"description": "Copy one of your jobs by name; fields given override it.",
|
|
48067
|
+
"type": "string"
|
|
48068
|
+
},
|
|
48069
|
+
"copyFromPublished": {
|
|
48070
|
+
"description": "Or copy a ModelMatch `mm_*` table's job.",
|
|
48071
|
+
"type": "string"
|
|
48072
|
+
},
|
|
48053
48073
|
"description": {
|
|
48054
48074
|
"description": "What the job is for. Shown in the catalog.",
|
|
48055
48075
|
"maxLength": 500,
|
|
48056
48076
|
"type": "string"
|
|
48057
48077
|
},
|
|
48058
48078
|
"keys": {
|
|
48059
|
-
"description": "
|
|
48079
|
+
"description": "Columns identifying one row (e.g. `companyNmlsId`); needed for 'what changed' and alerts.",
|
|
48060
48080
|
"items": {
|
|
48061
48081
|
"minLength": 1,
|
|
48062
48082
|
"type": "string"
|
|
@@ -48092,16 +48112,14 @@
|
|
|
48092
48112
|
"type": "string"
|
|
48093
48113
|
},
|
|
48094
48114
|
"sql": {
|
|
48095
|
-
"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.",
|
|
48115
|
+
"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.",
|
|
48096
48116
|
"maxLength": 20000,
|
|
48097
48117
|
"minLength": 1,
|
|
48098
48118
|
"type": "string"
|
|
48099
48119
|
}
|
|
48100
48120
|
},
|
|
48101
48121
|
"required": [
|
|
48102
|
-
"name"
|
|
48103
|
-
"sql",
|
|
48104
|
-
"schedule"
|
|
48122
|
+
"name"
|
|
48105
48123
|
],
|
|
48106
48124
|
"type": "object"
|
|
48107
48125
|
},
|
|
@@ -48153,7 +48171,7 @@
|
|
|
48153
48171
|
"type": "string"
|
|
48154
48172
|
},
|
|
48155
48173
|
"on": {
|
|
48156
|
-
"description": "`rows_added
|
|
48174
|
+
"description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
|
|
48157
48175
|
"enum": [
|
|
48158
48176
|
"rows_added",
|
|
48159
48177
|
"rows_removed",
|
|
@@ -48464,6 +48482,11 @@
|
|
|
48464
48482
|
"nullable": true,
|
|
48465
48483
|
"type": "string"
|
|
48466
48484
|
},
|
|
48485
|
+
"basedOnPublished": {
|
|
48486
|
+
"description": "The ModelMatch model this one was copied from (its table); its card compares against it.",
|
|
48487
|
+
"nullable": true,
|
|
48488
|
+
"type": "string"
|
|
48489
|
+
},
|
|
48467
48490
|
"boosts": {
|
|
48468
48491
|
"description": "The priority boosts (empty when none). When there are any, the scores table also has `priorityScore`, `priorityRank` and `priorityMultiplier`: sort by `priorityRank` for the boosted list; `score` and `rank` stay the model's own.",
|
|
48469
48492
|
"items": {
|
|
@@ -49198,6 +49221,10 @@
|
|
|
49198
49221
|
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
49199
49222
|
"type": "string"
|
|
49200
49223
|
},
|
|
49224
|
+
"basedOnPublished": {
|
|
49225
|
+
"description": "Copy a ModelMatch model (`mm_model_*` table); fields given override it.",
|
|
49226
|
+
"type": "string"
|
|
49227
|
+
},
|
|
49201
49228
|
"boosts": {
|
|
49202
49229
|
"description": "After the model: matching homes' score × `multiply` is `priorityScore`; `score` and the card are unchanged. Text: `in`/`notIn`; numbers: `gte`/`lte`; dates: `onOrAfter`/`onOrBefore`.",
|
|
49203
49230
|
"items": {
|
|
@@ -49405,7 +49432,7 @@
|
|
|
49405
49432
|
"StudioModelError": {
|
|
49406
49433
|
"properties": {
|
|
49407
49434
|
"code": {
|
|
49408
|
-
"description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Access: `entitlement_missing` (the model uses neighborhood data points, or a boost or direction on where a home is, that your organization has not enabled; `details.dataPoints`, `details.boostColumns`, `details.directionRules`), `entitlement_unavailable`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
|
|
49435
|
+
"description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Access: `entitlement_missing` (the model uses neighborhood data points, or a boost or direction on where a home is, that your organization has not enabled; `details.dataPoints`, `details.boostColumns`, `details.directionRules`), `entitlement_unavailable`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
|
|
49409
49436
|
"example": "match_rate_too_low",
|
|
49410
49437
|
"type": "string"
|
|
49411
49438
|
},
|
|
@@ -50243,6 +50270,424 @@
|
|
|
50243
50270
|
],
|
|
50244
50271
|
"type": "object"
|
|
50245
50272
|
},
|
|
50273
|
+
"StudioProgram": {
|
|
50274
|
+
"properties": {
|
|
50275
|
+
"available": {
|
|
50276
|
+
"description": "True when your organization can run programs. False: ask your ModelMatch admin to enable them.",
|
|
50277
|
+
"type": "boolean"
|
|
50278
|
+
},
|
|
50279
|
+
"name": {
|
|
50280
|
+
"example": "company_retention",
|
|
50281
|
+
"type": "string"
|
|
50282
|
+
},
|
|
50283
|
+
"options": {
|
|
50284
|
+
"description": "The switches you can set, with their defaults.",
|
|
50285
|
+
"items": {
|
|
50286
|
+
"properties": {
|
|
50287
|
+
"default": {
|
|
50288
|
+
"description": "Used when left out.",
|
|
50289
|
+
"nullable": true
|
|
50290
|
+
},
|
|
50291
|
+
"description": {
|
|
50292
|
+
"type": "string"
|
|
50293
|
+
},
|
|
50294
|
+
"name": {
|
|
50295
|
+
"type": "string"
|
|
50296
|
+
}
|
|
50297
|
+
},
|
|
50298
|
+
"required": [
|
|
50299
|
+
"name",
|
|
50300
|
+
"description"
|
|
50301
|
+
],
|
|
50302
|
+
"type": "object"
|
|
50303
|
+
},
|
|
50304
|
+
"type": "array"
|
|
50305
|
+
},
|
|
50306
|
+
"price": {
|
|
50307
|
+
"properties": {
|
|
50308
|
+
"credits": {
|
|
50309
|
+
"description": "Credits charged once for a run that succeeds, when it has finished. A run that fails or times out is free.",
|
|
50310
|
+
"type": "number"
|
|
50311
|
+
}
|
|
50312
|
+
},
|
|
50313
|
+
"required": [
|
|
50314
|
+
"credits"
|
|
50315
|
+
],
|
|
50316
|
+
"type": "object"
|
|
50317
|
+
},
|
|
50318
|
+
"summary": {
|
|
50319
|
+
"type": "string"
|
|
50320
|
+
},
|
|
50321
|
+
"tables": {
|
|
50322
|
+
"description": "The tables a run leaves in your organization: your `name` plus each `suffix` (empty for the first).",
|
|
50323
|
+
"items": {
|
|
50324
|
+
"properties": {
|
|
50325
|
+
"description": {
|
|
50326
|
+
"type": "string"
|
|
50327
|
+
},
|
|
50328
|
+
"suffix": {
|
|
50329
|
+
"type": "string"
|
|
50330
|
+
}
|
|
50331
|
+
},
|
|
50332
|
+
"required": [
|
|
50333
|
+
"suffix",
|
|
50334
|
+
"description"
|
|
50335
|
+
],
|
|
50336
|
+
"type": "object"
|
|
50337
|
+
},
|
|
50338
|
+
"type": "array"
|
|
50339
|
+
},
|
|
50340
|
+
"title": {
|
|
50341
|
+
"type": "string"
|
|
50342
|
+
}
|
|
50343
|
+
},
|
|
50344
|
+
"required": [
|
|
50345
|
+
"name",
|
|
50346
|
+
"title",
|
|
50347
|
+
"summary",
|
|
50348
|
+
"options",
|
|
50349
|
+
"tables",
|
|
50350
|
+
"price",
|
|
50351
|
+
"available"
|
|
50352
|
+
],
|
|
50353
|
+
"type": "object"
|
|
50354
|
+
},
|
|
50355
|
+
"StudioProgramCredits": {
|
|
50356
|
+
"properties": {
|
|
50357
|
+
"charged": {
|
|
50358
|
+
"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.",
|
|
50359
|
+
"type": "number"
|
|
50360
|
+
},
|
|
50361
|
+
"pending": {
|
|
50362
|
+
"description": "Where a run was just started: what it will cost when it succeeds.",
|
|
50363
|
+
"type": "number"
|
|
50364
|
+
},
|
|
50365
|
+
"remaining": {
|
|
50366
|
+
"description": "Your balance after the charge, when one was made.",
|
|
50367
|
+
"type": "number"
|
|
50368
|
+
}
|
|
50369
|
+
},
|
|
50370
|
+
"required": [
|
|
50371
|
+
"charged"
|
|
50372
|
+
],
|
|
50373
|
+
"type": "object"
|
|
50374
|
+
},
|
|
50375
|
+
"StudioProgramError": {
|
|
50376
|
+
"properties": {
|
|
50377
|
+
"code": {
|
|
50378
|
+
"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`.",
|
|
50379
|
+
"type": "string"
|
|
50380
|
+
},
|
|
50381
|
+
"details": {
|
|
50382
|
+
"description": "What the error is about: `retryAfterSeconds` and `limit` for a refusal to start now, `entitlementKey` for `entitlement_missing`.",
|
|
50383
|
+
"properties": {
|
|
50384
|
+
"availableTables": {
|
|
50385
|
+
"items": {
|
|
50386
|
+
"type": "string"
|
|
50387
|
+
},
|
|
50388
|
+
"type": "array"
|
|
50389
|
+
},
|
|
50390
|
+
"boostColumns": {
|
|
50391
|
+
"items": {
|
|
50392
|
+
"type": "string"
|
|
50393
|
+
},
|
|
50394
|
+
"type": "array"
|
|
50395
|
+
},
|
|
50396
|
+
"column": {
|
|
50397
|
+
"type": "string"
|
|
50398
|
+
},
|
|
50399
|
+
"dataPoint": {
|
|
50400
|
+
"type": "string"
|
|
50401
|
+
},
|
|
50402
|
+
"dataPoints": {
|
|
50403
|
+
"items": {
|
|
50404
|
+
"type": "string"
|
|
50405
|
+
},
|
|
50406
|
+
"type": "array"
|
|
50407
|
+
},
|
|
50408
|
+
"directionRules": {
|
|
50409
|
+
"items": {
|
|
50410
|
+
"type": "string"
|
|
50411
|
+
},
|
|
50412
|
+
"type": "array"
|
|
50413
|
+
},
|
|
50414
|
+
"entitlementKey": {
|
|
50415
|
+
"type": "string"
|
|
50416
|
+
},
|
|
50417
|
+
"examples": {
|
|
50418
|
+
"type": "number"
|
|
50419
|
+
},
|
|
50420
|
+
"function": {
|
|
50421
|
+
"type": "string"
|
|
50422
|
+
},
|
|
50423
|
+
"limit": {
|
|
50424
|
+
"type": "number"
|
|
50425
|
+
},
|
|
50426
|
+
"matchRate": {
|
|
50427
|
+
"type": "number"
|
|
50428
|
+
},
|
|
50429
|
+
"matched": {
|
|
50430
|
+
"type": "number"
|
|
50431
|
+
},
|
|
50432
|
+
"minimum": {
|
|
50433
|
+
"type": "number"
|
|
50434
|
+
},
|
|
50435
|
+
"positives": {
|
|
50436
|
+
"type": "number"
|
|
50437
|
+
},
|
|
50438
|
+
"retryAfterSeconds": {
|
|
50439
|
+
"type": "number"
|
|
50440
|
+
},
|
|
50441
|
+
"rows": {
|
|
50442
|
+
"type": "number"
|
|
50443
|
+
},
|
|
50444
|
+
"running": {
|
|
50445
|
+
"type": "number"
|
|
50446
|
+
},
|
|
50447
|
+
"suggestions": {
|
|
50448
|
+
"items": {
|
|
50449
|
+
"type": "string"
|
|
50450
|
+
},
|
|
50451
|
+
"type": "array"
|
|
50452
|
+
},
|
|
50453
|
+
"table": {
|
|
50454
|
+
"type": "string"
|
|
50455
|
+
}
|
|
50456
|
+
},
|
|
50457
|
+
"type": "object"
|
|
50458
|
+
},
|
|
50459
|
+
"error": {
|
|
50460
|
+
"type": "string"
|
|
50461
|
+
}
|
|
50462
|
+
},
|
|
50463
|
+
"required": [
|
|
50464
|
+
"error",
|
|
50465
|
+
"code"
|
|
50466
|
+
],
|
|
50467
|
+
"type": "object"
|
|
50468
|
+
},
|
|
50469
|
+
"StudioProgramList": {
|
|
50470
|
+
"properties": {
|
|
50471
|
+
"data": {
|
|
50472
|
+
"items": {
|
|
50473
|
+
"$ref": "#/components/schemas/StudioProgram"
|
|
50474
|
+
},
|
|
50475
|
+
"type": "array"
|
|
50476
|
+
}
|
|
50477
|
+
},
|
|
50478
|
+
"required": [
|
|
50479
|
+
"data"
|
|
50480
|
+
],
|
|
50481
|
+
"type": "object"
|
|
50482
|
+
},
|
|
50483
|
+
"StudioProgramPaymentRequired": {
|
|
50484
|
+
"properties": {
|
|
50485
|
+
"balance": {
|
|
50486
|
+
"type": "number"
|
|
50487
|
+
},
|
|
50488
|
+
"cost": {
|
|
50489
|
+
"type": "number"
|
|
50490
|
+
},
|
|
50491
|
+
"error": {
|
|
50492
|
+
"enum": [
|
|
50493
|
+
"payment_required"
|
|
50494
|
+
],
|
|
50495
|
+
"type": "string"
|
|
50496
|
+
},
|
|
50497
|
+
"message": {
|
|
50498
|
+
"type": "string"
|
|
50499
|
+
},
|
|
50500
|
+
"reason": {
|
|
50501
|
+
"type": "string"
|
|
50502
|
+
}
|
|
50503
|
+
},
|
|
50504
|
+
"required": [
|
|
50505
|
+
"error",
|
|
50506
|
+
"balance",
|
|
50507
|
+
"cost"
|
|
50508
|
+
],
|
|
50509
|
+
"type": "object"
|
|
50510
|
+
},
|
|
50511
|
+
"StudioProgramRun": {
|
|
50512
|
+
"properties": {
|
|
50513
|
+
"asOf": {
|
|
50514
|
+
"type": "string"
|
|
50515
|
+
},
|
|
50516
|
+
"dataThrough": {
|
|
50517
|
+
"nullable": true,
|
|
50518
|
+
"type": "string"
|
|
50519
|
+
},
|
|
50520
|
+
"delivered": {
|
|
50521
|
+
"description": "True once the tables are in your organization: query them like any table (the catalog lists them).",
|
|
50522
|
+
"type": "boolean"
|
|
50523
|
+
},
|
|
50524
|
+
"elapsedMs": {
|
|
50525
|
+
"nullable": true,
|
|
50526
|
+
"type": "number"
|
|
50527
|
+
},
|
|
50528
|
+
"error": {
|
|
50529
|
+
"nullable": true,
|
|
50530
|
+
"properties": {
|
|
50531
|
+
"code": {
|
|
50532
|
+
"type": "string"
|
|
50533
|
+
},
|
|
50534
|
+
"message": {
|
|
50535
|
+
"type": "string"
|
|
50536
|
+
}
|
|
50537
|
+
},
|
|
50538
|
+
"required": [
|
|
50539
|
+
"code",
|
|
50540
|
+
"message"
|
|
50541
|
+
],
|
|
50542
|
+
"type": "object"
|
|
50543
|
+
},
|
|
50544
|
+
"finishedAt": {
|
|
50545
|
+
"nullable": true,
|
|
50546
|
+
"type": "string"
|
|
50547
|
+
},
|
|
50548
|
+
"name": {
|
|
50549
|
+
"description": "The name you gave the result.",
|
|
50550
|
+
"type": "string"
|
|
50551
|
+
},
|
|
50552
|
+
"options": {
|
|
50553
|
+
"additionalProperties": {
|
|
50554
|
+
"nullable": true
|
|
50555
|
+
},
|
|
50556
|
+
"type": "object"
|
|
50557
|
+
},
|
|
50558
|
+
"program": {
|
|
50559
|
+
"type": "string"
|
|
50560
|
+
},
|
|
50561
|
+
"progress": {
|
|
50562
|
+
"nullable": true,
|
|
50563
|
+
"properties": {
|
|
50564
|
+
"done": {
|
|
50565
|
+
"type": "number"
|
|
50566
|
+
},
|
|
50567
|
+
"step": {
|
|
50568
|
+
"type": "string"
|
|
50569
|
+
},
|
|
50570
|
+
"total": {
|
|
50571
|
+
"type": "number"
|
|
50572
|
+
}
|
|
50573
|
+
},
|
|
50574
|
+
"required": [
|
|
50575
|
+
"step"
|
|
50576
|
+
],
|
|
50577
|
+
"type": "object"
|
|
50578
|
+
},
|
|
50579
|
+
"runId": {
|
|
50580
|
+
"type": "string"
|
|
50581
|
+
},
|
|
50582
|
+
"startedAt": {
|
|
50583
|
+
"type": "string"
|
|
50584
|
+
},
|
|
50585
|
+
"state": {
|
|
50586
|
+
"enum": [
|
|
50587
|
+
"running",
|
|
50588
|
+
"succeeded",
|
|
50589
|
+
"failed"
|
|
50590
|
+
],
|
|
50591
|
+
"type": "string"
|
|
50592
|
+
},
|
|
50593
|
+
"tables": {
|
|
50594
|
+
"items": {
|
|
50595
|
+
"properties": {
|
|
50596
|
+
"rowCount": {
|
|
50597
|
+
"nullable": true,
|
|
50598
|
+
"type": "number"
|
|
50599
|
+
},
|
|
50600
|
+
"table": {
|
|
50601
|
+
"type": "string"
|
|
50602
|
+
}
|
|
50603
|
+
},
|
|
50604
|
+
"required": [
|
|
50605
|
+
"table",
|
|
50606
|
+
"rowCount"
|
|
50607
|
+
],
|
|
50608
|
+
"type": "object"
|
|
50609
|
+
},
|
|
50610
|
+
"type": "array"
|
|
50611
|
+
},
|
|
50612
|
+
"title": {
|
|
50613
|
+
"type": "string"
|
|
50614
|
+
}
|
|
50615
|
+
},
|
|
50616
|
+
"required": [
|
|
50617
|
+
"runId",
|
|
50618
|
+
"program",
|
|
50619
|
+
"title",
|
|
50620
|
+
"name",
|
|
50621
|
+
"state",
|
|
50622
|
+
"delivered",
|
|
50623
|
+
"tables",
|
|
50624
|
+
"startedAt",
|
|
50625
|
+
"finishedAt",
|
|
50626
|
+
"elapsedMs",
|
|
50627
|
+
"asOf",
|
|
50628
|
+
"options",
|
|
50629
|
+
"dataThrough",
|
|
50630
|
+
"progress",
|
|
50631
|
+
"error"
|
|
50632
|
+
],
|
|
50633
|
+
"type": "object"
|
|
50634
|
+
},
|
|
50635
|
+
"StudioProgramRunList": {
|
|
50636
|
+
"properties": {
|
|
50637
|
+
"credits": {
|
|
50638
|
+
"$ref": "#/components/schemas/StudioProgramCredits"
|
|
50639
|
+
},
|
|
50640
|
+
"data": {
|
|
50641
|
+
"items": {
|
|
50642
|
+
"$ref": "#/components/schemas/StudioProgramRun"
|
|
50643
|
+
},
|
|
50644
|
+
"type": "array"
|
|
50645
|
+
}
|
|
50646
|
+
},
|
|
50647
|
+
"required": [
|
|
50648
|
+
"data",
|
|
50649
|
+
"credits"
|
|
50650
|
+
],
|
|
50651
|
+
"type": "object"
|
|
50652
|
+
},
|
|
50653
|
+
"StudioProgramRunRequest": {
|
|
50654
|
+
"additionalProperties": false,
|
|
50655
|
+
"properties": {
|
|
50656
|
+
"name": {
|
|
50657
|
+
"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`.",
|
|
50658
|
+
"example": "tx_retention",
|
|
50659
|
+
"maxLength": 63,
|
|
50660
|
+
"minLength": 1,
|
|
50661
|
+
"type": "string"
|
|
50662
|
+
},
|
|
50663
|
+
"options": {
|
|
50664
|
+
"additionalProperties": {
|
|
50665
|
+
"nullable": true
|
|
50666
|
+
},
|
|
50667
|
+
"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.",
|
|
50668
|
+
"type": "object"
|
|
50669
|
+
}
|
|
50670
|
+
},
|
|
50671
|
+
"required": [
|
|
50672
|
+
"name"
|
|
50673
|
+
],
|
|
50674
|
+
"type": "object"
|
|
50675
|
+
},
|
|
50676
|
+
"StudioProgramRunResult": {
|
|
50677
|
+
"properties": {
|
|
50678
|
+
"credits": {
|
|
50679
|
+
"$ref": "#/components/schemas/StudioProgramCredits"
|
|
50680
|
+
},
|
|
50681
|
+
"data": {
|
|
50682
|
+
"$ref": "#/components/schemas/StudioProgramRun"
|
|
50683
|
+
}
|
|
50684
|
+
},
|
|
50685
|
+
"required": [
|
|
50686
|
+
"data",
|
|
50687
|
+
"credits"
|
|
50688
|
+
],
|
|
50689
|
+
"type": "object"
|
|
50690
|
+
},
|
|
50246
50691
|
"StudioPublishedModel": {
|
|
50247
50692
|
"properties": {
|
|
50248
50693
|
"asOf": {
|
|
@@ -50546,6 +50991,13 @@
|
|
|
50546
50991
|
"description": "The table its scores are in, the same for every organization. Query it with Studio.",
|
|
50547
50992
|
"example": "mm_model_refi_watch",
|
|
50548
50993
|
"type": "string"
|
|
50994
|
+
},
|
|
50995
|
+
"weighting": {
|
|
50996
|
+
"description": "How it was weighted — recent history, direction rules, priority boosts — one sentence each; empty when it was not. A copy (`basedOnPublished` on createStudioModel) starts with the same settings.",
|
|
50997
|
+
"items": {
|
|
50998
|
+
"type": "string"
|
|
50999
|
+
},
|
|
51000
|
+
"type": "array"
|
|
50549
51001
|
}
|
|
50550
51002
|
},
|
|
50551
51003
|
"required": [
|
|
@@ -50561,6 +51013,7 @@
|
|
|
50561
51013
|
"learnedFrom",
|
|
50562
51014
|
"metrics",
|
|
50563
51015
|
"dataPoints",
|
|
51016
|
+
"weighting",
|
|
50564
51017
|
"caveats"
|
|
50565
51018
|
],
|
|
50566
51019
|
"type": "object"
|
|
@@ -51942,7 +52395,7 @@
|
|
|
51942
52395
|
"info": {
|
|
51943
52396
|
"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.",
|
|
51944
52397
|
"title": "ModelMatch API",
|
|
51945
|
-
"version": "3.
|
|
52398
|
+
"version": "3.172.0"
|
|
51946
52399
|
},
|
|
51947
52400
|
"openapi": "3.1.0",
|
|
51948
52401
|
"paths": {
|
|
@@ -91157,7 +91610,7 @@
|
|
|
91157
91610
|
]
|
|
91158
91611
|
},
|
|
91159
91612
|
"post": {
|
|
91160
|
-
"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. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.",
|
|
91613
|
+
"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.",
|
|
91161
91614
|
"operationId": "createStudioJob",
|
|
91162
91615
|
"requestBody": {
|
|
91163
91616
|
"content": {
|
|
@@ -91800,7 +92253,565 @@
|
|
|
91800
92253
|
}
|
|
91801
92254
|
}
|
|
91802
92255
|
},
|
|
91803
|
-
"description": "`model_not_found` — your organization has no model of that name."
|
|
92256
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92257
|
+
},
|
|
92258
|
+
"409": {
|
|
92259
|
+
"content": {
|
|
92260
|
+
"application/json": {
|
|
92261
|
+
"schema": {
|
|
92262
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92263
|
+
}
|
|
92264
|
+
}
|
|
92265
|
+
},
|
|
92266
|
+
"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."
|
|
92267
|
+
},
|
|
92268
|
+
"422": {
|
|
92269
|
+
"content": {
|
|
92270
|
+
"application/json": {
|
|
92271
|
+
"schema": {
|
|
92272
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92273
|
+
}
|
|
92274
|
+
}
|
|
92275
|
+
},
|
|
92276
|
+
"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."
|
|
92277
|
+
},
|
|
92278
|
+
"429": {
|
|
92279
|
+
"content": {
|
|
92280
|
+
"application/json": {
|
|
92281
|
+
"schema": {
|
|
92282
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92283
|
+
}
|
|
92284
|
+
}
|
|
92285
|
+
},
|
|
92286
|
+
"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`)."
|
|
92287
|
+
},
|
|
92288
|
+
"503": {
|
|
92289
|
+
"content": {
|
|
92290
|
+
"application/json": {
|
|
92291
|
+
"schema": {
|
|
92292
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92293
|
+
}
|
|
92294
|
+
}
|
|
92295
|
+
},
|
|
92296
|
+
"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)."
|
|
92297
|
+
}
|
|
92298
|
+
},
|
|
92299
|
+
"summary": "Your organization's models",
|
|
92300
|
+
"tags": [
|
|
92301
|
+
"Studio"
|
|
92302
|
+
]
|
|
92303
|
+
},
|
|
92304
|
+
"post": {
|
|
92305
|
+
"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.",
|
|
92306
|
+
"operationId": "createStudioModel",
|
|
92307
|
+
"requestBody": {
|
|
92308
|
+
"content": {
|
|
92309
|
+
"application/json": {
|
|
92310
|
+
"schema": {
|
|
92311
|
+
"$ref": "#/components/schemas/StudioModelCreate"
|
|
92312
|
+
}
|
|
92313
|
+
}
|
|
92314
|
+
},
|
|
92315
|
+
"required": true
|
|
92316
|
+
},
|
|
92317
|
+
"responses": {
|
|
92318
|
+
"201": {
|
|
92319
|
+
"content": {
|
|
92320
|
+
"application/json": {
|
|
92321
|
+
"schema": {
|
|
92322
|
+
"$ref": "#/components/schemas/StudioModelCreated"
|
|
92323
|
+
}
|
|
92324
|
+
}
|
|
92325
|
+
},
|
|
92326
|
+
"description": "Training has started"
|
|
92327
|
+
},
|
|
92328
|
+
"400": {
|
|
92329
|
+
"content": {
|
|
92330
|
+
"application/json": {
|
|
92331
|
+
"schema": {
|
|
92332
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92333
|
+
}
|
|
92334
|
+
}
|
|
92335
|
+
},
|
|
92336
|
+
"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."
|
|
92337
|
+
},
|
|
92338
|
+
"401": {
|
|
92339
|
+
"content": {
|
|
92340
|
+
"application/json": {
|
|
92341
|
+
"schema": {
|
|
92342
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92343
|
+
}
|
|
92344
|
+
}
|
|
92345
|
+
},
|
|
92346
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92347
|
+
},
|
|
92348
|
+
"403": {
|
|
92349
|
+
"content": {
|
|
92350
|
+
"application/json": {
|
|
92351
|
+
"schema": {
|
|
92352
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92353
|
+
}
|
|
92354
|
+
}
|
|
92355
|
+
},
|
|
92356
|
+
"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."
|
|
92357
|
+
},
|
|
92358
|
+
"404": {
|
|
92359
|
+
"content": {
|
|
92360
|
+
"application/json": {
|
|
92361
|
+
"schema": {
|
|
92362
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92363
|
+
}
|
|
92364
|
+
}
|
|
92365
|
+
},
|
|
92366
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92367
|
+
},
|
|
92368
|
+
"409": {
|
|
92369
|
+
"content": {
|
|
92370
|
+
"application/json": {
|
|
92371
|
+
"schema": {
|
|
92372
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92373
|
+
}
|
|
92374
|
+
}
|
|
92375
|
+
},
|
|
92376
|
+
"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."
|
|
92377
|
+
},
|
|
92378
|
+
"422": {
|
|
92379
|
+
"content": {
|
|
92380
|
+
"application/json": {
|
|
92381
|
+
"schema": {
|
|
92382
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92383
|
+
}
|
|
92384
|
+
}
|
|
92385
|
+
},
|
|
92386
|
+
"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."
|
|
92387
|
+
},
|
|
92388
|
+
"429": {
|
|
92389
|
+
"content": {
|
|
92390
|
+
"application/json": {
|
|
92391
|
+
"schema": {
|
|
92392
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92393
|
+
}
|
|
92394
|
+
}
|
|
92395
|
+
},
|
|
92396
|
+
"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`)."
|
|
92397
|
+
},
|
|
92398
|
+
"502": {
|
|
92399
|
+
"content": {
|
|
92400
|
+
"application/json": {
|
|
92401
|
+
"schema": {
|
|
92402
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92403
|
+
}
|
|
92404
|
+
}
|
|
92405
|
+
},
|
|
92406
|
+
"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."
|
|
92407
|
+
},
|
|
92408
|
+
"503": {
|
|
92409
|
+
"content": {
|
|
92410
|
+
"application/json": {
|
|
92411
|
+
"schema": {
|
|
92412
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92413
|
+
}
|
|
92414
|
+
}
|
|
92415
|
+
},
|
|
92416
|
+
"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)."
|
|
92417
|
+
}
|
|
92418
|
+
},
|
|
92419
|
+
"summary": "Create a prediction model and start training it",
|
|
92420
|
+
"tags": [
|
|
92421
|
+
"Studio"
|
|
92422
|
+
]
|
|
92423
|
+
}
|
|
92424
|
+
},
|
|
92425
|
+
"/v1/studio/models/options": {
|
|
92426
|
+
"get": {
|
|
92427
|
+
"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.",
|
|
92428
|
+
"operationId": "getStudioModelOptions",
|
|
92429
|
+
"responses": {
|
|
92430
|
+
"200": {
|
|
92431
|
+
"content": {
|
|
92432
|
+
"application/json": {
|
|
92433
|
+
"schema": {
|
|
92434
|
+
"$ref": "#/components/schemas/StudioModelOptionsResult"
|
|
92435
|
+
}
|
|
92436
|
+
}
|
|
92437
|
+
},
|
|
92438
|
+
"description": "The choices"
|
|
92439
|
+
},
|
|
92440
|
+
"400": {
|
|
92441
|
+
"content": {
|
|
92442
|
+
"application/json": {
|
|
92443
|
+
"schema": {
|
|
92444
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92445
|
+
}
|
|
92446
|
+
}
|
|
92447
|
+
},
|
|
92448
|
+
"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."
|
|
92449
|
+
},
|
|
92450
|
+
"401": {
|
|
92451
|
+
"content": {
|
|
92452
|
+
"application/json": {
|
|
92453
|
+
"schema": {
|
|
92454
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92455
|
+
}
|
|
92456
|
+
}
|
|
92457
|
+
},
|
|
92458
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92459
|
+
},
|
|
92460
|
+
"403": {
|
|
92461
|
+
"content": {
|
|
92462
|
+
"application/json": {
|
|
92463
|
+
"schema": {
|
|
92464
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92465
|
+
}
|
|
92466
|
+
}
|
|
92467
|
+
},
|
|
92468
|
+
"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."
|
|
92469
|
+
},
|
|
92470
|
+
"404": {
|
|
92471
|
+
"content": {
|
|
92472
|
+
"application/json": {
|
|
92473
|
+
"schema": {
|
|
92474
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92475
|
+
}
|
|
92476
|
+
}
|
|
92477
|
+
},
|
|
92478
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92479
|
+
},
|
|
92480
|
+
"409": {
|
|
92481
|
+
"content": {
|
|
92482
|
+
"application/json": {
|
|
92483
|
+
"schema": {
|
|
92484
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92485
|
+
}
|
|
92486
|
+
}
|
|
92487
|
+
},
|
|
92488
|
+
"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."
|
|
92489
|
+
},
|
|
92490
|
+
"422": {
|
|
92491
|
+
"content": {
|
|
92492
|
+
"application/json": {
|
|
92493
|
+
"schema": {
|
|
92494
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92495
|
+
}
|
|
92496
|
+
}
|
|
92497
|
+
},
|
|
92498
|
+
"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."
|
|
92499
|
+
},
|
|
92500
|
+
"429": {
|
|
92501
|
+
"content": {
|
|
92502
|
+
"application/json": {
|
|
92503
|
+
"schema": {
|
|
92504
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92505
|
+
}
|
|
92506
|
+
}
|
|
92507
|
+
},
|
|
92508
|
+
"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`)."
|
|
92509
|
+
},
|
|
92510
|
+
"503": {
|
|
92511
|
+
"content": {
|
|
92512
|
+
"application/json": {
|
|
92513
|
+
"schema": {
|
|
92514
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92515
|
+
}
|
|
92516
|
+
}
|
|
92517
|
+
},
|
|
92518
|
+
"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)."
|
|
92519
|
+
}
|
|
92520
|
+
},
|
|
92521
|
+
"summary": "What a prediction model can be built from",
|
|
92522
|
+
"tags": [
|
|
92523
|
+
"Studio"
|
|
92524
|
+
]
|
|
92525
|
+
}
|
|
92526
|
+
},
|
|
92527
|
+
"/v1/studio/models/published/{table}": {
|
|
92528
|
+
"get": {
|
|
92529
|
+
"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.",
|
|
92530
|
+
"operationId": "getStudioPublishedModel",
|
|
92531
|
+
"parameters": [
|
|
92532
|
+
{
|
|
92533
|
+
"description": "Its `mm_model_*` table.",
|
|
92534
|
+
"in": "path",
|
|
92535
|
+
"name": "table",
|
|
92536
|
+
"required": true,
|
|
92537
|
+
"schema": {
|
|
92538
|
+
"description": "Its `mm_model_*` table.",
|
|
92539
|
+
"example": "mm_model_refi_watch",
|
|
92540
|
+
"pattern": "^mm_[a-z][a-z0-9_]{1,58}$",
|
|
92541
|
+
"type": "string"
|
|
92542
|
+
}
|
|
92543
|
+
}
|
|
92544
|
+
],
|
|
92545
|
+
"responses": {
|
|
92546
|
+
"200": {
|
|
92547
|
+
"content": {
|
|
92548
|
+
"application/json": {
|
|
92549
|
+
"schema": {
|
|
92550
|
+
"$ref": "#/components/schemas/StudioPublishedModelResult"
|
|
92551
|
+
}
|
|
92552
|
+
}
|
|
92553
|
+
},
|
|
92554
|
+
"description": "The report card"
|
|
92555
|
+
},
|
|
92556
|
+
"400": {
|
|
92557
|
+
"content": {
|
|
92558
|
+
"application/json": {
|
|
92559
|
+
"schema": {
|
|
92560
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92561
|
+
}
|
|
92562
|
+
}
|
|
92563
|
+
},
|
|
92564
|
+
"description": "`invalid_request` — not a published table's name."
|
|
92565
|
+
},
|
|
92566
|
+
"401": {
|
|
92567
|
+
"content": {
|
|
92568
|
+
"application/json": {
|
|
92569
|
+
"schema": {
|
|
92570
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92571
|
+
}
|
|
92572
|
+
}
|
|
92573
|
+
},
|
|
92574
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92575
|
+
},
|
|
92576
|
+
"403": {
|
|
92577
|
+
"content": {
|
|
92578
|
+
"application/json": {
|
|
92579
|
+
"schema": {
|
|
92580
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92581
|
+
}
|
|
92582
|
+
}
|
|
92583
|
+
},
|
|
92584
|
+
"description": "`no_organization` — select an organization; `studio_not_enabled` — Studio is not enabled for this account."
|
|
92585
|
+
},
|
|
92586
|
+
"404": {
|
|
92587
|
+
"content": {
|
|
92588
|
+
"application/json": {
|
|
92589
|
+
"schema": {
|
|
92590
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92591
|
+
}
|
|
92592
|
+
}
|
|
92593
|
+
},
|
|
92594
|
+
"description": "`published_model_not_found` — no model of that name is published. The catalog lists what is."
|
|
92595
|
+
},
|
|
92596
|
+
"409": {
|
|
92597
|
+
"content": {
|
|
92598
|
+
"application/json": {
|
|
92599
|
+
"schema": {
|
|
92600
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92601
|
+
}
|
|
92602
|
+
}
|
|
92603
|
+
},
|
|
92604
|
+
"description": "`published_unavailable` — published tables are switched off right now."
|
|
92605
|
+
},
|
|
92606
|
+
"503": {
|
|
92607
|
+
"content": {
|
|
92608
|
+
"application/json": {
|
|
92609
|
+
"schema": {
|
|
92610
|
+
"$ref": "#/components/schemas/StudioError"
|
|
92611
|
+
}
|
|
92612
|
+
}
|
|
92613
|
+
},
|
|
92614
|
+
"description": "`studio_unavailable` — try again in a minute."
|
|
92615
|
+
}
|
|
92616
|
+
},
|
|
92617
|
+
"summary": "A model ModelMatch publishes: its report card",
|
|
92618
|
+
"tags": [
|
|
92619
|
+
"Studio"
|
|
92620
|
+
]
|
|
92621
|
+
}
|
|
92622
|
+
},
|
|
92623
|
+
"/v1/studio/models/{name}": {
|
|
92624
|
+
"delete": {
|
|
92625
|
+
"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.",
|
|
92626
|
+
"operationId": "deleteStudioModel",
|
|
92627
|
+
"parameters": [
|
|
92628
|
+
{
|
|
92629
|
+
"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>`.",
|
|
92630
|
+
"in": "path",
|
|
92631
|
+
"name": "name",
|
|
92632
|
+
"required": true,
|
|
92633
|
+
"schema": {
|
|
92634
|
+
"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>`.",
|
|
92635
|
+
"example": "refi_watch",
|
|
92636
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92637
|
+
"type": "string"
|
|
92638
|
+
}
|
|
92639
|
+
}
|
|
92640
|
+
],
|
|
92641
|
+
"responses": {
|
|
92642
|
+
"200": {
|
|
92643
|
+
"content": {
|
|
92644
|
+
"application/json": {
|
|
92645
|
+
"schema": {
|
|
92646
|
+
"$ref": "#/components/schemas/StudioModelDeleted"
|
|
92647
|
+
}
|
|
92648
|
+
}
|
|
92649
|
+
},
|
|
92650
|
+
"description": "Deleted"
|
|
92651
|
+
},
|
|
92652
|
+
"400": {
|
|
92653
|
+
"content": {
|
|
92654
|
+
"application/json": {
|
|
92655
|
+
"schema": {
|
|
92656
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92657
|
+
}
|
|
92658
|
+
}
|
|
92659
|
+
},
|
|
92660
|
+
"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."
|
|
92661
|
+
},
|
|
92662
|
+
"401": {
|
|
92663
|
+
"content": {
|
|
92664
|
+
"application/json": {
|
|
92665
|
+
"schema": {
|
|
92666
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92667
|
+
}
|
|
92668
|
+
}
|
|
92669
|
+
},
|
|
92670
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92671
|
+
},
|
|
92672
|
+
"403": {
|
|
92673
|
+
"content": {
|
|
92674
|
+
"application/json": {
|
|
92675
|
+
"schema": {
|
|
92676
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92677
|
+
}
|
|
92678
|
+
}
|
|
92679
|
+
},
|
|
92680
|
+
"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."
|
|
92681
|
+
},
|
|
92682
|
+
"404": {
|
|
92683
|
+
"content": {
|
|
92684
|
+
"application/json": {
|
|
92685
|
+
"schema": {
|
|
92686
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92687
|
+
}
|
|
92688
|
+
}
|
|
92689
|
+
},
|
|
92690
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
92691
|
+
},
|
|
92692
|
+
"409": {
|
|
92693
|
+
"content": {
|
|
92694
|
+
"application/json": {
|
|
92695
|
+
"schema": {
|
|
92696
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92697
|
+
}
|
|
92698
|
+
}
|
|
92699
|
+
},
|
|
92700
|
+
"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."
|
|
92701
|
+
},
|
|
92702
|
+
"422": {
|
|
92703
|
+
"content": {
|
|
92704
|
+
"application/json": {
|
|
92705
|
+
"schema": {
|
|
92706
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92707
|
+
}
|
|
92708
|
+
}
|
|
92709
|
+
},
|
|
92710
|
+
"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."
|
|
92711
|
+
},
|
|
92712
|
+
"429": {
|
|
92713
|
+
"content": {
|
|
92714
|
+
"application/json": {
|
|
92715
|
+
"schema": {
|
|
92716
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92717
|
+
}
|
|
92718
|
+
}
|
|
92719
|
+
},
|
|
92720
|
+
"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`)."
|
|
92721
|
+
},
|
|
92722
|
+
"503": {
|
|
92723
|
+
"content": {
|
|
92724
|
+
"application/json": {
|
|
92725
|
+
"schema": {
|
|
92726
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92727
|
+
}
|
|
92728
|
+
}
|
|
92729
|
+
},
|
|
92730
|
+
"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)."
|
|
92731
|
+
}
|
|
92732
|
+
},
|
|
92733
|
+
"summary": "Delete a model, its report card and its scores, permanently",
|
|
92734
|
+
"tags": [
|
|
92735
|
+
"Studio"
|
|
92736
|
+
]
|
|
92737
|
+
},
|
|
92738
|
+
"get": {
|
|
92739
|
+
"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`.",
|
|
92740
|
+
"operationId": "getStudioModel",
|
|
92741
|
+
"parameters": [
|
|
92742
|
+
{
|
|
92743
|
+
"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>`.",
|
|
92744
|
+
"in": "path",
|
|
92745
|
+
"name": "name",
|
|
92746
|
+
"required": true,
|
|
92747
|
+
"schema": {
|
|
92748
|
+
"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>`.",
|
|
92749
|
+
"example": "refi_watch",
|
|
92750
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92751
|
+
"type": "string"
|
|
92752
|
+
}
|
|
92753
|
+
}
|
|
92754
|
+
],
|
|
92755
|
+
"responses": {
|
|
92756
|
+
"200": {
|
|
92757
|
+
"content": {
|
|
92758
|
+
"application/json": {
|
|
92759
|
+
"schema": {
|
|
92760
|
+
"$ref": "#/components/schemas/StudioModelResult"
|
|
92761
|
+
}
|
|
92762
|
+
}
|
|
92763
|
+
},
|
|
92764
|
+
"description": "The model"
|
|
92765
|
+
},
|
|
92766
|
+
"400": {
|
|
92767
|
+
"content": {
|
|
92768
|
+
"application/json": {
|
|
92769
|
+
"schema": {
|
|
92770
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92771
|
+
}
|
|
92772
|
+
}
|
|
92773
|
+
},
|
|
92774
|
+
"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."
|
|
92775
|
+
},
|
|
92776
|
+
"401": {
|
|
92777
|
+
"content": {
|
|
92778
|
+
"application/json": {
|
|
92779
|
+
"schema": {
|
|
92780
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92781
|
+
}
|
|
92782
|
+
}
|
|
92783
|
+
},
|
|
92784
|
+
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92785
|
+
},
|
|
92786
|
+
"402": {
|
|
92787
|
+
"content": {
|
|
92788
|
+
"application/json": {
|
|
92789
|
+
"schema": {
|
|
92790
|
+
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
92791
|
+
}
|
|
92792
|
+
}
|
|
92793
|
+
},
|
|
92794
|
+
"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."
|
|
92795
|
+
},
|
|
92796
|
+
"403": {
|
|
92797
|
+
"content": {
|
|
92798
|
+
"application/json": {
|
|
92799
|
+
"schema": {
|
|
92800
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92801
|
+
}
|
|
92802
|
+
}
|
|
92803
|
+
},
|
|
92804
|
+
"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."
|
|
92805
|
+
},
|
|
92806
|
+
"404": {
|
|
92807
|
+
"content": {
|
|
92808
|
+
"application/json": {
|
|
92809
|
+
"schema": {
|
|
92810
|
+
"$ref": "#/components/schemas/StudioModelError"
|
|
92811
|
+
}
|
|
92812
|
+
}
|
|
92813
|
+
},
|
|
92814
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
91804
92815
|
},
|
|
91805
92816
|
"409": {
|
|
91806
92817
|
"content": {
|
|
@@ -91843,34 +92854,50 @@
|
|
|
91843
92854
|
"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)."
|
|
91844
92855
|
}
|
|
91845
92856
|
},
|
|
91846
|
-
"summary": "
|
|
92857
|
+
"summary": "A model: its status and its report card",
|
|
91847
92858
|
"tags": [
|
|
91848
92859
|
"Studio"
|
|
91849
92860
|
]
|
|
91850
|
-
}
|
|
92861
|
+
}
|
|
92862
|
+
},
|
|
92863
|
+
"/v1/studio/models/{name}/refresh": {
|
|
91851
92864
|
"post": {
|
|
91852
|
-
"description": "
|
|
91853
|
-
"operationId": "
|
|
92865
|
+
"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.",
|
|
92866
|
+
"operationId": "refreshStudioModel",
|
|
92867
|
+
"parameters": [
|
|
92868
|
+
{
|
|
92869
|
+
"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>`.",
|
|
92870
|
+
"in": "path",
|
|
92871
|
+
"name": "name",
|
|
92872
|
+
"required": true,
|
|
92873
|
+
"schema": {
|
|
92874
|
+
"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>`.",
|
|
92875
|
+
"example": "refi_watch",
|
|
92876
|
+
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92877
|
+
"type": "string"
|
|
92878
|
+
}
|
|
92879
|
+
}
|
|
92880
|
+
],
|
|
91854
92881
|
"requestBody": {
|
|
91855
92882
|
"content": {
|
|
91856
92883
|
"application/json": {
|
|
91857
92884
|
"schema": {
|
|
91858
|
-
"$ref": "#/components/schemas/
|
|
92885
|
+
"$ref": "#/components/schemas/StudioModelRefresh"
|
|
91859
92886
|
}
|
|
91860
92887
|
}
|
|
91861
92888
|
},
|
|
91862
|
-
"required":
|
|
92889
|
+
"required": false
|
|
91863
92890
|
},
|
|
91864
92891
|
"responses": {
|
|
91865
|
-
"
|
|
92892
|
+
"202": {
|
|
91866
92893
|
"content": {
|
|
91867
92894
|
"application/json": {
|
|
91868
92895
|
"schema": {
|
|
91869
|
-
"$ref": "#/components/schemas/
|
|
92896
|
+
"$ref": "#/components/schemas/StudioModelResult"
|
|
91870
92897
|
}
|
|
91871
92898
|
}
|
|
91872
92899
|
},
|
|
91873
|
-
"description": "
|
|
92900
|
+
"description": "The refresh has started"
|
|
91874
92901
|
},
|
|
91875
92902
|
"400": {
|
|
91876
92903
|
"content": {
|
|
@@ -91892,6 +92919,16 @@
|
|
|
91892
92919
|
},
|
|
91893
92920
|
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
91894
92921
|
},
|
|
92922
|
+
"402": {
|
|
92923
|
+
"content": {
|
|
92924
|
+
"application/json": {
|
|
92925
|
+
"schema": {
|
|
92926
|
+
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
92927
|
+
}
|
|
92928
|
+
}
|
|
92929
|
+
},
|
|
92930
|
+
"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."
|
|
92931
|
+
},
|
|
91895
92932
|
"403": {
|
|
91896
92933
|
"content": {
|
|
91897
92934
|
"application/json": {
|
|
@@ -91910,7 +92947,7 @@
|
|
|
91910
92947
|
}
|
|
91911
92948
|
}
|
|
91912
92949
|
},
|
|
91913
|
-
"description": "`model_not_found` — your organization has no model of that name."
|
|
92950
|
+
"description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
|
|
91914
92951
|
},
|
|
91915
92952
|
"409": {
|
|
91916
92953
|
"content": {
|
|
@@ -91963,42 +93000,42 @@
|
|
|
91963
93000
|
"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)."
|
|
91964
93001
|
}
|
|
91965
93002
|
},
|
|
91966
|
-
"summary": "
|
|
93003
|
+
"summary": "Refresh a model's scores with the latest data",
|
|
91967
93004
|
"tags": [
|
|
91968
93005
|
"Studio"
|
|
91969
93006
|
]
|
|
91970
93007
|
}
|
|
91971
93008
|
},
|
|
91972
|
-
"/v1/studio/
|
|
93009
|
+
"/v1/studio/program-runs": {
|
|
91973
93010
|
"get": {
|
|
91974
|
-
"description": "
|
|
91975
|
-
"operationId": "
|
|
93011
|
+
"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.",
|
|
93012
|
+
"operationId": "listStudioProgramRuns",
|
|
91976
93013
|
"responses": {
|
|
91977
93014
|
"200": {
|
|
91978
93015
|
"content": {
|
|
91979
93016
|
"application/json": {
|
|
91980
93017
|
"schema": {
|
|
91981
|
-
"$ref": "#/components/schemas/
|
|
93018
|
+
"$ref": "#/components/schemas/StudioProgramRunList"
|
|
91982
93019
|
}
|
|
91983
93020
|
}
|
|
91984
93021
|
},
|
|
91985
|
-
"description": "The
|
|
93022
|
+
"description": "The runs"
|
|
91986
93023
|
},
|
|
91987
93024
|
"400": {
|
|
91988
93025
|
"content": {
|
|
91989
93026
|
"application/json": {
|
|
91990
93027
|
"schema": {
|
|
91991
|
-
"$ref": "#/components/schemas/
|
|
93028
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
91992
93029
|
}
|
|
91993
93030
|
}
|
|
91994
93031
|
},
|
|
91995
|
-
"description": "
|
|
93032
|
+
"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)."
|
|
91996
93033
|
},
|
|
91997
93034
|
"401": {
|
|
91998
93035
|
"content": {
|
|
91999
93036
|
"application/json": {
|
|
92000
93037
|
"schema": {
|
|
92001
|
-
"$ref": "#/components/schemas/
|
|
93038
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92002
93039
|
}
|
|
92003
93040
|
}
|
|
92004
93041
|
},
|
|
@@ -92008,83 +93045,83 @@
|
|
|
92008
93045
|
"content": {
|
|
92009
93046
|
"application/json": {
|
|
92010
93047
|
"schema": {
|
|
92011
|
-
"$ref": "#/components/schemas/
|
|
93048
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92012
93049
|
}
|
|
92013
93050
|
}
|
|
92014
93051
|
},
|
|
92015
|
-
"description": "`no_organization` —
|
|
93052
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92016
93053
|
},
|
|
92017
93054
|
"404": {
|
|
92018
93055
|
"content": {
|
|
92019
93056
|
"application/json": {
|
|
92020
93057
|
"schema": {
|
|
92021
|
-
"$ref": "#/components/schemas/
|
|
93058
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92022
93059
|
}
|
|
92023
93060
|
}
|
|
92024
93061
|
},
|
|
92025
|
-
"description": "`
|
|
93062
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92026
93063
|
},
|
|
92027
93064
|
"409": {
|
|
92028
93065
|
"content": {
|
|
92029
93066
|
"application/json": {
|
|
92030
93067
|
"schema": {
|
|
92031
|
-
"$ref": "#/components/schemas/
|
|
93068
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92032
93069
|
}
|
|
92033
93070
|
}
|
|
92034
93071
|
},
|
|
92035
|
-
"description": "`
|
|
93072
|
+
"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."
|
|
92036
93073
|
},
|
|
92037
93074
|
"422": {
|
|
92038
93075
|
"content": {
|
|
92039
93076
|
"application/json": {
|
|
92040
93077
|
"schema": {
|
|
92041
|
-
"$ref": "#/components/schemas/
|
|
93078
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92042
93079
|
}
|
|
92043
93080
|
}
|
|
92044
93081
|
},
|
|
92045
|
-
"description": "
|
|
93082
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92046
93083
|
},
|
|
92047
93084
|
"429": {
|
|
92048
93085
|
"content": {
|
|
92049
93086
|
"application/json": {
|
|
92050
93087
|
"schema": {
|
|
92051
|
-
"$ref": "#/components/schemas/
|
|
93088
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92052
93089
|
}
|
|
92053
93090
|
}
|
|
92054
93091
|
},
|
|
92055
|
-
"description": "`rate_limited` — too many
|
|
93092
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92056
93093
|
},
|
|
92057
93094
|
"503": {
|
|
92058
93095
|
"content": {
|
|
92059
93096
|
"application/json": {
|
|
92060
93097
|
"schema": {
|
|
92061
|
-
"$ref": "#/components/schemas/
|
|
93098
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92062
93099
|
}
|
|
92063
93100
|
}
|
|
92064
93101
|
},
|
|
92065
|
-
"description": "`
|
|
93102
|
+
"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)."
|
|
92066
93103
|
}
|
|
92067
93104
|
},
|
|
92068
|
-
"summary": "
|
|
93105
|
+
"summary": "Your organization's program runs",
|
|
92069
93106
|
"tags": [
|
|
92070
93107
|
"Studio"
|
|
92071
93108
|
]
|
|
92072
93109
|
}
|
|
92073
93110
|
},
|
|
92074
|
-
"/v1/studio/
|
|
93111
|
+
"/v1/studio/program-runs/{runId}": {
|
|
92075
93112
|
"get": {
|
|
92076
|
-
"description": "
|
|
92077
|
-
"operationId": "
|
|
93113
|
+
"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.",
|
|
93114
|
+
"operationId": "getStudioProgramRun",
|
|
92078
93115
|
"parameters": [
|
|
92079
93116
|
{
|
|
92080
|
-
"description": "
|
|
93117
|
+
"description": "The run, as startStudioProgramRun returned it.",
|
|
92081
93118
|
"in": "path",
|
|
92082
|
-
"name": "
|
|
93119
|
+
"name": "runId",
|
|
92083
93120
|
"required": true,
|
|
92084
93121
|
"schema": {
|
|
92085
|
-
"description": "
|
|
92086
|
-
"example": "
|
|
92087
|
-
"pattern": "^
|
|
93122
|
+
"description": "The run, as startStudioProgramRun returned it.",
|
|
93123
|
+
"example": "20261120T080000Z-a1b2",
|
|
93124
|
+
"pattern": "^[0-9A-Za-z-]{1,64}$",
|
|
92088
93125
|
"type": "string"
|
|
92089
93126
|
}
|
|
92090
93127
|
}
|
|
@@ -92094,333 +93131,225 @@
|
|
|
92094
93131
|
"content": {
|
|
92095
93132
|
"application/json": {
|
|
92096
93133
|
"schema": {
|
|
92097
|
-
"$ref": "#/components/schemas/
|
|
93134
|
+
"$ref": "#/components/schemas/StudioProgramRunResult"
|
|
92098
93135
|
}
|
|
92099
93136
|
}
|
|
92100
93137
|
},
|
|
92101
|
-
"description": "The
|
|
93138
|
+
"description": "The run"
|
|
92102
93139
|
},
|
|
92103
93140
|
"400": {
|
|
92104
93141
|
"content": {
|
|
92105
93142
|
"application/json": {
|
|
92106
93143
|
"schema": {
|
|
92107
|
-
"$ref": "#/components/schemas/
|
|
93144
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92108
93145
|
}
|
|
92109
93146
|
}
|
|
92110
93147
|
},
|
|
92111
|
-
"description": "`invalid_request` — not a
|
|
93148
|
+
"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)."
|
|
92112
93149
|
},
|
|
92113
93150
|
"401": {
|
|
92114
93151
|
"content": {
|
|
92115
93152
|
"application/json": {
|
|
92116
93153
|
"schema": {
|
|
92117
|
-
"$ref": "#/components/schemas/
|
|
93154
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92118
93155
|
}
|
|
92119
93156
|
}
|
|
92120
93157
|
},
|
|
92121
93158
|
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92122
93159
|
},
|
|
92123
|
-
"
|
|
92124
|
-
"content": {
|
|
92125
|
-
"application/json": {
|
|
92126
|
-
"schema": {
|
|
92127
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92128
|
-
}
|
|
92129
|
-
}
|
|
92130
|
-
},
|
|
92131
|
-
"description": "`no_organization` — select an organization; `studio_not_enabled` — Studio is not enabled for this account."
|
|
92132
|
-
},
|
|
92133
|
-
"404": {
|
|
92134
|
-
"content": {
|
|
92135
|
-
"application/json": {
|
|
92136
|
-
"schema": {
|
|
92137
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92138
|
-
}
|
|
92139
|
-
}
|
|
92140
|
-
},
|
|
92141
|
-
"description": "`published_model_not_found` — no model of that name is published. The catalog lists what is."
|
|
92142
|
-
},
|
|
92143
|
-
"409": {
|
|
92144
|
-
"content": {
|
|
92145
|
-
"application/json": {
|
|
92146
|
-
"schema": {
|
|
92147
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92148
|
-
}
|
|
92149
|
-
}
|
|
92150
|
-
},
|
|
92151
|
-
"description": "`published_unavailable` — published tables are switched off right now."
|
|
92152
|
-
},
|
|
92153
|
-
"503": {
|
|
92154
|
-
"content": {
|
|
92155
|
-
"application/json": {
|
|
92156
|
-
"schema": {
|
|
92157
|
-
"$ref": "#/components/schemas/StudioError"
|
|
92158
|
-
}
|
|
92159
|
-
}
|
|
92160
|
-
},
|
|
92161
|
-
"description": "`studio_unavailable` — try again in a minute."
|
|
92162
|
-
}
|
|
92163
|
-
},
|
|
92164
|
-
"summary": "A model ModelMatch publishes: its report card",
|
|
92165
|
-
"tags": [
|
|
92166
|
-
"Studio"
|
|
92167
|
-
]
|
|
92168
|
-
}
|
|
92169
|
-
},
|
|
92170
|
-
"/v1/studio/models/{name}": {
|
|
92171
|
-
"delete": {
|
|
92172
|
-
"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.",
|
|
92173
|
-
"operationId": "deleteStudioModel",
|
|
92174
|
-
"parameters": [
|
|
92175
|
-
{
|
|
92176
|
-
"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>`.",
|
|
92177
|
-
"in": "path",
|
|
92178
|
-
"name": "name",
|
|
92179
|
-
"required": true,
|
|
92180
|
-
"schema": {
|
|
92181
|
-
"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>`.",
|
|
92182
|
-
"example": "refi_watch",
|
|
92183
|
-
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92184
|
-
"type": "string"
|
|
92185
|
-
}
|
|
92186
|
-
}
|
|
92187
|
-
],
|
|
92188
|
-
"responses": {
|
|
92189
|
-
"200": {
|
|
92190
|
-
"content": {
|
|
92191
|
-
"application/json": {
|
|
92192
|
-
"schema": {
|
|
92193
|
-
"$ref": "#/components/schemas/StudioModelDeleted"
|
|
92194
|
-
}
|
|
92195
|
-
}
|
|
92196
|
-
},
|
|
92197
|
-
"description": "Deleted"
|
|
92198
|
-
},
|
|
92199
|
-
"400": {
|
|
92200
|
-
"content": {
|
|
92201
|
-
"application/json": {
|
|
92202
|
-
"schema": {
|
|
92203
|
-
"$ref": "#/components/schemas/StudioModelError"
|
|
92204
|
-
}
|
|
92205
|
-
}
|
|
92206
|
-
},
|
|
92207
|
-
"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."
|
|
92208
|
-
},
|
|
92209
|
-
"401": {
|
|
93160
|
+
"402": {
|
|
92210
93161
|
"content": {
|
|
92211
93162
|
"application/json": {
|
|
92212
93163
|
"schema": {
|
|
92213
|
-
"$ref": "#/components/schemas/
|
|
93164
|
+
"$ref": "#/components/schemas/StudioProgramPaymentRequired"
|
|
92214
93165
|
}
|
|
92215
93166
|
}
|
|
92216
93167
|
},
|
|
92217
|
-
"description": "
|
|
93168
|
+
"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)."
|
|
92218
93169
|
},
|
|
92219
93170
|
"403": {
|
|
92220
93171
|
"content": {
|
|
92221
93172
|
"application/json": {
|
|
92222
93173
|
"schema": {
|
|
92223
|
-
"$ref": "#/components/schemas/
|
|
93174
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92224
93175
|
}
|
|
92225
93176
|
}
|
|
92226
93177
|
},
|
|
92227
|
-
"description": "`no_organization` —
|
|
93178
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92228
93179
|
},
|
|
92229
93180
|
"404": {
|
|
92230
93181
|
"content": {
|
|
92231
93182
|
"application/json": {
|
|
92232
93183
|
"schema": {
|
|
92233
|
-
"$ref": "#/components/schemas/
|
|
93184
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92234
93185
|
}
|
|
92235
93186
|
}
|
|
92236
93187
|
},
|
|
92237
|
-
"description": "`
|
|
93188
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92238
93189
|
},
|
|
92239
93190
|
"409": {
|
|
92240
93191
|
"content": {
|
|
92241
93192
|
"application/json": {
|
|
92242
93193
|
"schema": {
|
|
92243
|
-
"$ref": "#/components/schemas/
|
|
93194
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92244
93195
|
}
|
|
92245
93196
|
}
|
|
92246
93197
|
},
|
|
92247
|
-
"description": "`
|
|
93198
|
+
"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."
|
|
92248
93199
|
},
|
|
92249
93200
|
"422": {
|
|
92250
93201
|
"content": {
|
|
92251
93202
|
"application/json": {
|
|
92252
93203
|
"schema": {
|
|
92253
|
-
"$ref": "#/components/schemas/
|
|
93204
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92254
93205
|
}
|
|
92255
93206
|
}
|
|
92256
93207
|
},
|
|
92257
|
-
"description": "
|
|
93208
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92258
93209
|
},
|
|
92259
93210
|
"429": {
|
|
92260
93211
|
"content": {
|
|
92261
93212
|
"application/json": {
|
|
92262
93213
|
"schema": {
|
|
92263
|
-
"$ref": "#/components/schemas/
|
|
93214
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92264
93215
|
}
|
|
92265
93216
|
}
|
|
92266
93217
|
},
|
|
92267
|
-
"description": "`rate_limited` — too many
|
|
93218
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92268
93219
|
},
|
|
92269
93220
|
"503": {
|
|
92270
93221
|
"content": {
|
|
92271
93222
|
"application/json": {
|
|
92272
93223
|
"schema": {
|
|
92273
|
-
"$ref": "#/components/schemas/
|
|
93224
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92274
93225
|
}
|
|
92275
93226
|
}
|
|
92276
93227
|
},
|
|
92277
|
-
"description": "`
|
|
93228
|
+
"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)."
|
|
92278
93229
|
}
|
|
92279
93230
|
},
|
|
92280
|
-
"summary": "
|
|
93231
|
+
"summary": "One program run: its state, progress and tables",
|
|
92281
93232
|
"tags": [
|
|
92282
93233
|
"Studio"
|
|
92283
93234
|
]
|
|
92284
|
-
}
|
|
93235
|
+
}
|
|
93236
|
+
},
|
|
93237
|
+
"/v1/studio/programs": {
|
|
92285
93238
|
"get": {
|
|
92286
|
-
"description": "
|
|
92287
|
-
"operationId": "
|
|
92288
|
-
"parameters": [
|
|
92289
|
-
{
|
|
92290
|
-
"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>`.",
|
|
92291
|
-
"in": "path",
|
|
92292
|
-
"name": "name",
|
|
92293
|
-
"required": true,
|
|
92294
|
-
"schema": {
|
|
92295
|
-
"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>`.",
|
|
92296
|
-
"example": "refi_watch",
|
|
92297
|
-
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
92298
|
-
"type": "string"
|
|
92299
|
-
}
|
|
92300
|
-
}
|
|
92301
|
-
],
|
|
93239
|
+
"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.",
|
|
93240
|
+
"operationId": "listStudioPrograms",
|
|
92302
93241
|
"responses": {
|
|
92303
93242
|
"200": {
|
|
92304
93243
|
"content": {
|
|
92305
93244
|
"application/json": {
|
|
92306
93245
|
"schema": {
|
|
92307
|
-
"$ref": "#/components/schemas/
|
|
93246
|
+
"$ref": "#/components/schemas/StudioProgramList"
|
|
92308
93247
|
}
|
|
92309
93248
|
}
|
|
92310
93249
|
},
|
|
92311
|
-
"description": "The
|
|
93250
|
+
"description": "The programs"
|
|
92312
93251
|
},
|
|
92313
93252
|
"400": {
|
|
92314
93253
|
"content": {
|
|
92315
93254
|
"application/json": {
|
|
92316
93255
|
"schema": {
|
|
92317
|
-
"$ref": "#/components/schemas/
|
|
93256
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92318
93257
|
}
|
|
92319
93258
|
}
|
|
92320
93259
|
},
|
|
92321
|
-
"description": "
|
|
93260
|
+
"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)."
|
|
92322
93261
|
},
|
|
92323
93262
|
"401": {
|
|
92324
93263
|
"content": {
|
|
92325
93264
|
"application/json": {
|
|
92326
93265
|
"schema": {
|
|
92327
|
-
"$ref": "#/components/schemas/
|
|
93266
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92328
93267
|
}
|
|
92329
93268
|
}
|
|
92330
93269
|
},
|
|
92331
93270
|
"description": "`unauthenticated` — sign in, or send a valid credential."
|
|
92332
93271
|
},
|
|
92333
|
-
"402": {
|
|
92334
|
-
"content": {
|
|
92335
|
-
"application/json": {
|
|
92336
|
-
"schema": {
|
|
92337
|
-
"$ref": "#/components/schemas/StudioModelPaymentRequired"
|
|
92338
|
-
}
|
|
92339
|
-
}
|
|
92340
|
-
},
|
|
92341
|
-
"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."
|
|
92342
|
-
},
|
|
92343
93272
|
"403": {
|
|
92344
93273
|
"content": {
|
|
92345
93274
|
"application/json": {
|
|
92346
93275
|
"schema": {
|
|
92347
|
-
"$ref": "#/components/schemas/
|
|
93276
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92348
93277
|
}
|
|
92349
93278
|
}
|
|
92350
93279
|
},
|
|
92351
|
-
"description": "`no_organization` —
|
|
93280
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92352
93281
|
},
|
|
92353
93282
|
"404": {
|
|
92354
93283
|
"content": {
|
|
92355
93284
|
"application/json": {
|
|
92356
93285
|
"schema": {
|
|
92357
|
-
"$ref": "#/components/schemas/
|
|
93286
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92358
93287
|
}
|
|
92359
93288
|
}
|
|
92360
93289
|
},
|
|
92361
|
-
"description": "`
|
|
93290
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92362
93291
|
},
|
|
92363
93292
|
"409": {
|
|
92364
93293
|
"content": {
|
|
92365
93294
|
"application/json": {
|
|
92366
93295
|
"schema": {
|
|
92367
|
-
"$ref": "#/components/schemas/
|
|
93296
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92368
93297
|
}
|
|
92369
93298
|
}
|
|
92370
93299
|
},
|
|
92371
|
-
"description": "`
|
|
93300
|
+
"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."
|
|
92372
93301
|
},
|
|
92373
93302
|
"422": {
|
|
92374
93303
|
"content": {
|
|
92375
93304
|
"application/json": {
|
|
92376
93305
|
"schema": {
|
|
92377
|
-
"$ref": "#/components/schemas/
|
|
93306
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92378
93307
|
}
|
|
92379
93308
|
}
|
|
92380
93309
|
},
|
|
92381
|
-
"description": "
|
|
93310
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92382
93311
|
},
|
|
92383
93312
|
"429": {
|
|
92384
93313
|
"content": {
|
|
92385
93314
|
"application/json": {
|
|
92386
93315
|
"schema": {
|
|
92387
|
-
"$ref": "#/components/schemas/
|
|
93316
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92388
93317
|
}
|
|
92389
93318
|
}
|
|
92390
93319
|
},
|
|
92391
|
-
"description": "`rate_limited` — too many
|
|
93320
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92392
93321
|
},
|
|
92393
93322
|
"503": {
|
|
92394
93323
|
"content": {
|
|
92395
93324
|
"application/json": {
|
|
92396
93325
|
"schema": {
|
|
92397
|
-
"$ref": "#/components/schemas/
|
|
93326
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92398
93327
|
}
|
|
92399
93328
|
}
|
|
92400
93329
|
},
|
|
92401
|
-
"description": "`
|
|
93330
|
+
"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)."
|
|
92402
93331
|
}
|
|
92403
93332
|
},
|
|
92404
|
-
"summary": "
|
|
93333
|
+
"summary": "ModelMatch programs you can run for your own organization",
|
|
92405
93334
|
"tags": [
|
|
92406
93335
|
"Studio"
|
|
92407
93336
|
]
|
|
92408
93337
|
}
|
|
92409
93338
|
},
|
|
92410
|
-
"/v1/studio/
|
|
93339
|
+
"/v1/studio/programs/{program}/run": {
|
|
92411
93340
|
"post": {
|
|
92412
|
-
"description": "
|
|
92413
|
-
"operationId": "
|
|
93341
|
+
"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.",
|
|
93342
|
+
"operationId": "startStudioProgramRun",
|
|
92414
93343
|
"parameters": [
|
|
92415
93344
|
{
|
|
92416
|
-
"description": "The
|
|
93345
|
+
"description": "The program, as listStudioPrograms lists it.",
|
|
92417
93346
|
"in": "path",
|
|
92418
|
-
"name": "
|
|
93347
|
+
"name": "program",
|
|
92419
93348
|
"required": true,
|
|
92420
93349
|
"schema": {
|
|
92421
|
-
"description": "The
|
|
92422
|
-
"example": "
|
|
92423
|
-
"pattern": "^[a-z][a-z0-9_]{
|
|
93350
|
+
"description": "The program, as listStudioPrograms lists it.",
|
|
93351
|
+
"example": "company_retention",
|
|
93352
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
92424
93353
|
"type": "string"
|
|
92425
93354
|
}
|
|
92426
93355
|
}
|
|
@@ -92429,38 +93358,38 @@
|
|
|
92429
93358
|
"content": {
|
|
92430
93359
|
"application/json": {
|
|
92431
93360
|
"schema": {
|
|
92432
|
-
"$ref": "#/components/schemas/
|
|
93361
|
+
"$ref": "#/components/schemas/StudioProgramRunRequest"
|
|
92433
93362
|
}
|
|
92434
93363
|
}
|
|
92435
93364
|
},
|
|
92436
|
-
"required":
|
|
93365
|
+
"required": true
|
|
92437
93366
|
},
|
|
92438
93367
|
"responses": {
|
|
92439
93368
|
"202": {
|
|
92440
93369
|
"content": {
|
|
92441
93370
|
"application/json": {
|
|
92442
93371
|
"schema": {
|
|
92443
|
-
"$ref": "#/components/schemas/
|
|
93372
|
+
"$ref": "#/components/schemas/StudioProgramRunResult"
|
|
92444
93373
|
}
|
|
92445
93374
|
}
|
|
92446
93375
|
},
|
|
92447
|
-
"description": "The
|
|
93376
|
+
"description": "The run has started"
|
|
92448
93377
|
},
|
|
92449
93378
|
"400": {
|
|
92450
93379
|
"content": {
|
|
92451
93380
|
"application/json": {
|
|
92452
93381
|
"schema": {
|
|
92453
|
-
"$ref": "#/components/schemas/
|
|
93382
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92454
93383
|
}
|
|
92455
93384
|
}
|
|
92456
93385
|
},
|
|
92457
|
-
"description": "
|
|
93386
|
+
"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)."
|
|
92458
93387
|
},
|
|
92459
93388
|
"401": {
|
|
92460
93389
|
"content": {
|
|
92461
93390
|
"application/json": {
|
|
92462
93391
|
"schema": {
|
|
92463
|
-
"$ref": "#/components/schemas/
|
|
93392
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92464
93393
|
}
|
|
92465
93394
|
}
|
|
92466
93395
|
},
|
|
@@ -92470,84 +93399,84 @@
|
|
|
92470
93399
|
"content": {
|
|
92471
93400
|
"application/json": {
|
|
92472
93401
|
"schema": {
|
|
92473
|
-
"$ref": "#/components/schemas/
|
|
93402
|
+
"$ref": "#/components/schemas/StudioProgramPaymentRequired"
|
|
92474
93403
|
}
|
|
92475
93404
|
}
|
|
92476
93405
|
},
|
|
92477
|
-
"description": "
|
|
93406
|
+
"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)."
|
|
92478
93407
|
},
|
|
92479
93408
|
"403": {
|
|
92480
93409
|
"content": {
|
|
92481
93410
|
"application/json": {
|
|
92482
93411
|
"schema": {
|
|
92483
|
-
"$ref": "#/components/schemas/
|
|
93412
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92484
93413
|
}
|
|
92485
93414
|
}
|
|
92486
93415
|
},
|
|
92487
|
-
"description": "`no_organization` —
|
|
93416
|
+
"description": "`no_organization` — select an organization. `entitlement_missing` — your organization cannot run ModelMatch programs yet (`details.entitlementKey`): ask your ModelMatch admin."
|
|
92488
93417
|
},
|
|
92489
93418
|
"404": {
|
|
92490
93419
|
"content": {
|
|
92491
93420
|
"application/json": {
|
|
92492
93421
|
"schema": {
|
|
92493
|
-
"$ref": "#/components/schemas/
|
|
93422
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92494
93423
|
}
|
|
92495
93424
|
}
|
|
92496
93425
|
},
|
|
92497
|
-
"description": "`
|
|
93426
|
+
"description": "`program_not_found` — no program of that name that you can run. `run_not_found` — your organization has no run of that id."
|
|
92498
93427
|
},
|
|
92499
93428
|
"409": {
|
|
92500
93429
|
"content": {
|
|
92501
93430
|
"application/json": {
|
|
92502
93431
|
"schema": {
|
|
92503
|
-
"$ref": "#/components/schemas/
|
|
93432
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92504
93433
|
}
|
|
92505
93434
|
}
|
|
92506
93435
|
},
|
|
92507
|
-
"description": "`
|
|
93436
|
+
"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."
|
|
92508
93437
|
},
|
|
92509
93438
|
"422": {
|
|
92510
93439
|
"content": {
|
|
92511
93440
|
"application/json": {
|
|
92512
93441
|
"schema": {
|
|
92513
|
-
"$ref": "#/components/schemas/
|
|
93442
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92514
93443
|
}
|
|
92515
93444
|
}
|
|
92516
93445
|
},
|
|
92517
|
-
"description": "
|
|
93446
|
+
"description": "The service could not do what was asked as given; `error` says why."
|
|
92518
93447
|
},
|
|
92519
93448
|
"429": {
|
|
92520
93449
|
"content": {
|
|
92521
93450
|
"application/json": {
|
|
92522
93451
|
"schema": {
|
|
92523
|
-
"$ref": "#/components/schemas/
|
|
93452
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92524
93453
|
}
|
|
92525
93454
|
}
|
|
92526
93455
|
},
|
|
92527
|
-
"description": "`rate_limited` — too many
|
|
93456
|
+
"description": "`rate_limited` — too many requests from your organization; `busy` — every slot for program runs is taken. Wait `details.retryAfterSeconds`."
|
|
92528
93457
|
},
|
|
92529
93458
|
"502": {
|
|
92530
93459
|
"content": {
|
|
92531
93460
|
"application/json": {
|
|
92532
93461
|
"schema": {
|
|
92533
|
-
"$ref": "#/components/schemas/
|
|
93462
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92534
93463
|
}
|
|
92535
93464
|
}
|
|
92536
93465
|
},
|
|
92537
|
-
"description": "`entitlement_unavailable` — whether your organization can
|
|
93466
|
+
"description": "`entitlement_unavailable` — whether your organization can run programs could not be confirmed right now; nothing was started."
|
|
92538
93467
|
},
|
|
92539
93468
|
"503": {
|
|
92540
93469
|
"content": {
|
|
92541
93470
|
"application/json": {
|
|
92542
93471
|
"schema": {
|
|
92543
|
-
"$ref": "#/components/schemas/
|
|
93472
|
+
"$ref": "#/components/schemas/StudioProgramError"
|
|
92544
93473
|
}
|
|
92545
93474
|
}
|
|
92546
93475
|
},
|
|
92547
|
-
"description": "`
|
|
93476
|
+
"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)."
|
|
92548
93477
|
}
|
|
92549
93478
|
},
|
|
92550
|
-
"summary": "
|
|
93479
|
+
"summary": "Run a ModelMatch program for your own organization",
|
|
92551
93480
|
"tags": [
|
|
92552
93481
|
"Studio"
|
|
92553
93482
|
]
|