@sentinelconnector/cli 0.3.0 → 0.4.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/dist/commands/deployTarget.d.ts +22 -0
- package/dist/commands/deployTarget.js +64 -0
- package/dist/commands/deployTarget.js.map +1 -0
- package/dist/commands/routes.js +3 -1
- package/dist/commands/routes.js.map +1 -1
- package/dist/routes/routes.json +1606 -100
- package/package.json +1 -1
- package/skills/sentinel/SKILL.md +50 -0
package/dist/routes/routes.json
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"path": "/api/v1/account/cli/device/approve",
|
|
91
91
|
"policy": "dashboard_only",
|
|
92
92
|
"summary": "Approve Device",
|
|
93
|
-
"description": "Sign that CLI in as you. Write access needs a step-up code.",
|
|
93
|
+
"description": "Sign that CLI in as you. Write access needs a step-up code. 403 ``plan_feature_unavailable`` when no organisation's plan includes the CLI.",
|
|
94
94
|
"pathParams": [],
|
|
95
95
|
"query": [],
|
|
96
96
|
"body": {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"path": "/api/v1/account/api-tokens",
|
|
171
171
|
"policy": "dashboard_only",
|
|
172
172
|
"summary": "Create Token",
|
|
173
|
-
"description": "Create a token for scripts. Needs a second factor and a step-up code. The secret is in this answer only.",
|
|
173
|
+
"description": "Create a token for scripts. Needs a second factor and a step-up code. The secret is in this answer only. 403 ``plan_feature_unavailable`` when no organisation's plan includes personal tokens.",
|
|
174
174
|
"pathParams": [],
|
|
175
175
|
"query": [],
|
|
176
176
|
"body": {
|
|
@@ -243,6 +243,18 @@
|
|
|
243
243
|
"query": [],
|
|
244
244
|
"body": null
|
|
245
245
|
},
|
|
246
|
+
{
|
|
247
|
+
"group": "account",
|
|
248
|
+
"name": "my-address",
|
|
249
|
+
"method": "GET",
|
|
250
|
+
"path": "/api/v1/account/api-access/my-address",
|
|
251
|
+
"policy": "dashboard_only",
|
|
252
|
+
"summary": "The address the API sees, and where the CLI could reach",
|
|
253
|
+
"description": "For **Add my current address**: the address this request came from and, for each of your organisations, whether the CLI and MCP could reach it from there, or the refusal they would get.",
|
|
254
|
+
"pathParams": [],
|
|
255
|
+
"query": [],
|
|
256
|
+
"body": null
|
|
257
|
+
},
|
|
246
258
|
{
|
|
247
259
|
"group": "account",
|
|
248
260
|
"name": "read-device-request",
|
|
@@ -250,7 +262,7 @@
|
|
|
250
262
|
"path": "/api/v1/account/cli/device",
|
|
251
263
|
"policy": "dashboard_only",
|
|
252
264
|
"summary": "Read Device Request",
|
|
253
|
-
"description": "A pending CLI sign-in by the code the CLI shows, to check before approving it. 404 ``cli_code_not_found`` when unknown, expired or used.",
|
|
265
|
+
"description": "A pending CLI sign-in by the code the CLI shows, to check before approving it. 404 ``cli_code_not_found`` when unknown, expired or used. 403 ``plan_feature_unavailable`` when no organisation's plan includes the CLI (agentic pricing, #2565).",
|
|
254
266
|
"pathParams": [],
|
|
255
267
|
"query": [
|
|
256
268
|
{
|
|
@@ -262,6 +274,25 @@
|
|
|
262
274
|
],
|
|
263
275
|
"body": null
|
|
264
276
|
},
|
|
277
|
+
{
|
|
278
|
+
"group": "account",
|
|
279
|
+
"name": "read-email-preferences",
|
|
280
|
+
"method": "GET",
|
|
281
|
+
"path": "/api/v1/account/email-preferences",
|
|
282
|
+
"policy": "read",
|
|
283
|
+
"summary": "Show which emails you get",
|
|
284
|
+
"description": "Your email choices for your account and each of your organisations.",
|
|
285
|
+
"pathParams": [],
|
|
286
|
+
"query": [
|
|
287
|
+
{
|
|
288
|
+
"name": "coverage",
|
|
289
|
+
"type": "boolean",
|
|
290
|
+
"required": false,
|
|
291
|
+
"description": "For organisation administrators: include which Critical emails nobody, or only you, gets. False answers faster."
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"body": null
|
|
295
|
+
},
|
|
265
296
|
{
|
|
266
297
|
"group": "account",
|
|
267
298
|
"name": "read-sessions",
|
|
@@ -324,6 +355,108 @@
|
|
|
324
355
|
"query": [],
|
|
325
356
|
"body": null
|
|
326
357
|
},
|
|
358
|
+
{
|
|
359
|
+
"group": "account",
|
|
360
|
+
"name": "update-email-pause",
|
|
361
|
+
"method": "PUT",
|
|
362
|
+
"path": "/api/v1/account/email-preferences/pause",
|
|
363
|
+
"policy": "write",
|
|
364
|
+
"summary": "Pause or resume Recommended and Optional emails",
|
|
365
|
+
"description": "Critical and Required emails still go while paused.",
|
|
366
|
+
"pathParams": [],
|
|
367
|
+
"query": [],
|
|
368
|
+
"body": {
|
|
369
|
+
"required": true,
|
|
370
|
+
"fields": [
|
|
371
|
+
{
|
|
372
|
+
"name": "paused",
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"required": true,
|
|
375
|
+
"description": ""
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"group": "account",
|
|
382
|
+
"name": "update-email-preference",
|
|
383
|
+
"method": "PUT",
|
|
384
|
+
"path": "/api/v1/account/email-preferences",
|
|
385
|
+
"policy": "write",
|
|
386
|
+
"summary": "Turn an email or a group of emails on or off",
|
|
387
|
+
"description": "Turning a Critical email off is refused here (422 protective_change): it needs the confirm step in the dashboard.",
|
|
388
|
+
"pathParams": [],
|
|
389
|
+
"query": [],
|
|
390
|
+
"body": {
|
|
391
|
+
"required": true,
|
|
392
|
+
"fields": [
|
|
393
|
+
{
|
|
394
|
+
"name": "key",
|
|
395
|
+
"type": "string",
|
|
396
|
+
"required": true,
|
|
397
|
+
"description": "An email's key, a group as group:critical, group:recommended or group:optional, or all to remove an organisation's own choices."
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "enabled",
|
|
401
|
+
"type": "boolean",
|
|
402
|
+
"required": true,
|
|
403
|
+
"description": "On or off. Null removes the choice at this level, so the level above or the default decides again."
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "organization_id",
|
|
407
|
+
"type": "integer",
|
|
408
|
+
"required": false,
|
|
409
|
+
"description": "One organisation, or null for all organisations and the account."
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "replace_organisations",
|
|
413
|
+
"type": "boolean",
|
|
414
|
+
"required": false,
|
|
415
|
+
"description": "With a group for all organisations: also remove each organisation's own choices for that group."
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"group": "account",
|
|
422
|
+
"name": "update-protective-email-preference",
|
|
423
|
+
"method": "POST",
|
|
424
|
+
"path": "/api/v1/account/email-preferences/protective",
|
|
425
|
+
"policy": "browser",
|
|
426
|
+
"summary": "Turn off a Critical email after confirming",
|
|
427
|
+
"description": "The dashboard's confirm step calls this; the CLI and other products' tokens cannot.",
|
|
428
|
+
"pathParams": [],
|
|
429
|
+
"query": [],
|
|
430
|
+
"body": {
|
|
431
|
+
"required": true,
|
|
432
|
+
"fields": [
|
|
433
|
+
{
|
|
434
|
+
"name": "key",
|
|
435
|
+
"type": "string",
|
|
436
|
+
"required": true,
|
|
437
|
+
"description": "An email's key, a group as group:critical, group:recommended or group:optional, or all to remove an organisation's own choices."
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "enabled",
|
|
441
|
+
"type": "boolean",
|
|
442
|
+
"required": true,
|
|
443
|
+
"description": "On or off. Null removes the choice at this level, so the level above or the default decides again."
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "organization_id",
|
|
447
|
+
"type": "integer",
|
|
448
|
+
"required": false,
|
|
449
|
+
"description": "One organisation, or null for all organisations and the account."
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "replace_organisations",
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"required": false,
|
|
455
|
+
"description": "With a group for all organisations: also remove each organisation's own choices for that group."
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
},
|
|
327
460
|
{
|
|
328
461
|
"group": "account",
|
|
329
462
|
"name": "whoami",
|
|
@@ -1434,6 +1567,25 @@
|
|
|
1434
1567
|
],
|
|
1435
1568
|
"body": null
|
|
1436
1569
|
},
|
|
1570
|
+
{
|
|
1571
|
+
"group": "data-sources",
|
|
1572
|
+
"name": "list-data-sources",
|
|
1573
|
+
"method": "GET",
|
|
1574
|
+
"path": "/api/v1/data-sources",
|
|
1575
|
+
"policy": "read",
|
|
1576
|
+
"summary": "Which outside security lists Sentinel checks your sites against, and whether each is up to date",
|
|
1577
|
+
"description": "One card per source: status, last success, refresh schedule, what it holds and a link to the original. Cached for a minute.",
|
|
1578
|
+
"pathParams": [],
|
|
1579
|
+
"query": [
|
|
1580
|
+
{
|
|
1581
|
+
"name": "organization_id",
|
|
1582
|
+
"type": "integer",
|
|
1583
|
+
"required": false,
|
|
1584
|
+
"description": "Add this organisation's GitHub Dependabot row, when it has one and you may see it; otherwise the answer is the same as without it"
|
|
1585
|
+
}
|
|
1586
|
+
],
|
|
1587
|
+
"body": null
|
|
1588
|
+
},
|
|
1437
1589
|
{
|
|
1438
1590
|
"group": "drupal-core",
|
|
1439
1591
|
"name": "get-versions-by-drupal-core",
|
|
@@ -2253,6 +2405,8 @@
|
|
|
2253
2405
|
"account",
|
|
2254
2406
|
"feature_request",
|
|
2255
2407
|
"patching_integration_request",
|
|
2408
|
+
"patching_job_review",
|
|
2409
|
+
"savings_calculator_walkthrough",
|
|
2256
2410
|
"other"
|
|
2257
2411
|
],
|
|
2258
2412
|
"description": ""
|
|
@@ -3396,6 +3550,112 @@
|
|
|
3396
3550
|
]
|
|
3397
3551
|
}
|
|
3398
3552
|
},
|
|
3553
|
+
{
|
|
3554
|
+
"group": "organizations",
|
|
3555
|
+
"name": "accept-dpa",
|
|
3556
|
+
"method": "POST",
|
|
3557
|
+
"path": "/api/v1/organizations/{organization_id}/dpa/acceptances",
|
|
3558
|
+
"policy": "dashboard_only",
|
|
3559
|
+
"summary": "Accept Dpa",
|
|
3560
|
+
"description": "",
|
|
3561
|
+
"pathParams": [
|
|
3562
|
+
"organization_id"
|
|
3563
|
+
],
|
|
3564
|
+
"query": [],
|
|
3565
|
+
"body": {
|
|
3566
|
+
"required": true,
|
|
3567
|
+
"fields": [
|
|
3568
|
+
{
|
|
3569
|
+
"name": "version_id",
|
|
3570
|
+
"type": "integer",
|
|
3571
|
+
"required": true,
|
|
3572
|
+
"description": ""
|
|
3573
|
+
},
|
|
3574
|
+
{
|
|
3575
|
+
"name": "text_hash",
|
|
3576
|
+
"type": "string",
|
|
3577
|
+
"required": true,
|
|
3578
|
+
"description": ""
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
"name": "scrolled_to_end",
|
|
3582
|
+
"type": "boolean",
|
|
3583
|
+
"required": true,
|
|
3584
|
+
"description": ""
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"name": "checkbox_ticked",
|
|
3588
|
+
"type": "boolean",
|
|
3589
|
+
"required": true,
|
|
3590
|
+
"description": ""
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"name": "confirmation_value",
|
|
3594
|
+
"type": "string",
|
|
3595
|
+
"required": true,
|
|
3596
|
+
"description": ""
|
|
3597
|
+
},
|
|
3598
|
+
{
|
|
3599
|
+
"name": "legal_entity_name",
|
|
3600
|
+
"type": "string",
|
|
3601
|
+
"required": true,
|
|
3602
|
+
"description": ""
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
"name": "business_address",
|
|
3606
|
+
"type": "string",
|
|
3607
|
+
"required": true,
|
|
3608
|
+
"description": ""
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
"name": "country",
|
|
3612
|
+
"type": "string",
|
|
3613
|
+
"required": true,
|
|
3614
|
+
"description": ""
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
"name": "customer_role",
|
|
3618
|
+
"type": "string",
|
|
3619
|
+
"required": true,
|
|
3620
|
+
"values": [
|
|
3621
|
+
"controller",
|
|
3622
|
+
"processor"
|
|
3623
|
+
],
|
|
3624
|
+
"description": ""
|
|
3625
|
+
}
|
|
3626
|
+
]
|
|
3627
|
+
}
|
|
3628
|
+
},
|
|
3629
|
+
{
|
|
3630
|
+
"group": "organizations",
|
|
3631
|
+
"name": "add-api-access-address",
|
|
3632
|
+
"method": "POST",
|
|
3633
|
+
"path": "/api/v1/organizations/{organization_id}/api-access/addresses",
|
|
3634
|
+
"policy": "dashboard_only",
|
|
3635
|
+
"summary": "Approve an address for the CLI and MCP",
|
|
3636
|
+
"description": "Organisation admins only, with a fresh two-factor code. One public address, an IPv4 range up to /24 or an IPv6 range up to /56. 422 with ``address_invalid``, ``address_not_public``, ``address_range_too_wide`` or ``address_limit_reached``; 409 ``address_duplicate``.",
|
|
3637
|
+
"pathParams": [
|
|
3638
|
+
"organization_id"
|
|
3639
|
+
],
|
|
3640
|
+
"query": [],
|
|
3641
|
+
"body": {
|
|
3642
|
+
"required": true,
|
|
3643
|
+
"fields": [
|
|
3644
|
+
{
|
|
3645
|
+
"name": "address",
|
|
3646
|
+
"type": "string",
|
|
3647
|
+
"required": true,
|
|
3648
|
+
"description": "One public IPv4 or IPv6 address, or a range up to /24 (IPv4) or /56 (IPv6)."
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
"name": "label",
|
|
3652
|
+
"type": "string",
|
|
3653
|
+
"required": false,
|
|
3654
|
+
"description": ""
|
|
3655
|
+
}
|
|
3656
|
+
]
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3399
3659
|
{
|
|
3400
3660
|
"group": "organizations",
|
|
3401
3661
|
"name": "add-user-to-organization",
|
|
@@ -3538,12 +3798,12 @@
|
|
|
3538
3798
|
},
|
|
3539
3799
|
{
|
|
3540
3800
|
"group": "organizations",
|
|
3541
|
-
"name": "change-
|
|
3542
|
-
"method": "
|
|
3543
|
-
"path": "/api/v1/organizations/{organization_id}/billing/
|
|
3544
|
-
"policy": "
|
|
3545
|
-
"summary": "Change
|
|
3546
|
-
"description": "
|
|
3801
|
+
"name": "change-auto-recharge",
|
|
3802
|
+
"method": "PUT",
|
|
3803
|
+
"path": "/api/v1/organizations/{organization_id}/billing/ai-credit/auto-recharge",
|
|
3804
|
+
"policy": "dashboard_only",
|
|
3805
|
+
"summary": "Change Auto Recharge",
|
|
3806
|
+
"description": "Turn auto recharge on or change it (with the digest of the terms shown), or turn it off.",
|
|
3547
3807
|
"pathParams": [
|
|
3548
3808
|
"organization_id"
|
|
3549
3809
|
],
|
|
@@ -3552,30 +3812,39 @@
|
|
|
3552
3812
|
"required": true,
|
|
3553
3813
|
"fields": [
|
|
3554
3814
|
{
|
|
3555
|
-
"name": "
|
|
3556
|
-
"type": "
|
|
3815
|
+
"name": "enabled",
|
|
3816
|
+
"type": "boolean",
|
|
3557
3817
|
"required": true,
|
|
3558
|
-
"values": [
|
|
3559
|
-
"solo",
|
|
3560
|
-
"studio",
|
|
3561
|
-
"agency"
|
|
3562
|
-
],
|
|
3563
3818
|
"description": ""
|
|
3564
3819
|
},
|
|
3565
3820
|
{
|
|
3566
|
-
"name": "
|
|
3821
|
+
"name": "threshold",
|
|
3822
|
+
"type": "value",
|
|
3823
|
+
"required": false,
|
|
3824
|
+
"description": ""
|
|
3825
|
+
},
|
|
3826
|
+
{
|
|
3827
|
+
"name": "pack",
|
|
3567
3828
|
"type": "string",
|
|
3568
|
-
"required":
|
|
3829
|
+
"required": false,
|
|
3569
3830
|
"values": [
|
|
3570
|
-
"
|
|
3571
|
-
"
|
|
3831
|
+
"5",
|
|
3832
|
+
"10",
|
|
3833
|
+
"20",
|
|
3834
|
+
"50"
|
|
3572
3835
|
],
|
|
3573
3836
|
"description": ""
|
|
3574
3837
|
},
|
|
3575
3838
|
{
|
|
3576
|
-
"name": "
|
|
3577
|
-
"type": "
|
|
3578
|
-
"required":
|
|
3839
|
+
"name": "monthly_ceiling",
|
|
3840
|
+
"type": "value",
|
|
3841
|
+
"required": false,
|
|
3842
|
+
"description": ""
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"name": "terms_sha256",
|
|
3846
|
+
"type": "string",
|
|
3847
|
+
"required": false,
|
|
3579
3848
|
"description": ""
|
|
3580
3849
|
}
|
|
3581
3850
|
]
|
|
@@ -3583,12 +3852,12 @@
|
|
|
3583
3852
|
},
|
|
3584
3853
|
{
|
|
3585
3854
|
"group": "organizations",
|
|
3586
|
-
"name": "
|
|
3855
|
+
"name": "change-plan",
|
|
3587
3856
|
"method": "POST",
|
|
3588
|
-
"path": "/api/v1/organizations/{organization_id}/billing/
|
|
3589
|
-
"policy": "
|
|
3590
|
-
"summary": "
|
|
3591
|
-
"description": "
|
|
3857
|
+
"path": "/api/v1/organizations/{organization_id}/billing/plan-change",
|
|
3858
|
+
"policy": "write",
|
|
3859
|
+
"summary": "Change Plan",
|
|
3860
|
+
"description": "Upgrade now, charging the difference, or downgrade at period end.",
|
|
3592
3861
|
"pathParams": [
|
|
3593
3862
|
"organization_id"
|
|
3594
3863
|
],
|
|
@@ -3628,13 +3897,83 @@
|
|
|
3628
3897
|
},
|
|
3629
3898
|
{
|
|
3630
3899
|
"group": "organizations",
|
|
3631
|
-
"name": "
|
|
3900
|
+
"name": "confirm-ai-credit",
|
|
3632
3901
|
"method": "POST",
|
|
3633
|
-
"path": "/api/v1/organizations/",
|
|
3634
|
-
"policy": "
|
|
3635
|
-
"summary": "
|
|
3636
|
-
"description": "
|
|
3637
|
-
"pathParams": [
|
|
3902
|
+
"path": "/api/v1/organizations/{organization_id}/billing/ai-credit/quotes/{purchase_id}/confirm",
|
|
3903
|
+
"policy": "dashboard_only",
|
|
3904
|
+
"summary": "Confirm Ai Credit",
|
|
3905
|
+
"description": "Pay for a quoted pack with the saved card. The credit is added once the payment succeeds; repeating the call changes nothing.",
|
|
3906
|
+
"pathParams": [
|
|
3907
|
+
"purchase_id",
|
|
3908
|
+
"organization_id"
|
|
3909
|
+
],
|
|
3910
|
+
"query": [],
|
|
3911
|
+
"body": {
|
|
3912
|
+
"required": true,
|
|
3913
|
+
"fields": [
|
|
3914
|
+
{
|
|
3915
|
+
"name": "accepted",
|
|
3916
|
+
"type": "boolean",
|
|
3917
|
+
"required": true,
|
|
3918
|
+
"description": ""
|
|
3919
|
+
}
|
|
3920
|
+
]
|
|
3921
|
+
}
|
|
3922
|
+
},
|
|
3923
|
+
{
|
|
3924
|
+
"group": "organizations",
|
|
3925
|
+
"name": "create-checkout-session",
|
|
3926
|
+
"method": "POST",
|
|
3927
|
+
"path": "/api/v1/organizations/{organization_id}/billing/checkout-session",
|
|
3928
|
+
"policy": "browser",
|
|
3929
|
+
"summary": "Create Checkout Session",
|
|
3930
|
+
"description": "Start a paid subscription on Stripe Checkout and record the consent.",
|
|
3931
|
+
"pathParams": [
|
|
3932
|
+
"organization_id"
|
|
3933
|
+
],
|
|
3934
|
+
"query": [],
|
|
3935
|
+
"body": {
|
|
3936
|
+
"required": true,
|
|
3937
|
+
"fields": [
|
|
3938
|
+
{
|
|
3939
|
+
"name": "plan",
|
|
3940
|
+
"type": "string",
|
|
3941
|
+
"required": true,
|
|
3942
|
+
"values": [
|
|
3943
|
+
"solo",
|
|
3944
|
+
"studio",
|
|
3945
|
+
"agency"
|
|
3946
|
+
],
|
|
3947
|
+
"description": ""
|
|
3948
|
+
},
|
|
3949
|
+
{
|
|
3950
|
+
"name": "interval",
|
|
3951
|
+
"type": "string",
|
|
3952
|
+
"required": true,
|
|
3953
|
+
"values": [
|
|
3954
|
+
"month",
|
|
3955
|
+
"year"
|
|
3956
|
+
],
|
|
3957
|
+
"description": ""
|
|
3958
|
+
},
|
|
3959
|
+
{
|
|
3960
|
+
"name": "renewal_consent",
|
|
3961
|
+
"type": "object",
|
|
3962
|
+
"required": true,
|
|
3963
|
+
"description": ""
|
|
3964
|
+
}
|
|
3965
|
+
]
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3968
|
+
{
|
|
3969
|
+
"group": "organizations",
|
|
3970
|
+
"name": "create-organization",
|
|
3971
|
+
"method": "POST",
|
|
3972
|
+
"path": "/api/v1/organizations/",
|
|
3973
|
+
"policy": "write",
|
|
3974
|
+
"summary": "Create Organization",
|
|
3975
|
+
"description": "Create an organisation owned by the signed-in account. The owner is always the caller; ``created_by`` is a label only a platform administrator may set. Plan allowance, ownership and the first admin membership are decided in ``app/services/organization_creation.py`` and commit together. A retry with the same ``Idempotency-Key`` within 24 hours returns the organisation the first request created.",
|
|
3976
|
+
"pathParams": [],
|
|
3638
3977
|
"query": [],
|
|
3639
3978
|
"body": {
|
|
3640
3979
|
"required": true,
|
|
@@ -3840,6 +4179,21 @@
|
|
|
3840
4179
|
],
|
|
3841
4180
|
"body": null
|
|
3842
4181
|
},
|
|
4182
|
+
{
|
|
4183
|
+
"group": "organizations",
|
|
4184
|
+
"name": "dpa-acceptance-pdf",
|
|
4185
|
+
"method": "GET",
|
|
4186
|
+
"path": "/api/v1/organizations/{organization_id}/dpa/acceptances/{acceptance_id}/pdf",
|
|
4187
|
+
"policy": "read",
|
|
4188
|
+
"summary": "Dpa Acceptance Pdf",
|
|
4189
|
+
"description": "The accepted text with who, when and the stated details.",
|
|
4190
|
+
"pathParams": [
|
|
4191
|
+
"organization_id",
|
|
4192
|
+
"acceptance_id"
|
|
4193
|
+
],
|
|
4194
|
+
"query": [],
|
|
4195
|
+
"body": null
|
|
4196
|
+
},
|
|
3843
4197
|
{
|
|
3844
4198
|
"group": "organizations",
|
|
3845
4199
|
"name": "get-latest-organization-assessment",
|
|
@@ -3933,6 +4287,20 @@
|
|
|
3933
4287
|
],
|
|
3934
4288
|
"body": null
|
|
3935
4289
|
},
|
|
4290
|
+
{
|
|
4291
|
+
"group": "organizations",
|
|
4292
|
+
"name": "get-overview",
|
|
4293
|
+
"method": "GET",
|
|
4294
|
+
"path": "/api/v1/organizations/{organization_id}/site-setup",
|
|
4295
|
+
"policy": "dashboard_only",
|
|
4296
|
+
"summary": "Sites still being set up in an organisation",
|
|
4297
|
+
"description": "The sites in this organisation whose setup is not finished, whether you hid the dashboard card, and whether Pay as you go has room for another site.",
|
|
4298
|
+
"pathParams": [
|
|
4299
|
+
"organization_id"
|
|
4300
|
+
],
|
|
4301
|
+
"query": [],
|
|
4302
|
+
"body": null
|
|
4303
|
+
},
|
|
3936
4304
|
{
|
|
3937
4305
|
"group": "organizations",
|
|
3938
4306
|
"name": "get-ticket-reference",
|
|
@@ -3984,6 +4352,20 @@
|
|
|
3984
4352
|
]
|
|
3985
4353
|
}
|
|
3986
4354
|
},
|
|
4355
|
+
{
|
|
4356
|
+
"group": "organizations",
|
|
4357
|
+
"name": "list-dpa-acceptances",
|
|
4358
|
+
"method": "GET",
|
|
4359
|
+
"path": "/api/v1/organizations/{organization_id}/dpa/acceptances",
|
|
4360
|
+
"policy": "read",
|
|
4361
|
+
"summary": "List Dpa Acceptances",
|
|
4362
|
+
"description": "Every acceptance of the organisation, newest first. Administrators.",
|
|
4363
|
+
"pathParams": [
|
|
4364
|
+
"organization_id"
|
|
4365
|
+
],
|
|
4366
|
+
"query": [],
|
|
4367
|
+
"body": null
|
|
4368
|
+
},
|
|
3987
4369
|
{
|
|
3988
4370
|
"group": "organizations",
|
|
3989
4371
|
"name": "list-invitations",
|
|
@@ -4239,6 +4621,20 @@
|
|
|
4239
4621
|
],
|
|
4240
4622
|
"body": null
|
|
4241
4623
|
},
|
|
4624
|
+
{
|
|
4625
|
+
"group": "organizations",
|
|
4626
|
+
"name": "organization-dpa",
|
|
4627
|
+
"method": "GET",
|
|
4628
|
+
"path": "/api/v1/organizations/{organization_id}/dpa",
|
|
4629
|
+
"policy": "read",
|
|
4630
|
+
"summary": "Organization Dpa",
|
|
4631
|
+
"description": "Whether the organisation has accepted, and whether new sites are held.",
|
|
4632
|
+
"pathParams": [
|
|
4633
|
+
"organization_id"
|
|
4634
|
+
],
|
|
4635
|
+
"query": [],
|
|
4636
|
+
"body": null
|
|
4637
|
+
},
|
|
4242
4638
|
{
|
|
4243
4639
|
"group": "organizations",
|
|
4244
4640
|
"name": "payg-activation-quote",
|
|
@@ -4552,6 +4948,48 @@
|
|
|
4552
4948
|
"query": [],
|
|
4553
4949
|
"body": null
|
|
4554
4950
|
},
|
|
4951
|
+
{
|
|
4952
|
+
"group": "organizations",
|
|
4953
|
+
"name": "preview-auto-recharge",
|
|
4954
|
+
"method": "POST",
|
|
4955
|
+
"path": "/api/v1/organizations/{organization_id}/billing/ai-credit/auto-recharge/preview",
|
|
4956
|
+
"policy": "dashboard_only",
|
|
4957
|
+
"summary": "Preview Auto Recharge",
|
|
4958
|
+
"description": "The auto recharge terms for these settings, with each purchase's tax. Nothing is stored or charged.",
|
|
4959
|
+
"pathParams": [
|
|
4960
|
+
"organization_id"
|
|
4961
|
+
],
|
|
4962
|
+
"query": [],
|
|
4963
|
+
"body": {
|
|
4964
|
+
"required": true,
|
|
4965
|
+
"fields": [
|
|
4966
|
+
{
|
|
4967
|
+
"name": "threshold",
|
|
4968
|
+
"type": "value",
|
|
4969
|
+
"required": true,
|
|
4970
|
+
"description": ""
|
|
4971
|
+
},
|
|
4972
|
+
{
|
|
4973
|
+
"name": "pack",
|
|
4974
|
+
"type": "string",
|
|
4975
|
+
"required": true,
|
|
4976
|
+
"values": [
|
|
4977
|
+
"5",
|
|
4978
|
+
"10",
|
|
4979
|
+
"20",
|
|
4980
|
+
"50"
|
|
4981
|
+
],
|
|
4982
|
+
"description": ""
|
|
4983
|
+
},
|
|
4984
|
+
{
|
|
4985
|
+
"name": "monthly_ceiling",
|
|
4986
|
+
"type": "value",
|
|
4987
|
+
"required": true,
|
|
4988
|
+
"description": ""
|
|
4989
|
+
}
|
|
4990
|
+
]
|
|
4991
|
+
}
|
|
4992
|
+
},
|
|
4555
4993
|
{
|
|
4556
4994
|
"group": "organizations",
|
|
4557
4995
|
"name": "preview-patching-change",
|
|
@@ -4571,6 +5009,10 @@
|
|
|
4571
5009
|
"name": "plan",
|
|
4572
5010
|
"type": "string",
|
|
4573
5011
|
"required": false,
|
|
5012
|
+
"values": [
|
|
5013
|
+
"patching",
|
|
5014
|
+
"payg_patching"
|
|
5015
|
+
],
|
|
4574
5016
|
"description": ""
|
|
4575
5017
|
},
|
|
4576
5018
|
{
|
|
@@ -4691,6 +5133,132 @@
|
|
|
4691
5133
|
]
|
|
4692
5134
|
}
|
|
4693
5135
|
},
|
|
5136
|
+
{
|
|
5137
|
+
"group": "organizations",
|
|
5138
|
+
"name": "put-card",
|
|
5139
|
+
"method": "PUT",
|
|
5140
|
+
"path": "/api/v1/organizations/{organization_id}/site-setup/card",
|
|
5141
|
+
"policy": "dashboard_only",
|
|
5142
|
+
"summary": "Hide or show the Finish setup card",
|
|
5143
|
+
"description": "Hide the dashboard \"Finish setup\" card for yourself in this organisation, or show it again. The sidebar link stays.",
|
|
5144
|
+
"pathParams": [
|
|
5145
|
+
"organization_id"
|
|
5146
|
+
],
|
|
5147
|
+
"query": [],
|
|
5148
|
+
"body": {
|
|
5149
|
+
"required": true,
|
|
5150
|
+
"fields": [
|
|
5151
|
+
{
|
|
5152
|
+
"name": "hidden",
|
|
5153
|
+
"type": "boolean",
|
|
5154
|
+
"required": true,
|
|
5155
|
+
"description": ""
|
|
5156
|
+
}
|
|
5157
|
+
]
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
"group": "organizations",
|
|
5162
|
+
"name": "quiet-week-get",
|
|
5163
|
+
"method": "GET",
|
|
5164
|
+
"path": "/api/v1/organizations/{organization_id}/quiet-week",
|
|
5165
|
+
"policy": "read",
|
|
5166
|
+
"summary": "Read the All quiet this week email settings",
|
|
5167
|
+
"description": "",
|
|
5168
|
+
"pathParams": [
|
|
5169
|
+
"organization_id"
|
|
5170
|
+
],
|
|
5171
|
+
"query": [],
|
|
5172
|
+
"body": null
|
|
5173
|
+
},
|
|
5174
|
+
{
|
|
5175
|
+
"group": "organizations",
|
|
5176
|
+
"name": "quiet-week-put",
|
|
5177
|
+
"method": "PUT",
|
|
5178
|
+
"path": "/api/v1/organizations/{organization_id}/quiet-week",
|
|
5179
|
+
"policy": "write",
|
|
5180
|
+
"summary": "Change the All quiet this week email settings",
|
|
5181
|
+
"description": "",
|
|
5182
|
+
"pathParams": [
|
|
5183
|
+
"organization_id"
|
|
5184
|
+
],
|
|
5185
|
+
"query": [],
|
|
5186
|
+
"body": {
|
|
5187
|
+
"required": true,
|
|
5188
|
+
"fields": [
|
|
5189
|
+
{
|
|
5190
|
+
"name": "enabled",
|
|
5191
|
+
"type": "boolean",
|
|
5192
|
+
"required": false,
|
|
5193
|
+
"description": ""
|
|
5194
|
+
},
|
|
5195
|
+
{
|
|
5196
|
+
"name": "receive_email",
|
|
5197
|
+
"type": "boolean",
|
|
5198
|
+
"required": false,
|
|
5199
|
+
"description": ""
|
|
5200
|
+
}
|
|
5201
|
+
]
|
|
5202
|
+
}
|
|
5203
|
+
},
|
|
5204
|
+
{
|
|
5205
|
+
"group": "organizations",
|
|
5206
|
+
"name": "quote-ai-credit",
|
|
5207
|
+
"method": "POST",
|
|
5208
|
+
"path": "/api/v1/organizations/{organization_id}/billing/ai-credit/quotes",
|
|
5209
|
+
"policy": "dashboard_only",
|
|
5210
|
+
"summary": "Quote Ai Credit",
|
|
5211
|
+
"description": "Price one pack with its tax and the purchase terms. Nothing is charged; the quote lasts five minutes.",
|
|
5212
|
+
"pathParams": [
|
|
5213
|
+
"organization_id"
|
|
5214
|
+
],
|
|
5215
|
+
"query": [],
|
|
5216
|
+
"body": {
|
|
5217
|
+
"required": true,
|
|
5218
|
+
"fields": [
|
|
5219
|
+
{
|
|
5220
|
+
"name": "pack",
|
|
5221
|
+
"type": "string",
|
|
5222
|
+
"required": true,
|
|
5223
|
+
"values": [
|
|
5224
|
+
"5",
|
|
5225
|
+
"10",
|
|
5226
|
+
"20",
|
|
5227
|
+
"50"
|
|
5228
|
+
],
|
|
5229
|
+
"description": ""
|
|
5230
|
+
}
|
|
5231
|
+
]
|
|
5232
|
+
}
|
|
5233
|
+
},
|
|
5234
|
+
{
|
|
5235
|
+
"group": "organizations",
|
|
5236
|
+
"name": "read-ai-credit",
|
|
5237
|
+
"method": "GET",
|
|
5238
|
+
"path": "/api/v1/organizations/{organization_id}/billing/ai-credit",
|
|
5239
|
+
"policy": "read",
|
|
5240
|
+
"summary": "Read Ai Credit",
|
|
5241
|
+
"description": "The billing account's AI credit: balance, packs, limits, auto recharge and recent purchases.",
|
|
5242
|
+
"pathParams": [
|
|
5243
|
+
"organization_id"
|
|
5244
|
+
],
|
|
5245
|
+
"query": [],
|
|
5246
|
+
"body": null
|
|
5247
|
+
},
|
|
5248
|
+
{
|
|
5249
|
+
"group": "organizations",
|
|
5250
|
+
"name": "read-api-access",
|
|
5251
|
+
"method": "GET",
|
|
5252
|
+
"path": "/api/v1/organizations/{organization_id}/api-access",
|
|
5253
|
+
"policy": "read",
|
|
5254
|
+
"summary": "API access (CLI and MCP) for an organisation",
|
|
5255
|
+
"description": "Whether the CLI and MCP are turned on for this organisation, and the addresses they may be used from. Any member may read it.",
|
|
5256
|
+
"pathParams": [
|
|
5257
|
+
"organization_id"
|
|
5258
|
+
],
|
|
5259
|
+
"query": [],
|
|
5260
|
+
"body": null
|
|
5261
|
+
},
|
|
4694
5262
|
{
|
|
4695
5263
|
"group": "organizations",
|
|
4696
5264
|
"name": "read-capabilities",
|
|
@@ -4894,7 +5462,8 @@
|
|
|
4894
5462
|
"report:write",
|
|
4895
5463
|
"report:export",
|
|
4896
5464
|
"report:issue",
|
|
4897
|
-
"report:brand"
|
|
5465
|
+
"report:brand",
|
|
5466
|
+
"api_access:manage"
|
|
4898
5467
|
],
|
|
4899
5468
|
"description": "Only organisations where the caller holds this permission, for example `site:create` for the add-site form."
|
|
4900
5469
|
},
|
|
@@ -4938,11 +5507,11 @@
|
|
|
4938
5507
|
},
|
|
4939
5508
|
{
|
|
4940
5509
|
"group": "organizations",
|
|
4941
|
-
"name": "read-
|
|
5510
|
+
"name": "read-summary",
|
|
4942
5511
|
"method": "GET",
|
|
4943
|
-
"path": "/api/v1/organizations/{organization_id}/
|
|
5512
|
+
"path": "/api/v1/organizations/{organization_id}/billing/summary",
|
|
4944
5513
|
"policy": "read",
|
|
4945
|
-
"summary": "Read
|
|
5514
|
+
"summary": "Read Summary",
|
|
4946
5515
|
"description": "",
|
|
4947
5516
|
"pathParams": [
|
|
4948
5517
|
"organization_id"
|
|
@@ -4952,14 +5521,15 @@
|
|
|
4952
5521
|
},
|
|
4953
5522
|
{
|
|
4954
5523
|
"group": "organizations",
|
|
4955
|
-
"name": "
|
|
4956
|
-
"method": "
|
|
4957
|
-
"path": "/api/v1/organizations/{organization_id}/
|
|
4958
|
-
"policy": "
|
|
4959
|
-
"summary": "
|
|
4960
|
-
"description": "",
|
|
5524
|
+
"name": "remove-api-access-address",
|
|
5525
|
+
"method": "DELETE",
|
|
5526
|
+
"path": "/api/v1/organizations/{organization_id}/api-access/addresses/{address_id}",
|
|
5527
|
+
"policy": "dashboard_only",
|
|
5528
|
+
"summary": "Remove an approved address",
|
|
5529
|
+
"description": "Organisation admins only, with a fresh two-factor code. Removing the last address turns API access off.",
|
|
4961
5530
|
"pathParams": [
|
|
4962
|
-
"organization_id"
|
|
5531
|
+
"organization_id",
|
|
5532
|
+
"address_id"
|
|
4963
5533
|
],
|
|
4964
5534
|
"query": [],
|
|
4965
5535
|
"body": null
|
|
@@ -5272,6 +5842,10 @@
|
|
|
5272
5842
|
"name": "plan",
|
|
5273
5843
|
"type": "string",
|
|
5274
5844
|
"required": true,
|
|
5845
|
+
"values": [
|
|
5846
|
+
"patching",
|
|
5847
|
+
"payg_patching"
|
|
5848
|
+
],
|
|
5275
5849
|
"description": ""
|
|
5276
5850
|
},
|
|
5277
5851
|
{
|
|
@@ -5398,6 +5972,30 @@
|
|
|
5398
5972
|
]
|
|
5399
5973
|
}
|
|
5400
5974
|
},
|
|
5975
|
+
{
|
|
5976
|
+
"group": "organizations",
|
|
5977
|
+
"name": "update-api-access",
|
|
5978
|
+
"method": "PUT",
|
|
5979
|
+
"path": "/api/v1/organizations/{organization_id}/api-access",
|
|
5980
|
+
"policy": "dashboard_only",
|
|
5981
|
+
"summary": "Turn API access (CLI and MCP) on or off",
|
|
5982
|
+
"description": "Organisation admins only, with a fresh two-factor code. Turning on needs a plan that includes the CLI (403 ``plan_feature_unavailable``) and at least one approved address (422 ``address_required``). Turning off always works.",
|
|
5983
|
+
"pathParams": [
|
|
5984
|
+
"organization_id"
|
|
5985
|
+
],
|
|
5986
|
+
"query": [],
|
|
5987
|
+
"body": {
|
|
5988
|
+
"required": true,
|
|
5989
|
+
"fields": [
|
|
5990
|
+
{
|
|
5991
|
+
"name": "enabled",
|
|
5992
|
+
"type": "boolean",
|
|
5993
|
+
"required": true,
|
|
5994
|
+
"description": ""
|
|
5995
|
+
}
|
|
5996
|
+
]
|
|
5997
|
+
}
|
|
5998
|
+
},
|
|
5401
5999
|
{
|
|
5402
6000
|
"group": "organizations",
|
|
5403
6001
|
"name": "update-organization",
|
|
@@ -5618,36 +6216,6 @@
|
|
|
5618
6216
|
]
|
|
5619
6217
|
}
|
|
5620
6218
|
},
|
|
5621
|
-
{
|
|
5622
|
-
"group": "organizations",
|
|
5623
|
-
"name": "update-settings",
|
|
5624
|
-
"method": "PUT",
|
|
5625
|
-
"path": "/api/v1/organizations/{organization_id}/weekly-summary",
|
|
5626
|
-
"policy": "write",
|
|
5627
|
-
"summary": "Update Settings",
|
|
5628
|
-
"description": "",
|
|
5629
|
-
"pathParams": [
|
|
5630
|
-
"organization_id"
|
|
5631
|
-
],
|
|
5632
|
-
"query": [],
|
|
5633
|
-
"body": {
|
|
5634
|
-
"required": true,
|
|
5635
|
-
"fields": [
|
|
5636
|
-
{
|
|
5637
|
-
"name": "enabled",
|
|
5638
|
-
"type": "boolean",
|
|
5639
|
-
"required": false,
|
|
5640
|
-
"description": ""
|
|
5641
|
-
},
|
|
5642
|
-
{
|
|
5643
|
-
"name": "receive_weekly",
|
|
5644
|
-
"type": "boolean",
|
|
5645
|
-
"required": false,
|
|
5646
|
-
"description": ""
|
|
5647
|
-
}
|
|
5648
|
-
]
|
|
5649
|
-
}
|
|
5650
|
-
},
|
|
5651
6219
|
{
|
|
5652
6220
|
"group": "organizations",
|
|
5653
6221
|
"name": "update-ticket-system",
|
|
@@ -5817,6 +6385,72 @@
|
|
|
5817
6385
|
]
|
|
5818
6386
|
}
|
|
5819
6387
|
},
|
|
6388
|
+
{
|
|
6389
|
+
"group": "organizations",
|
|
6390
|
+
"name": "weekly-summary-get",
|
|
6391
|
+
"method": "GET",
|
|
6392
|
+
"path": "/api/v1/organizations/{organization_id}/weekly-summary",
|
|
6393
|
+
"policy": "read",
|
|
6394
|
+
"summary": "Read Settings",
|
|
6395
|
+
"description": "",
|
|
6396
|
+
"pathParams": [
|
|
6397
|
+
"organization_id"
|
|
6398
|
+
],
|
|
6399
|
+
"query": [],
|
|
6400
|
+
"body": null
|
|
6401
|
+
},
|
|
6402
|
+
{
|
|
6403
|
+
"group": "organizations",
|
|
6404
|
+
"name": "weekly-summary-put",
|
|
6405
|
+
"method": "PUT",
|
|
6406
|
+
"path": "/api/v1/organizations/{organization_id}/weekly-summary",
|
|
6407
|
+
"policy": "write",
|
|
6408
|
+
"summary": "Update Settings",
|
|
6409
|
+
"description": "",
|
|
6410
|
+
"pathParams": [
|
|
6411
|
+
"organization_id"
|
|
6412
|
+
],
|
|
6413
|
+
"query": [],
|
|
6414
|
+
"body": {
|
|
6415
|
+
"required": true,
|
|
6416
|
+
"fields": [
|
|
6417
|
+
{
|
|
6418
|
+
"name": "enabled",
|
|
6419
|
+
"type": "boolean",
|
|
6420
|
+
"required": false,
|
|
6421
|
+
"description": ""
|
|
6422
|
+
},
|
|
6423
|
+
{
|
|
6424
|
+
"name": "receive_weekly",
|
|
6425
|
+
"type": "boolean",
|
|
6426
|
+
"required": false,
|
|
6427
|
+
"description": ""
|
|
6428
|
+
}
|
|
6429
|
+
]
|
|
6430
|
+
}
|
|
6431
|
+
},
|
|
6432
|
+
{
|
|
6433
|
+
"group": "patching",
|
|
6434
|
+
"name": "add-included-ai",
|
|
6435
|
+
"method": "POST",
|
|
6436
|
+
"path": "/api/v1/patching/connections/included-ai",
|
|
6437
|
+
"policy": "mfa",
|
|
6438
|
+
"summary": "Turn on Included AI for the organisation",
|
|
6439
|
+
"description": "Add the organisation's Included AI connection; the same one if it exists. Organisation administrators with a recent second factor. No key is asked for or stored.",
|
|
6440
|
+
"pathParams": [],
|
|
6441
|
+
"query": [],
|
|
6442
|
+
"body": {
|
|
6443
|
+
"required": true,
|
|
6444
|
+
"fields": [
|
|
6445
|
+
{
|
|
6446
|
+
"name": "organization_id",
|
|
6447
|
+
"type": "integer",
|
|
6448
|
+
"required": true,
|
|
6449
|
+
"description": ""
|
|
6450
|
+
}
|
|
6451
|
+
]
|
|
6452
|
+
}
|
|
6453
|
+
},
|
|
5820
6454
|
{
|
|
5821
6455
|
"group": "patching",
|
|
5822
6456
|
"name": "apply-profile",
|
|
@@ -5847,6 +6481,28 @@
|
|
|
5847
6481
|
]
|
|
5848
6482
|
}
|
|
5849
6483
|
},
|
|
6484
|
+
{
|
|
6485
|
+
"group": "patching",
|
|
6486
|
+
"name": "approve-autopilot-merge",
|
|
6487
|
+
"method": "POST",
|
|
6488
|
+
"path": "/api/v1/patching/autopilot/approvals",
|
|
6489
|
+
"policy": "mfa",
|
|
6490
|
+
"summary": "Approve one Autopilot merge from the emailed link",
|
|
6491
|
+
"description": "Approve one Autopilot merge from the emailed link (#956). An unknown token, or one for an organisation the caller does not administer, answers the same 404, so a link reveals nothing to anyone else.",
|
|
6492
|
+
"pathParams": [],
|
|
6493
|
+
"query": [],
|
|
6494
|
+
"body": {
|
|
6495
|
+
"required": true,
|
|
6496
|
+
"fields": [
|
|
6497
|
+
{
|
|
6498
|
+
"name": "token",
|
|
6499
|
+
"type": "string",
|
|
6500
|
+
"required": true,
|
|
6501
|
+
"description": ""
|
|
6502
|
+
}
|
|
6503
|
+
]
|
|
6504
|
+
}
|
|
6505
|
+
},
|
|
5850
6506
|
{
|
|
5851
6507
|
"group": "patching",
|
|
5852
6508
|
"name": "choose-shared-repositories",
|
|
@@ -6269,7 +6925,7 @@
|
|
|
6269
6925
|
"path": "/api/v1/patching/terms/{kind}",
|
|
6270
6926
|
"policy": "read",
|
|
6271
6927
|
"summary": "Current Terms",
|
|
6272
|
-
"description": "The text in force for the kind, with the support plan link.",
|
|
6928
|
+
"description": "The text in force for the kind, with the support plan link. With ``site_uuid``, also the Customer the person accepts for on that site (#1930), for a caller who may accept these terms there.",
|
|
6273
6929
|
"pathParams": [
|
|
6274
6930
|
"kind"
|
|
6275
6931
|
],
|
|
@@ -6279,6 +6935,12 @@
|
|
|
6279
6935
|
"type": "integer",
|
|
6280
6936
|
"required": false,
|
|
6281
6937
|
"description": ""
|
|
6938
|
+
},
|
|
6939
|
+
{
|
|
6940
|
+
"name": "site_uuid",
|
|
6941
|
+
"type": "string",
|
|
6942
|
+
"required": false,
|
|
6943
|
+
"description": ""
|
|
6282
6944
|
}
|
|
6283
6945
|
],
|
|
6284
6946
|
"body": null
|
|
@@ -6310,7 +6972,7 @@
|
|
|
6310
6972
|
"method": "GET",
|
|
6311
6973
|
"path": "/api/v1/patching/activity/artefacts/{artefact_id}",
|
|
6312
6974
|
"policy": "read",
|
|
6313
|
-
"summary": "Download
|
|
6975
|
+
"summary": "Download retained job output",
|
|
6314
6976
|
"description": "The full, redacted output behind a step row, while it is retained and no platform administrator has withheld the job's output (#1954).",
|
|
6315
6977
|
"pathParams": [
|
|
6316
6978
|
"artefact_id"
|
|
@@ -6394,7 +7056,7 @@
|
|
|
6394
7056
|
"method": "GET",
|
|
6395
7057
|
"path": "/api/v1/patching/activity/export.csv",
|
|
6396
7058
|
"policy": "read",
|
|
6397
|
-
"summary": "
|
|
7059
|
+
"summary": "Download organisation activity as CSV",
|
|
6398
7060
|
"description": "Activity for a period as CSV, this organisation only; audited.",
|
|
6399
7061
|
"pathParams": [],
|
|
6400
7062
|
"query": [
|
|
@@ -6431,7 +7093,7 @@
|
|
|
6431
7093
|
"method": "GET",
|
|
6432
7094
|
"path": "/api/v1/patching/activity/jobs/{job_id}/export.json",
|
|
6433
7095
|
"policy": "read",
|
|
6434
|
-
"summary": "
|
|
7096
|
+
"summary": "Download a job's activity and retained output",
|
|
6435
7097
|
"description": "One job as JSON, transcript and retained artefacts included; audited. A job whose output is withheld has no export (#1954).",
|
|
6436
7098
|
"pathParams": [
|
|
6437
7099
|
"job_id"
|
|
@@ -6446,13 +7108,93 @@
|
|
|
6446
7108
|
],
|
|
6447
7109
|
"body": null
|
|
6448
7110
|
},
|
|
7111
|
+
{
|
|
7112
|
+
"group": "patching",
|
|
7113
|
+
"name": "flag-job-for-review",
|
|
7114
|
+
"method": "POST",
|
|
7115
|
+
"path": "/api/v1/patching/jobs/{job_id}/review",
|
|
7116
|
+
"policy": "write",
|
|
7117
|
+
"summary": "Flag Job For Review",
|
|
7118
|
+
"description": "Flag the job for review: open a support ticket about it. A second flag while your ticket about the job is open adds to that ticket instead of opening another.",
|
|
7119
|
+
"pathParams": [
|
|
7120
|
+
"job_id"
|
|
7121
|
+
],
|
|
7122
|
+
"query": [
|
|
7123
|
+
{
|
|
7124
|
+
"name": "organization_id",
|
|
7125
|
+
"type": "integer",
|
|
7126
|
+
"required": false,
|
|
7127
|
+
"description": ""
|
|
7128
|
+
}
|
|
7129
|
+
],
|
|
7130
|
+
"body": {
|
|
7131
|
+
"required": true,
|
|
7132
|
+
"fields": [
|
|
7133
|
+
{
|
|
7134
|
+
"name": "reason",
|
|
7135
|
+
"type": "string",
|
|
7136
|
+
"required": true,
|
|
7137
|
+
"values": [
|
|
7138
|
+
"failed",
|
|
7139
|
+
"unexpected_result",
|
|
7140
|
+
"site_problem",
|
|
7141
|
+
"other"
|
|
7142
|
+
],
|
|
7143
|
+
"description": ""
|
|
7144
|
+
},
|
|
7145
|
+
{
|
|
7146
|
+
"name": "details",
|
|
7147
|
+
"type": "string",
|
|
7148
|
+
"required": true,
|
|
7149
|
+
"description": ""
|
|
7150
|
+
},
|
|
7151
|
+
{
|
|
7152
|
+
"name": "expected",
|
|
7153
|
+
"type": "string",
|
|
7154
|
+
"required": false,
|
|
7155
|
+
"description": ""
|
|
7156
|
+
},
|
|
7157
|
+
{
|
|
7158
|
+
"name": "attachment_ids",
|
|
7159
|
+
"type": "integer[]",
|
|
7160
|
+
"required": false,
|
|
7161
|
+
"description": ""
|
|
7162
|
+
},
|
|
7163
|
+
{
|
|
7164
|
+
"name": "copy_token",
|
|
7165
|
+
"type": "string",
|
|
7166
|
+
"required": false,
|
|
7167
|
+
"description": ""
|
|
7168
|
+
}
|
|
7169
|
+
]
|
|
7170
|
+
}
|
|
7171
|
+
},
|
|
7172
|
+
{
|
|
7173
|
+
"group": "patching",
|
|
7174
|
+
"name": "get-ai-reviewer",
|
|
7175
|
+
"method": "GET",
|
|
7176
|
+
"path": "/api/v1/patching/ai-reviewer",
|
|
7177
|
+
"policy": "read",
|
|
7178
|
+
"summary": "Read which AI key reviews Patching jobs by default",
|
|
7179
|
+
"description": "The organisation's default reviewer key for the agent loop (#3013) and its active AI keys. ``offered`` is false with keys from one provider: every role then runs on that key as separate agents.",
|
|
7180
|
+
"pathParams": [],
|
|
7181
|
+
"query": [
|
|
7182
|
+
{
|
|
7183
|
+
"name": "organization_id",
|
|
7184
|
+
"type": "integer",
|
|
7185
|
+
"required": false,
|
|
7186
|
+
"description": ""
|
|
7187
|
+
}
|
|
7188
|
+
],
|
|
7189
|
+
"body": null
|
|
7190
|
+
},
|
|
6449
7191
|
{
|
|
6450
7192
|
"group": "patching",
|
|
6451
7193
|
"name": "get-job-timeline",
|
|
6452
7194
|
"method": "GET",
|
|
6453
7195
|
"path": "/api/v1/patching/activity/jobs/{job_id}",
|
|
6454
7196
|
"policy": "read",
|
|
6455
|
-
"summary": "
|
|
7197
|
+
"summary": "Read an update job's progress, activity and AI usage",
|
|
6456
7198
|
"description": "The job page: every row grouped by playbook phase, in order.",
|
|
6457
7199
|
"pathParams": [
|
|
6458
7200
|
"job_id"
|
|
@@ -6467,13 +7209,27 @@
|
|
|
6467
7209
|
],
|
|
6468
7210
|
"body": null
|
|
6469
7211
|
},
|
|
7212
|
+
{
|
|
7213
|
+
"group": "patching",
|
|
7214
|
+
"name": "get-organization-deployment",
|
|
7215
|
+
"method": "GET",
|
|
7216
|
+
"path": "/api/v1/patching/deployments/{reference}",
|
|
7217
|
+
"policy": "read",
|
|
7218
|
+
"summary": "Get Organization Deployment",
|
|
7219
|
+
"description": "Show one deployment by its reference, with its timeline.",
|
|
7220
|
+
"pathParams": [
|
|
7221
|
+
"reference"
|
|
7222
|
+
],
|
|
7223
|
+
"query": [],
|
|
7224
|
+
"body": null
|
|
7225
|
+
},
|
|
6470
7226
|
{
|
|
6471
7227
|
"group": "patching",
|
|
6472
7228
|
"name": "get-spend",
|
|
6473
7229
|
"method": "GET",
|
|
6474
7230
|
"path": "/api/v1/patching/spend",
|
|
6475
7231
|
"policy": "read",
|
|
6476
|
-
"summary": "
|
|
7232
|
+
"summary": "Read AI-key usage and estimated provider costs",
|
|
6477
7233
|
"description": "This month's usage and estimated cost, each AI key against its own cap (#1137), and the recent jobs. Caps are set on each key (``PATCH /patching/connections/{id}``); there is no organisation cap.",
|
|
6478
7234
|
"pathParams": [],
|
|
6479
7235
|
"query": [
|
|
@@ -6692,6 +7448,55 @@
|
|
|
6692
7448
|
],
|
|
6693
7449
|
"body": null
|
|
6694
7450
|
},
|
|
7451
|
+
{
|
|
7452
|
+
"group": "patching",
|
|
7453
|
+
"name": "list-organization-deployments",
|
|
7454
|
+
"method": "GET",
|
|
7455
|
+
"path": "/api/v1/patching/deployments",
|
|
7456
|
+
"policy": "read",
|
|
7457
|
+
"summary": "List Organization Deployments",
|
|
7458
|
+
"description": "List your organisation's deployments, running first, then newest first.",
|
|
7459
|
+
"pathParams": [],
|
|
7460
|
+
"query": [
|
|
7461
|
+
{
|
|
7462
|
+
"name": "organization_id",
|
|
7463
|
+
"type": "integer",
|
|
7464
|
+
"required": false,
|
|
7465
|
+
"description": ""
|
|
7466
|
+
},
|
|
7467
|
+
{
|
|
7468
|
+
"name": "site_uuid",
|
|
7469
|
+
"type": "string",
|
|
7470
|
+
"required": false,
|
|
7471
|
+
"description": ""
|
|
7472
|
+
},
|
|
7473
|
+
{
|
|
7474
|
+
"name": "state",
|
|
7475
|
+
"type": "string",
|
|
7476
|
+
"required": false,
|
|
7477
|
+
"values": [
|
|
7478
|
+
"running",
|
|
7479
|
+
"waiting",
|
|
7480
|
+
"needs_a_look",
|
|
7481
|
+
"done"
|
|
7482
|
+
],
|
|
7483
|
+
"description": ""
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
"name": "page",
|
|
7487
|
+
"type": "integer",
|
|
7488
|
+
"required": false,
|
|
7489
|
+
"description": ""
|
|
7490
|
+
},
|
|
7491
|
+
{
|
|
7492
|
+
"name": "page_size",
|
|
7493
|
+
"type": "integer",
|
|
7494
|
+
"required": false,
|
|
7495
|
+
"description": ""
|
|
7496
|
+
}
|
|
7497
|
+
],
|
|
7498
|
+
"body": null
|
|
7499
|
+
},
|
|
6695
7500
|
{
|
|
6696
7501
|
"group": "patching",
|
|
6697
7502
|
"name": "list-organization-jobs",
|
|
@@ -6872,7 +7677,7 @@
|
|
|
6872
7677
|
"path": "/api/v1/patching/residency-countries",
|
|
6873
7678
|
"policy": "read",
|
|
6874
7679
|
"summary": "List Residency Countries",
|
|
6875
|
-
"description": "Countries a site's Patching builds can run in (#1231), by name. The countries on offer today, from the daily catalogue: only the home country until machines may run abroad. A country Vultr withdrew is left out: sites that chose it keep it.",
|
|
7680
|
+
"description": "Countries a site's Patching builds can run in (#1231), by name. The countries on offer today, from the daily catalogue: only the home country until machines may run abroad. A country Vultr withdrew is left out: sites that chose it keep it. ``plan_allows_choice`` is false when the organisation's plan builds in the default country only (#2566).",
|
|
6876
7681
|
"pathParams": [],
|
|
6877
7682
|
"query": [
|
|
6878
7683
|
{
|
|
@@ -7089,22 +7894,80 @@
|
|
|
7089
7894
|
"description": "When security runs start (#1276). Null on a request is the default."
|
|
7090
7895
|
},
|
|
7091
7896
|
{
|
|
7092
|
-
"name": "maintenance_schedule",
|
|
7093
|
-
"type": "object",
|
|
7897
|
+
"name": "maintenance_schedule",
|
|
7898
|
+
"type": "object",
|
|
7899
|
+
"required": false,
|
|
7900
|
+
"description": "Wall-clock maintenance runs in the organisation's time zone (#1276)."
|
|
7901
|
+
}
|
|
7902
|
+
]
|
|
7903
|
+
}
|
|
7904
|
+
},
|
|
7905
|
+
{
|
|
7906
|
+
"group": "patching",
|
|
7907
|
+
"name": "public-settings",
|
|
7908
|
+
"method": "GET",
|
|
7909
|
+
"path": "/api/v1/patching/settings",
|
|
7910
|
+
"policy": "read",
|
|
7911
|
+
"summary": "Public Settings",
|
|
7912
|
+
"description": "Values the dashboard shows outside the dialog: the support plan link.",
|
|
7913
|
+
"pathParams": [],
|
|
7914
|
+
"query": [
|
|
7915
|
+
{
|
|
7916
|
+
"name": "organization_id",
|
|
7917
|
+
"type": "integer",
|
|
7918
|
+
"required": false,
|
|
7919
|
+
"description": ""
|
|
7920
|
+
}
|
|
7921
|
+
],
|
|
7922
|
+
"body": null
|
|
7923
|
+
},
|
|
7924
|
+
{
|
|
7925
|
+
"group": "patching",
|
|
7926
|
+
"name": "put-ai-reviewer",
|
|
7927
|
+
"method": "PUT",
|
|
7928
|
+
"path": "/api/v1/patching/ai-reviewer",
|
|
7929
|
+
"policy": "write",
|
|
7930
|
+
"summary": "Choose which AI key reviews Patching jobs by default",
|
|
7931
|
+
"description": "Set the default (``patching:configure``): null is OpenAI codes and Anthropic reviews, ``same`` reviews on the coder's key, ``key`` on the named active AI key. A site may choose its own.",
|
|
7932
|
+
"pathParams": [],
|
|
7933
|
+
"query": [
|
|
7934
|
+
{
|
|
7935
|
+
"name": "organization_id",
|
|
7936
|
+
"type": "integer",
|
|
7937
|
+
"required": false,
|
|
7938
|
+
"description": ""
|
|
7939
|
+
}
|
|
7940
|
+
],
|
|
7941
|
+
"body": {
|
|
7942
|
+
"required": true,
|
|
7943
|
+
"fields": [
|
|
7944
|
+
{
|
|
7945
|
+
"name": "ai_reviewer",
|
|
7946
|
+
"type": "string",
|
|
7947
|
+
"required": false,
|
|
7948
|
+
"values": [
|
|
7949
|
+
"same",
|
|
7950
|
+
"key"
|
|
7951
|
+
],
|
|
7952
|
+
"description": ""
|
|
7953
|
+
},
|
|
7954
|
+
{
|
|
7955
|
+
"name": "ai_reviewer_connection_id",
|
|
7956
|
+
"type": "integer",
|
|
7094
7957
|
"required": false,
|
|
7095
|
-
"description": "
|
|
7958
|
+
"description": ""
|
|
7096
7959
|
}
|
|
7097
7960
|
]
|
|
7098
7961
|
}
|
|
7099
7962
|
},
|
|
7100
7963
|
{
|
|
7101
7964
|
"group": "patching",
|
|
7102
|
-
"name": "
|
|
7965
|
+
"name": "read-catalogue",
|
|
7103
7966
|
"method": "GET",
|
|
7104
|
-
"path": "/api/v1/patching/
|
|
7967
|
+
"path": "/api/v1/patching/integration-requests/catalogue",
|
|
7105
7968
|
"policy": "read",
|
|
7106
|
-
"summary": "
|
|
7107
|
-
"description": "
|
|
7969
|
+
"summary": "Read Catalogue",
|
|
7970
|
+
"description": "The forms' messages, the catalogue with its reasons and the trigger words.",
|
|
7108
7971
|
"pathParams": [],
|
|
7109
7972
|
"query": [
|
|
7110
7973
|
{
|
|
@@ -7118,13 +7981,15 @@
|
|
|
7118
7981
|
},
|
|
7119
7982
|
{
|
|
7120
7983
|
"group": "patching",
|
|
7121
|
-
"name": "read-
|
|
7984
|
+
"name": "read-job-review",
|
|
7122
7985
|
"method": "GET",
|
|
7123
|
-
"path": "/api/v1/patching/
|
|
7986
|
+
"path": "/api/v1/patching/jobs/{job_id}/review",
|
|
7124
7987
|
"policy": "read",
|
|
7125
|
-
"summary": "Read
|
|
7126
|
-
"description": "
|
|
7127
|
-
"pathParams": [
|
|
7988
|
+
"summary": "Read Job Review",
|
|
7989
|
+
"description": "Whether the job is flagged for review, and the reasons to choose from.",
|
|
7990
|
+
"pathParams": [
|
|
7991
|
+
"job_id"
|
|
7992
|
+
],
|
|
7128
7993
|
"query": [
|
|
7129
7994
|
{
|
|
7130
7995
|
"name": "organization_id",
|
|
@@ -7241,6 +8106,12 @@
|
|
|
7241
8106
|
"type": "string",
|
|
7242
8107
|
"required": false,
|
|
7243
8108
|
"description": ""
|
|
8109
|
+
},
|
|
8110
|
+
{
|
|
8111
|
+
"name": "customer_name",
|
|
8112
|
+
"type": "string",
|
|
8113
|
+
"required": false,
|
|
8114
|
+
"description": ""
|
|
7244
8115
|
}
|
|
7245
8116
|
]
|
|
7246
8117
|
}
|
|
@@ -7470,6 +8341,22 @@
|
|
|
7470
8341
|
"write"
|
|
7471
8342
|
],
|
|
7472
8343
|
"description": ""
|
|
8344
|
+
},
|
|
8345
|
+
{
|
|
8346
|
+
"name": "return_site",
|
|
8347
|
+
"type": "string",
|
|
8348
|
+
"required": false,
|
|
8349
|
+
"description": ""
|
|
8350
|
+
},
|
|
8351
|
+
{
|
|
8352
|
+
"name": "return_to",
|
|
8353
|
+
"type": "string",
|
|
8354
|
+
"required": false,
|
|
8355
|
+
"values": [
|
|
8356
|
+
"enrolment",
|
|
8357
|
+
"setup"
|
|
8358
|
+
],
|
|
8359
|
+
"description": ""
|
|
7473
8360
|
}
|
|
7474
8361
|
]
|
|
7475
8362
|
}
|
|
@@ -8291,6 +9178,54 @@
|
|
|
8291
9178
|
],
|
|
8292
9179
|
"body": null
|
|
8293
9180
|
},
|
|
9181
|
+
{
|
|
9182
|
+
"group": "sites",
|
|
9183
|
+
"name": "acknowledge-merge-checks",
|
|
9184
|
+
"method": "POST",
|
|
9185
|
+
"path": "/api/v1/sites/{site_uuid}/patching/merge-checks/acknowledgement",
|
|
9186
|
+
"policy": "mfa",
|
|
9187
|
+
"summary": "Acknowledge Merge Checks",
|
|
9188
|
+
"description": "Acknowledge what the repository's required checks mean for Autopilot. A standing authorisation, so only an administrator of the organisation may give it, with a fresh second factor: a platform administrator who is not one is refused here. The host is read again and the call is refused when it no longer matches what the person saw.",
|
|
9189
|
+
"pathParams": [
|
|
9190
|
+
"site_uuid"
|
|
9191
|
+
],
|
|
9192
|
+
"query": [],
|
|
9193
|
+
"body": {
|
|
9194
|
+
"required": true,
|
|
9195
|
+
"fields": [
|
|
9196
|
+
{
|
|
9197
|
+
"name": "checks",
|
|
9198
|
+
"type": "object[]",
|
|
9199
|
+
"required": false,
|
|
9200
|
+
"description": ""
|
|
9201
|
+
},
|
|
9202
|
+
{
|
|
9203
|
+
"name": "wording_version",
|
|
9204
|
+
"type": "string",
|
|
9205
|
+
"required": true,
|
|
9206
|
+
"description": ""
|
|
9207
|
+
},
|
|
9208
|
+
{
|
|
9209
|
+
"name": "git_connection_id",
|
|
9210
|
+
"type": "integer",
|
|
9211
|
+
"required": false,
|
|
9212
|
+
"description": ""
|
|
9213
|
+
},
|
|
9214
|
+
{
|
|
9215
|
+
"name": "repository_id",
|
|
9216
|
+
"type": "string",
|
|
9217
|
+
"required": true,
|
|
9218
|
+
"description": ""
|
|
9219
|
+
},
|
|
9220
|
+
{
|
|
9221
|
+
"name": "production_branch",
|
|
9222
|
+
"type": "string",
|
|
9223
|
+
"required": true,
|
|
9224
|
+
"description": ""
|
|
9225
|
+
}
|
|
9226
|
+
]
|
|
9227
|
+
}
|
|
9228
|
+
},
|
|
8294
9229
|
{
|
|
8295
9230
|
"group": "sites",
|
|
8296
9231
|
"name": "acknowledge-stack-vulnerabilities",
|
|
@@ -8410,6 +9345,20 @@
|
|
|
8410
9345
|
"query": [],
|
|
8411
9346
|
"body": null
|
|
8412
9347
|
},
|
|
9348
|
+
{
|
|
9349
|
+
"group": "sites",
|
|
9350
|
+
"name": "check-dependabot-status",
|
|
9351
|
+
"method": "POST",
|
|
9352
|
+
"path": "/api/v1/sites/{site_uuid}/patching/dependabot/check",
|
|
9353
|
+
"policy": "write",
|
|
9354
|
+
"summary": "Check Dependabot alerts on the site's repository again",
|
|
9355
|
+
"description": "Ask GitHub again (#1912). Organisation administrators only. Sentinel only reads: this never turns alerts on.",
|
|
9356
|
+
"pathParams": [
|
|
9357
|
+
"site_uuid"
|
|
9358
|
+
],
|
|
9359
|
+
"query": [],
|
|
9360
|
+
"body": null
|
|
9361
|
+
},
|
|
8413
9362
|
{
|
|
8414
9363
|
"group": "sites",
|
|
8415
9364
|
"name": "clear-site-repository",
|
|
@@ -8547,6 +9496,27 @@
|
|
|
8547
9496
|
]
|
|
8548
9497
|
}
|
|
8549
9498
|
},
|
|
9499
|
+
{
|
|
9500
|
+
"group": "sites",
|
|
9501
|
+
"name": "create-upgrade-scan-key",
|
|
9502
|
+
"method": "POST",
|
|
9503
|
+
"path": "/api/v1/sites/{site_uuid}/upgrade-readiness/scan-key",
|
|
9504
|
+
"policy": "dashboard_only",
|
|
9505
|
+
"summary": "Create an upgrade scan key for a site",
|
|
9506
|
+
"description": "Create the key the CI job sends its scan with. Shown once. Needs a fresh second-factor code. With ``replace``, a new key replaces the old one, which stops working at once. The key can only send scans for this site.",
|
|
9507
|
+
"pathParams": [
|
|
9508
|
+
"site_uuid"
|
|
9509
|
+
],
|
|
9510
|
+
"query": [
|
|
9511
|
+
{
|
|
9512
|
+
"name": "replace",
|
|
9513
|
+
"type": "boolean",
|
|
9514
|
+
"required": false,
|
|
9515
|
+
"description": "Replace the site's key if it has one. Without it, a site that has a key answers 409, so two people cannot replace each other's key unseen."
|
|
9516
|
+
}
|
|
9517
|
+
],
|
|
9518
|
+
"body": null
|
|
9519
|
+
},
|
|
8550
9520
|
{
|
|
8551
9521
|
"group": "sites",
|
|
8552
9522
|
"name": "delete-draft",
|
|
@@ -8676,6 +9646,18 @@
|
|
|
8676
9646
|
"type": "string",
|
|
8677
9647
|
"required": false,
|
|
8678
9648
|
"description": ""
|
|
9649
|
+
},
|
|
9650
|
+
{
|
|
9651
|
+
"name": "dependabot_alert_id",
|
|
9652
|
+
"type": "integer",
|
|
9653
|
+
"required": false,
|
|
9654
|
+
"description": ""
|
|
9655
|
+
},
|
|
9656
|
+
{
|
|
9657
|
+
"name": "selection",
|
|
9658
|
+
"type": "object",
|
|
9659
|
+
"required": false,
|
|
9660
|
+
"description": "What a manual run is asked to update. Absent: everything, as before."
|
|
8679
9661
|
}
|
|
8680
9662
|
]
|
|
8681
9663
|
}
|
|
@@ -8828,6 +9810,20 @@
|
|
|
8828
9810
|
]
|
|
8829
9811
|
}
|
|
8830
9812
|
},
|
|
9813
|
+
{
|
|
9814
|
+
"group": "sites",
|
|
9815
|
+
"name": "export-merge-checks-history",
|
|
9816
|
+
"method": "GET",
|
|
9817
|
+
"path": "/api/v1/sites/{site_uuid}/patching/merge-checks/history.csv",
|
|
9818
|
+
"policy": "read",
|
|
9819
|
+
"summary": "Export Merge Checks History",
|
|
9820
|
+
"description": "Download this website's check policy history as CSV (#1930). Organisation administrators only; the same rows as the history route.",
|
|
9821
|
+
"pathParams": [
|
|
9822
|
+
"site_uuid"
|
|
9823
|
+
],
|
|
9824
|
+
"query": [],
|
|
9825
|
+
"body": null
|
|
9826
|
+
},
|
|
8831
9827
|
{
|
|
8832
9828
|
"group": "sites",
|
|
8833
9829
|
"name": "export-sites-overview",
|
|
@@ -8901,6 +9897,12 @@
|
|
|
8901
9897
|
"required": false,
|
|
8902
9898
|
"description": "As on `GET /sites/overview`."
|
|
8903
9899
|
},
|
|
9900
|
+
{
|
|
9901
|
+
"name": "drupal_status",
|
|
9902
|
+
"type": "string",
|
|
9903
|
+
"required": false,
|
|
9904
|
+
"description": "As on `GET /sites/overview`."
|
|
9905
|
+
},
|
|
8904
9906
|
{
|
|
8905
9907
|
"name": "site_uuid",
|
|
8906
9908
|
"type": "string[]",
|
|
@@ -9034,6 +10036,20 @@
|
|
|
9034
10036
|
"query": [],
|
|
9035
10037
|
"body": null
|
|
9036
10038
|
},
|
|
10039
|
+
{
|
|
10040
|
+
"group": "sites",
|
|
10041
|
+
"name": "get-site-autopilot",
|
|
10042
|
+
"method": "GET",
|
|
10043
|
+
"path": "/api/v1/sites/{site_uuid}/patching/autopilot",
|
|
10044
|
+
"policy": "read",
|
|
10045
|
+
"summary": "See the website's Autopilot runs and whether it waits for Resume",
|
|
10046
|
+
"description": "The site's Autopilot runs and whether it waits for Resume. Members.",
|
|
10047
|
+
"pathParams": [
|
|
10048
|
+
"site_uuid"
|
|
10049
|
+
],
|
|
10050
|
+
"query": [],
|
|
10051
|
+
"body": null
|
|
10052
|
+
},
|
|
9037
10053
|
{
|
|
9038
10054
|
"group": "sites",
|
|
9039
10055
|
"name": "get-site-certificate",
|
|
@@ -9165,13 +10181,27 @@
|
|
|
9165
10181
|
],
|
|
9166
10182
|
"body": null
|
|
9167
10183
|
},
|
|
10184
|
+
{
|
|
10185
|
+
"group": "sites",
|
|
10186
|
+
"name": "get-site-included-ai",
|
|
10187
|
+
"method": "GET",
|
|
10188
|
+
"path": "/api/v1/sites/{site_uuid}/patching/included-ai",
|
|
10189
|
+
"policy": "read",
|
|
10190
|
+
"summary": "See the website's Included AI limits and what is used",
|
|
10191
|
+
"description": "The website's monthly use of Included AI. Members.",
|
|
10192
|
+
"pathParams": [
|
|
10193
|
+
"site_uuid"
|
|
10194
|
+
],
|
|
10195
|
+
"query": [],
|
|
10196
|
+
"body": null
|
|
10197
|
+
},
|
|
9168
10198
|
{
|
|
9169
10199
|
"group": "sites",
|
|
9170
10200
|
"name": "get-site-job",
|
|
9171
10201
|
"method": "GET",
|
|
9172
10202
|
"path": "/api/v1/sites/{site_uuid}/patching/jobs/{job_id}",
|
|
9173
10203
|
"policy": "read",
|
|
9174
|
-
"summary": "
|
|
10204
|
+
"summary": "Read an update job and its AI usage",
|
|
9175
10205
|
"description": "",
|
|
9176
10206
|
"pathParams": [
|
|
9177
10207
|
"site_uuid",
|
|
@@ -9352,6 +10382,20 @@
|
|
|
9352
10382
|
"query": [],
|
|
9353
10383
|
"body": null
|
|
9354
10384
|
},
|
|
10385
|
+
{
|
|
10386
|
+
"group": "sites",
|
|
10387
|
+
"name": "get-site-setup",
|
|
10388
|
+
"method": "GET",
|
|
10389
|
+
"path": "/api/v1/sites/{site_uuid}/setup",
|
|
10390
|
+
"policy": "dashboard_only",
|
|
10391
|
+
"summary": "A site's setup steps",
|
|
10392
|
+
"description": "Each step of the site's setup: done, skipped (with the date) or not started, and the step the wizard opens at.",
|
|
10393
|
+
"pathParams": [
|
|
10394
|
+
"site_uuid"
|
|
10395
|
+
],
|
|
10396
|
+
"query": [],
|
|
10397
|
+
"body": null
|
|
10398
|
+
},
|
|
9355
10399
|
{
|
|
9356
10400
|
"group": "sites",
|
|
9357
10401
|
"name": "get-site-update-history",
|
|
@@ -9493,6 +10537,120 @@
|
|
|
9493
10537
|
"type": "string",
|
|
9494
10538
|
"required": false,
|
|
9495
10539
|
"description": "Only sites in this Patching state: `not_enrolled`, `copilot`, `autopilot` or `paused` (#2134). Ignored unless Patching is available to the organisation."
|
|
10540
|
+
},
|
|
10541
|
+
{
|
|
10542
|
+
"name": "drupal_status",
|
|
10543
|
+
"type": "string",
|
|
10544
|
+
"required": false,
|
|
10545
|
+
"description": "Only sites in this Drupal status report state: `errors`, `warnings`, `clear` or `not_reported` (#2315). sort_by=drupal_status orders errors, warnings, clear, then the rest (desc reverses it), ties by name. Ignored unless the report is open to the organisation."
|
|
10546
|
+
}
|
|
10547
|
+
],
|
|
10548
|
+
"body": null
|
|
10549
|
+
},
|
|
10550
|
+
{
|
|
10551
|
+
"group": "sites",
|
|
10552
|
+
"name": "get-upgrade-scan-key",
|
|
10553
|
+
"method": "GET",
|
|
10554
|
+
"path": "/api/v1/sites/{site_uuid}/upgrade-readiness/scan-key",
|
|
10555
|
+
"policy": "read",
|
|
10556
|
+
"summary": "See whether a site has an upgrade scan key",
|
|
10557
|
+
"description": "The key's start, creation and last use. Never the key itself.",
|
|
10558
|
+
"pathParams": [
|
|
10559
|
+
"site_uuid"
|
|
10560
|
+
],
|
|
10561
|
+
"query": [],
|
|
10562
|
+
"body": null
|
|
10563
|
+
},
|
|
10564
|
+
{
|
|
10565
|
+
"group": "sites",
|
|
10566
|
+
"name": "list-dependabot-alerts",
|
|
10567
|
+
"method": "GET",
|
|
10568
|
+
"path": "/api/v1/sites/{site_uuid}/patching/dependabot/alerts",
|
|
10569
|
+
"policy": "read",
|
|
10570
|
+
"summary": "List this site's Dependabot alerts and what Patching does with each",
|
|
10571
|
+
"description": "One repository can serve several sites, and each gets its own answers.",
|
|
10572
|
+
"pathParams": [
|
|
10573
|
+
"site_uuid"
|
|
10574
|
+
],
|
|
10575
|
+
"query": [
|
|
10576
|
+
{
|
|
10577
|
+
"name": "state",
|
|
10578
|
+
"type": "string",
|
|
10579
|
+
"required": false,
|
|
10580
|
+
"values": [
|
|
10581
|
+
"open",
|
|
10582
|
+
"fixed",
|
|
10583
|
+
"dismissed",
|
|
10584
|
+
"withdrawn",
|
|
10585
|
+
"all"
|
|
10586
|
+
],
|
|
10587
|
+
"description": ""
|
|
10588
|
+
},
|
|
10589
|
+
{
|
|
10590
|
+
"name": "severity",
|
|
10591
|
+
"type": "string",
|
|
10592
|
+
"required": false,
|
|
10593
|
+
"values": [
|
|
10594
|
+
"critical",
|
|
10595
|
+
"high",
|
|
10596
|
+
"medium",
|
|
10597
|
+
"low"
|
|
10598
|
+
],
|
|
10599
|
+
"description": ""
|
|
10600
|
+
},
|
|
10601
|
+
{
|
|
10602
|
+
"name": "ecosystem",
|
|
10603
|
+
"type": "string",
|
|
10604
|
+
"required": false,
|
|
10605
|
+
"description": ""
|
|
10606
|
+
},
|
|
10607
|
+
{
|
|
10608
|
+
"name": "outcome",
|
|
10609
|
+
"type": "string",
|
|
10610
|
+
"required": false,
|
|
10611
|
+
"values": [
|
|
10612
|
+
"other_branch",
|
|
10613
|
+
"no_fix",
|
|
10614
|
+
"excluded",
|
|
10615
|
+
"other_folder",
|
|
10616
|
+
"javascript",
|
|
10617
|
+
"other_ecosystem",
|
|
10618
|
+
"major_upgrade",
|
|
10619
|
+
"maintenance",
|
|
10620
|
+
"security"
|
|
10621
|
+
],
|
|
10622
|
+
"description": ""
|
|
10623
|
+
},
|
|
10624
|
+
{
|
|
10625
|
+
"name": "page",
|
|
10626
|
+
"type": "integer",
|
|
10627
|
+
"required": false,
|
|
10628
|
+
"description": ""
|
|
10629
|
+
}
|
|
10630
|
+
],
|
|
10631
|
+
"body": null
|
|
10632
|
+
},
|
|
10633
|
+
{
|
|
10634
|
+
"group": "sites",
|
|
10635
|
+
"name": "list-run-candidates",
|
|
10636
|
+
"method": "GET",
|
|
10637
|
+
"path": "/api/v1/sites/{site_uuid}/patching/jobs/candidates",
|
|
10638
|
+
"policy": "read",
|
|
10639
|
+
"summary": "List what a manual update could change",
|
|
10640
|
+
"description": "The packages a security or maintenance run could update, the step each may take (patch, minor or a new major) and what is held back and why. Drupal core and distributions are never offered a new major (#2289).",
|
|
10641
|
+
"pathParams": [
|
|
10642
|
+
"site_uuid"
|
|
10643
|
+
],
|
|
10644
|
+
"query": [
|
|
10645
|
+
{
|
|
10646
|
+
"name": "kind",
|
|
10647
|
+
"type": "string",
|
|
10648
|
+
"required": true,
|
|
10649
|
+
"values": [
|
|
10650
|
+
"security",
|
|
10651
|
+
"maintenance"
|
|
10652
|
+
],
|
|
10653
|
+
"description": ""
|
|
9496
10654
|
}
|
|
9497
10655
|
],
|
|
9498
10656
|
"body": null
|
|
@@ -9567,14 +10725,32 @@
|
|
|
9567
10725
|
],
|
|
9568
10726
|
"query": [
|
|
9569
10727
|
{
|
|
9570
|
-
"name": "job_id",
|
|
10728
|
+
"name": "job_id",
|
|
10729
|
+
"type": "string",
|
|
10730
|
+
"required": false,
|
|
10731
|
+
"description": ""
|
|
10732
|
+
},
|
|
10733
|
+
{
|
|
10734
|
+
"name": "pull_request_id",
|
|
10735
|
+
"type": "integer[]",
|
|
10736
|
+
"required": false,
|
|
10737
|
+
"description": ""
|
|
10738
|
+
},
|
|
10739
|
+
{
|
|
10740
|
+
"name": "before",
|
|
10741
|
+
"type": "integer",
|
|
10742
|
+
"required": false,
|
|
10743
|
+
"description": ""
|
|
10744
|
+
},
|
|
10745
|
+
{
|
|
10746
|
+
"name": "reference",
|
|
9571
10747
|
"type": "string",
|
|
9572
10748
|
"required": false,
|
|
9573
10749
|
"description": ""
|
|
9574
10750
|
},
|
|
9575
10751
|
{
|
|
9576
|
-
"name": "
|
|
9577
|
-
"type": "integer
|
|
10752
|
+
"name": "limit",
|
|
10753
|
+
"type": "integer",
|
|
9578
10754
|
"required": false,
|
|
9579
10755
|
"description": ""
|
|
9580
10756
|
}
|
|
@@ -9587,7 +10763,7 @@
|
|
|
9587
10763
|
"method": "GET",
|
|
9588
10764
|
"path": "/api/v1/sites/{site_uuid}/patching/jobs",
|
|
9589
10765
|
"policy": "read",
|
|
9590
|
-
"summary": "List
|
|
10766
|
+
"summary": "List a website's update jobs and AI usage",
|
|
9591
10767
|
"description": "The site's runner jobs, newest first, with queue positions.",
|
|
9592
10768
|
"pathParams": [
|
|
9593
10769
|
"site_uuid"
|
|
@@ -9703,6 +10879,31 @@
|
|
|
9703
10879
|
]
|
|
9704
10880
|
}
|
|
9705
10881
|
},
|
|
10882
|
+
{
|
|
10883
|
+
"group": "sites",
|
|
10884
|
+
"name": "mute-drupal-status-item",
|
|
10885
|
+
"method": "PUT",
|
|
10886
|
+
"path": "/api/v1/sites/{site_uuid}/drupal-status-report/mutes/{key}",
|
|
10887
|
+
"policy": "write",
|
|
10888
|
+
"summary": "Mute an item of a site's Drupal status report",
|
|
10889
|
+
"description": "Stop counting one open error or warning, with a reason everyone in the organisation sees. Muting again replaces the reason, who and when. A muted warning comes back by itself if the site reports it as an error. Answers the report as it now stands.",
|
|
10890
|
+
"pathParams": [
|
|
10891
|
+
"site_uuid",
|
|
10892
|
+
"key"
|
|
10893
|
+
],
|
|
10894
|
+
"query": [],
|
|
10895
|
+
"body": {
|
|
10896
|
+
"required": true,
|
|
10897
|
+
"fields": [
|
|
10898
|
+
{
|
|
10899
|
+
"name": "reason",
|
|
10900
|
+
"type": "string",
|
|
10901
|
+
"required": true,
|
|
10902
|
+
"description": "Why it does not need fixing; shown to the organisation. Spaces are collapsed before the 10 to 500 character check."
|
|
10903
|
+
}
|
|
10904
|
+
]
|
|
10905
|
+
}
|
|
10906
|
+
},
|
|
9706
10907
|
{
|
|
9707
10908
|
"group": "sites",
|
|
9708
10909
|
"name": "provision-sync-secret",
|
|
@@ -9717,6 +10918,41 @@
|
|
|
9717
10918
|
"query": [],
|
|
9718
10919
|
"body": null
|
|
9719
10920
|
},
|
|
10921
|
+
{
|
|
10922
|
+
"group": "sites",
|
|
10923
|
+
"name": "put-dependabot-rules",
|
|
10924
|
+
"method": "PUT",
|
|
10925
|
+
"path": "/api/v1/sites/{site_uuid}/patching/dependabot/rules",
|
|
10926
|
+
"policy": "mfa",
|
|
10927
|
+
"summary": "Choose whether a new Dependabot alert starts a security update",
|
|
10928
|
+
"description": "Off by default. On Autopilot, widening them needs a fresh second factor, because a run they start can reach production with no person.",
|
|
10929
|
+
"pathParams": [
|
|
10930
|
+
"site_uuid"
|
|
10931
|
+
],
|
|
10932
|
+
"query": [],
|
|
10933
|
+
"body": {
|
|
10934
|
+
"required": true,
|
|
10935
|
+
"fields": [
|
|
10936
|
+
{
|
|
10937
|
+
"name": "auto_security",
|
|
10938
|
+
"type": "boolean",
|
|
10939
|
+
"required": false,
|
|
10940
|
+
"description": ""
|
|
10941
|
+
},
|
|
10942
|
+
{
|
|
10943
|
+
"name": "minimum_severity",
|
|
10944
|
+
"type": "string",
|
|
10945
|
+
"required": false,
|
|
10946
|
+
"values": [
|
|
10947
|
+
"medium",
|
|
10948
|
+
"high",
|
|
10949
|
+
"critical"
|
|
10950
|
+
],
|
|
10951
|
+
"description": ""
|
|
10952
|
+
}
|
|
10953
|
+
]
|
|
10954
|
+
}
|
|
10955
|
+
},
|
|
9720
10956
|
{
|
|
9721
10957
|
"group": "sites",
|
|
9722
10958
|
"name": "put-draft",
|
|
@@ -9741,6 +10977,40 @@
|
|
|
9741
10977
|
]
|
|
9742
10978
|
}
|
|
9743
10979
|
},
|
|
10980
|
+
{
|
|
10981
|
+
"group": "sites",
|
|
10982
|
+
"name": "put-site-ai-reviewer",
|
|
10983
|
+
"method": "PUT",
|
|
10984
|
+
"path": "/api/v1/sites/{site_uuid}/patching/ai-reviewer",
|
|
10985
|
+
"policy": "write",
|
|
10986
|
+
"summary": "Choose which AI key reviews this website's Patching jobs",
|
|
10987
|
+
"description": "Which of the organisation's own AI keys reviews in the agent loop (#3013): null follows the organisation, ``same`` reviews on the coder's key, ``key`` on the named active AI key. The generic 404 while the agent loop is not released for the organisation. Needs ``patching:run``, as choosing the site's AI key does.",
|
|
10988
|
+
"pathParams": [
|
|
10989
|
+
"site_uuid"
|
|
10990
|
+
],
|
|
10991
|
+
"query": [],
|
|
10992
|
+
"body": {
|
|
10993
|
+
"required": true,
|
|
10994
|
+
"fields": [
|
|
10995
|
+
{
|
|
10996
|
+
"name": "ai_reviewer",
|
|
10997
|
+
"type": "string",
|
|
10998
|
+
"required": false,
|
|
10999
|
+
"values": [
|
|
11000
|
+
"same",
|
|
11001
|
+
"key"
|
|
11002
|
+
],
|
|
11003
|
+
"description": ""
|
|
11004
|
+
},
|
|
11005
|
+
{
|
|
11006
|
+
"name": "ai_reviewer_connection_id",
|
|
11007
|
+
"type": "integer",
|
|
11008
|
+
"required": false,
|
|
11009
|
+
"description": ""
|
|
11010
|
+
}
|
|
11011
|
+
]
|
|
11012
|
+
}
|
|
11013
|
+
},
|
|
9744
11014
|
{
|
|
9745
11015
|
"group": "sites",
|
|
9746
11016
|
"name": "put-site-deploy-method",
|
|
@@ -9776,6 +11046,34 @@
|
|
|
9776
11046
|
]
|
|
9777
11047
|
}
|
|
9778
11048
|
},
|
|
11049
|
+
{
|
|
11050
|
+
"group": "sites",
|
|
11051
|
+
"name": "put-site-deploy-mode",
|
|
11052
|
+
"method": "PUT",
|
|
11053
|
+
"path": "/api/v1/sites/{site_uuid}/patching/mode",
|
|
11054
|
+
"policy": "mfa",
|
|
11055
|
+
"summary": "Switch a site between Copilot and Autopilot",
|
|
11056
|
+
"description": "Change only the site's mode, so it never replaces other settings (#2382). Needs ``patching:run``; switching to Autopilot also needs ``patching:deploy``, a recent second factor and every gate the full save applies: billing, the site's Autopilot terms, acknowledged required checks, the CI tests rule and one deployment a person ran first.",
|
|
11057
|
+
"pathParams": [
|
|
11058
|
+
"site_uuid"
|
|
11059
|
+
],
|
|
11060
|
+
"query": [],
|
|
11061
|
+
"body": {
|
|
11062
|
+
"required": true,
|
|
11063
|
+
"fields": [
|
|
11064
|
+
{
|
|
11065
|
+
"name": "deploy_mode",
|
|
11066
|
+
"type": "string",
|
|
11067
|
+
"required": true,
|
|
11068
|
+
"values": [
|
|
11069
|
+
"copilot",
|
|
11070
|
+
"autopilot"
|
|
11071
|
+
],
|
|
11072
|
+
"description": ""
|
|
11073
|
+
}
|
|
11074
|
+
]
|
|
11075
|
+
}
|
|
11076
|
+
},
|
|
9779
11077
|
{
|
|
9780
11078
|
"group": "sites",
|
|
9781
11079
|
"name": "put-site-patching",
|
|
@@ -9929,6 +11227,36 @@
|
|
|
9929
11227
|
]
|
|
9930
11228
|
}
|
|
9931
11229
|
},
|
|
11230
|
+
{
|
|
11231
|
+
"group": "sites",
|
|
11232
|
+
"name": "put-site-setup-step",
|
|
11233
|
+
"method": "PUT",
|
|
11234
|
+
"path": "/api/v1/sites/{site_uuid}/setup/steps/{step}",
|
|
11235
|
+
"policy": "dashboard_only",
|
|
11236
|
+
"summary": "Skip a setup step, or clear a skip",
|
|
11237
|
+
"description": "Skip a step for now, clear a skip, or mark AI or schedule and mode done. Refusals carry a ``code``: ``setup_step_required`` (the card and billing terms cannot be skipped), ``setup_step_not_settable`` (the step is finished on its own page) and ``setup_step_unknown`` (a Patching step where Patching is not available).",
|
|
11238
|
+
"pathParams": [
|
|
11239
|
+
"site_uuid",
|
|
11240
|
+
"step"
|
|
11241
|
+
],
|
|
11242
|
+
"query": [],
|
|
11243
|
+
"body": {
|
|
11244
|
+
"required": true,
|
|
11245
|
+
"fields": [
|
|
11246
|
+
{
|
|
11247
|
+
"name": "status",
|
|
11248
|
+
"type": "string",
|
|
11249
|
+
"required": true,
|
|
11250
|
+
"values": [
|
|
11251
|
+
"done",
|
|
11252
|
+
"skipped",
|
|
11253
|
+
"not_started"
|
|
11254
|
+
],
|
|
11255
|
+
"description": "skipped: leave it for later; not_started: clear a skip; done: only for AI and for schedule and mode, which the site cannot report before enrolment."
|
|
11256
|
+
}
|
|
11257
|
+
]
|
|
11258
|
+
}
|
|
11259
|
+
},
|
|
9932
11260
|
{
|
|
9933
11261
|
"group": "sites",
|
|
9934
11262
|
"name": "put-upgrade-readiness-display",
|
|
@@ -9967,6 +11295,49 @@
|
|
|
9967
11295
|
"query": [],
|
|
9968
11296
|
"body": null
|
|
9969
11297
|
},
|
|
11298
|
+
{
|
|
11299
|
+
"group": "sites",
|
|
11300
|
+
"name": "read-dependabot-alert",
|
|
11301
|
+
"method": "GET",
|
|
11302
|
+
"path": "/api/v1/sites/{site_uuid}/patching/dependabot/alerts/{number}",
|
|
11303
|
+
"policy": "read",
|
|
11304
|
+
"summary": "Read one Dependabot alert on this site",
|
|
11305
|
+
"description": "The alert with GitHub's summary, which is plain text.",
|
|
11306
|
+
"pathParams": [
|
|
11307
|
+
"site_uuid",
|
|
11308
|
+
"number"
|
|
11309
|
+
],
|
|
11310
|
+
"query": [],
|
|
11311
|
+
"body": null
|
|
11312
|
+
},
|
|
11313
|
+
{
|
|
11314
|
+
"group": "sites",
|
|
11315
|
+
"name": "read-dependabot-status",
|
|
11316
|
+
"method": "GET",
|
|
11317
|
+
"path": "/api/v1/sites/{site_uuid}/patching/dependabot",
|
|
11318
|
+
"policy": "read",
|
|
11319
|
+
"summary": "See whether Dependabot alerts can be read for this site",
|
|
11320
|
+
"description": "The site's Dependabot set-up state (#1912). Any member who sees the site.",
|
|
11321
|
+
"pathParams": [
|
|
11322
|
+
"site_uuid"
|
|
11323
|
+
],
|
|
11324
|
+
"query": [],
|
|
11325
|
+
"body": null
|
|
11326
|
+
},
|
|
11327
|
+
{
|
|
11328
|
+
"group": "sites",
|
|
11329
|
+
"name": "read-drupal-status-report",
|
|
11330
|
+
"method": "GET",
|
|
11331
|
+
"path": "/api/v1/sites/{site_uuid}/drupal-status-report",
|
|
11332
|
+
"policy": "read",
|
|
11333
|
+
"summary": "Read a site's Drupal status report",
|
|
11334
|
+
"description": "The errors and warnings from the site's own Drupal status report. Open items come errors first, then warnings, oldest first. Muted items and Drupal's two update checks are listed apart and never counted. When reporting is off, not reported yet or the site could not build the list, the lists are empty and the counts zero. Any member who can read the site may read it.",
|
|
11335
|
+
"pathParams": [
|
|
11336
|
+
"site_uuid"
|
|
11337
|
+
],
|
|
11338
|
+
"query": [],
|
|
11339
|
+
"body": null
|
|
11340
|
+
},
|
|
9970
11341
|
{
|
|
9971
11342
|
"group": "sites",
|
|
9972
11343
|
"name": "read-exclusions",
|
|
@@ -9981,6 +11352,34 @@
|
|
|
9981
11352
|
"query": [],
|
|
9982
11353
|
"body": null
|
|
9983
11354
|
},
|
|
11355
|
+
{
|
|
11356
|
+
"group": "sites",
|
|
11357
|
+
"name": "read-merge-checks",
|
|
11358
|
+
"method": "GET",
|
|
11359
|
+
"path": "/api/v1/sites/{site_uuid}/patching/merge-checks",
|
|
11360
|
+
"policy": "read",
|
|
11361
|
+
"summary": "Read Merge Checks",
|
|
11362
|
+
"description": "See which checks the repository requires before a merge (#1930). Read from the host now, so the page shows what the repository says rather than a stored copy. Rules that could not be read come back with ``readable`` false, never as an empty list that looks like none.",
|
|
11363
|
+
"pathParams": [
|
|
11364
|
+
"site_uuid"
|
|
11365
|
+
],
|
|
11366
|
+
"query": [],
|
|
11367
|
+
"body": null
|
|
11368
|
+
},
|
|
11369
|
+
{
|
|
11370
|
+
"group": "sites",
|
|
11371
|
+
"name": "read-merge-checks-history",
|
|
11372
|
+
"method": "GET",
|
|
11373
|
+
"path": "/api/v1/sites/{site_uuid}/patching/merge-checks/history",
|
|
11374
|
+
"policy": "read",
|
|
11375
|
+
"summary": "Read Merge Checks History",
|
|
11376
|
+
"description": "See every acknowledgement of this website's check policy (#1930). Organisation administrators only. Newest first, at most 500 rows: each acknowledgement with the wording fingerprint, each time one stopped applying and why, each required check added later, and the deployments that relied on each acknowledgement.",
|
|
11377
|
+
"pathParams": [
|
|
11378
|
+
"site_uuid"
|
|
11379
|
+
],
|
|
11380
|
+
"query": [],
|
|
11381
|
+
"body": null
|
|
11382
|
+
},
|
|
9984
11383
|
{
|
|
9985
11384
|
"group": "sites",
|
|
9986
11385
|
"name": "read-site",
|
|
@@ -10146,6 +11545,20 @@
|
|
|
10146
11545
|
"query": [],
|
|
10147
11546
|
"body": null
|
|
10148
11547
|
},
|
|
11548
|
+
{
|
|
11549
|
+
"group": "sites",
|
|
11550
|
+
"name": "refresh-dependabot-alerts",
|
|
11551
|
+
"method": "POST",
|
|
11552
|
+
"path": "/api/v1/sites/{site_uuid}/patching/dependabot/refresh",
|
|
11553
|
+
"policy": "write",
|
|
11554
|
+
"summary": "Read this site's Dependabot alerts from GitHub again",
|
|
11555
|
+
"description": "Organisation administrators. Once an hour per repository.",
|
|
11556
|
+
"pathParams": [
|
|
11557
|
+
"site_uuid"
|
|
11558
|
+
],
|
|
11559
|
+
"query": [],
|
|
11560
|
+
"body": null
|
|
11561
|
+
},
|
|
10149
11562
|
{
|
|
10150
11563
|
"group": "sites",
|
|
10151
11564
|
"name": "refresh-exclusions",
|
|
@@ -10345,6 +11758,20 @@
|
|
|
10345
11758
|
]
|
|
10346
11759
|
}
|
|
10347
11760
|
},
|
|
11761
|
+
{
|
|
11762
|
+
"group": "sites",
|
|
11763
|
+
"name": "resume-site-autopilot",
|
|
11764
|
+
"method": "POST",
|
|
11765
|
+
"path": "/api/v1/sites/{site_uuid}/patching/autopilot/resume",
|
|
11766
|
+
"policy": "mfa",
|
|
11767
|
+
"summary": "Resume Autopilot on a website after it paused",
|
|
11768
|
+
"description": "Clear \"needs attention\" and let paused runs go on. Administrators.",
|
|
11769
|
+
"pathParams": [
|
|
11770
|
+
"site_uuid"
|
|
11771
|
+
],
|
|
11772
|
+
"query": [],
|
|
11773
|
+
"body": null
|
|
11774
|
+
},
|
|
10348
11775
|
{
|
|
10349
11776
|
"group": "sites",
|
|
10350
11777
|
"name": "revoke-site-api-key",
|
|
@@ -10360,6 +11787,20 @@
|
|
|
10360
11787
|
"query": [],
|
|
10361
11788
|
"body": null
|
|
10362
11789
|
},
|
|
11790
|
+
{
|
|
11791
|
+
"group": "sites",
|
|
11792
|
+
"name": "revoke-upgrade-scan-key",
|
|
11793
|
+
"method": "DELETE",
|
|
11794
|
+
"path": "/api/v1/sites/{site_uuid}/upgrade-readiness/scan-key",
|
|
11795
|
+
"policy": "dashboard_only",
|
|
11796
|
+
"summary": "Revoke a site's upgrade scan key",
|
|
11797
|
+
"description": "Stop the key working. Results already sent stay. Needs a fresh code.",
|
|
11798
|
+
"pathParams": [
|
|
11799
|
+
"site_uuid"
|
|
11800
|
+
],
|
|
11801
|
+
"query": [],
|
|
11802
|
+
"body": null
|
|
11803
|
+
},
|
|
10363
11804
|
{
|
|
10364
11805
|
"group": "sites",
|
|
10365
11806
|
"name": "rotate-site-api-key",
|
|
@@ -10382,7 +11823,7 @@
|
|
|
10382
11823
|
"path": "/api/v1/sites/{site_uuid}/patching/repository",
|
|
10383
11824
|
"policy": "write",
|
|
10384
11825
|
"summary": "Select Site Repository",
|
|
10385
|
-
"description": "Choose the repository from a Git host connection's list and probe it (#951). The id must be one the connection lists; a name or URL is never accepted.
|
|
11826
|
+
"description": "Choose the repository from a Git host connection's list and probe it (#951). The id must be one the connection lists; a name or URL is never accepted. A repository belongs to one site: one another site uses is refused (#2530). Choosing the current one again re-runs the capabilities probe.",
|
|
10386
11827
|
"pathParams": [
|
|
10387
11828
|
"site_uuid"
|
|
10388
11829
|
],
|
|
@@ -10419,6 +11860,35 @@
|
|
|
10419
11860
|
"query": [],
|
|
10420
11861
|
"body": null
|
|
10421
11862
|
},
|
|
11863
|
+
{
|
|
11864
|
+
"group": "sites",
|
|
11865
|
+
"name": "unmute-drupal-status-item",
|
|
11866
|
+
"method": "DELETE",
|
|
11867
|
+
"path": "/api/v1/sites/{site_uuid}/drupal-status-report/mutes/{key}",
|
|
11868
|
+
"policy": "write",
|
|
11869
|
+
"summary": "Unmute an item of a site's Drupal status report",
|
|
11870
|
+
"description": "Count a muted item again. Nothing changes on the site.",
|
|
11871
|
+
"pathParams": [
|
|
11872
|
+
"site_uuid",
|
|
11873
|
+
"key"
|
|
11874
|
+
],
|
|
11875
|
+
"query": [],
|
|
11876
|
+
"body": null
|
|
11877
|
+
},
|
|
11878
|
+
{
|
|
11879
|
+
"group": "sites",
|
|
11880
|
+
"name": "unpause-site-autopilot",
|
|
11881
|
+
"method": "POST",
|
|
11882
|
+
"path": "/api/v1/sites/{site_uuid}/patching/autopilot/unpause",
|
|
11883
|
+
"policy": "mfa",
|
|
11884
|
+
"summary": "Turn Autopilot on for a website that was enrolled paused",
|
|
11885
|
+
"description": "Clear the website's own paused switch. Administrators.",
|
|
11886
|
+
"pathParams": [
|
|
11887
|
+
"site_uuid"
|
|
11888
|
+
],
|
|
11889
|
+
"query": [],
|
|
11890
|
+
"body": null
|
|
11891
|
+
},
|
|
10422
11892
|
{
|
|
10423
11893
|
"group": "sites",
|
|
10424
11894
|
"name": "update-declared-stack",
|
|
@@ -11650,6 +13120,18 @@
|
|
|
11650
13120
|
"query": [],
|
|
11651
13121
|
"body": null
|
|
11652
13122
|
},
|
|
13123
|
+
{
|
|
13124
|
+
"group": "users",
|
|
13125
|
+
"name": "read-phone-security-alerts",
|
|
13126
|
+
"method": "GET",
|
|
13127
|
+
"path": "/api/v1/users/me/phone-number/security-alerts",
|
|
13128
|
+
"policy": "read",
|
|
13129
|
+
"summary": "Read Phone Security Alerts",
|
|
13130
|
+
"description": "Whether security alerts reach your phone, for each organisation.",
|
|
13131
|
+
"pathParams": [],
|
|
13132
|
+
"query": [],
|
|
13133
|
+
"body": null
|
|
13134
|
+
},
|
|
11653
13135
|
{
|
|
11654
13136
|
"group": "users",
|
|
11655
13137
|
"name": "read-user-by-id",
|
|
@@ -11793,6 +13275,30 @@
|
|
|
11793
13275
|
]
|
|
11794
13276
|
}
|
|
11795
13277
|
},
|
|
13278
|
+
{
|
|
13279
|
+
"group": "users",
|
|
13280
|
+
"name": "set-phone-security-alerts",
|
|
13281
|
+
"method": "PUT",
|
|
13282
|
+
"path": "/api/v1/users/me/phone-number/security-alerts/{organization_id}",
|
|
13283
|
+
"policy": "dashboard_only",
|
|
13284
|
+
"summary": "Set Phone Security Alerts",
|
|
13285
|
+
"description": "Turn security alerts by phone on or off for one organisation where only administrators get them. Changes phone only, never email (#2438).",
|
|
13286
|
+
"pathParams": [
|
|
13287
|
+
"organization_id"
|
|
13288
|
+
],
|
|
13289
|
+
"query": [],
|
|
13290
|
+
"body": {
|
|
13291
|
+
"required": true,
|
|
13292
|
+
"fields": [
|
|
13293
|
+
{
|
|
13294
|
+
"name": "opted_in",
|
|
13295
|
+
"type": "boolean",
|
|
13296
|
+
"required": true,
|
|
13297
|
+
"description": ""
|
|
13298
|
+
}
|
|
13299
|
+
]
|
|
13300
|
+
}
|
|
13301
|
+
},
|
|
11796
13302
|
{
|
|
11797
13303
|
"group": "users",
|
|
11798
13304
|
"name": "set-user-organizations",
|