|
570 | 570 | "scope_type": { |
571 | 571 | "$ref": "#/components/schemas/AppConfigScopeType", |
572 | 572 | "description": "Scope at which fragments may be written (public | domain | user)." |
| 573 | + }, |
| 574 | + "rank": { |
| 575 | + "anyOf": [ |
| 576 | + { |
| 577 | + "type": "integer" |
| 578 | + }, |
| 579 | + { |
| 580 | + "type": "null" |
| 581 | + } |
| 582 | + ], |
| 583 | + "default": null, |
| 584 | + "description": "Merge rank applied to fragments under this entry (low to high; higher wins). Defaults to the scope type's default rank (public=100, domain=200, user=300).", |
| 585 | + "title": "Rank" |
573 | 586 | } |
574 | 587 | }, |
575 | 588 | "required": [ |
|
705 | 718 | "enum": [ |
706 | 719 | "config_name", |
707 | 720 | "scope_type", |
| 721 | + "rank", |
708 | 722 | "created_at", |
709 | 723 | "updated_at" |
710 | 724 | ], |
|
954 | 968 | "title": "SearchAppConfigAllowListInput", |
955 | 969 | "type": "object" |
956 | 970 | }, |
| 971 | + "UpdateAppConfigAllowListInput": { |
| 972 | + "description": "Input for updating an app config allow-list entry.\n\nOnly ``rank`` is updatable — the identity pair (``config_name``, ``scope_type``)\nis immutable (purge and recreate to change it).", |
| 973 | + "properties": { |
| 974 | + "id": { |
| 975 | + "description": "App config allow-list entry id to update.", |
| 976 | + "format": "uuid", |
| 977 | + "title": "Id", |
| 978 | + "type": "string" |
| 979 | + }, |
| 980 | + "rank": { |
| 981 | + "anyOf": [ |
| 982 | + { |
| 983 | + "type": "integer" |
| 984 | + }, |
| 985 | + { |
| 986 | + "type": "null" |
| 987 | + } |
| 988 | + ], |
| 989 | + "default": null, |
| 990 | + "description": "New merge rank applied to fragments under this entry (low to high; higher wins). Omit to leave unchanged.", |
| 991 | + "title": "Rank" |
| 992 | + } |
| 993 | + }, |
| 994 | + "required": [ |
| 995 | + "id" |
| 996 | + ], |
| 997 | + "title": "UpdateAppConfigAllowListInput", |
| 998 | + "type": "object" |
| 999 | + }, |
957 | 1000 | "CreateAppConfigDefinitionInput": { |
958 | 1001 | "description": "Input for registering a new app config definition.", |
959 | 1002 | "properties": { |
|
38611 | 38654 | ], |
38612 | 38655 | "description": "Get an app config allow-list entry by id (superadmin only).\n\n**Preconditions:**\n* Superadmin privilege required.\n" |
38613 | 38656 | }, |
| 38657 | + "patch": { |
| 38658 | + "operationId": "v2/app-config-allow-list.admin_update", |
| 38659 | + "tags": [ |
| 38660 | + "v2/app-config-allow-list" |
| 38661 | + ], |
| 38662 | + "responses": { |
| 38663 | + "200": { |
| 38664 | + "description": "Successful response" |
| 38665 | + } |
| 38666 | + }, |
| 38667 | + "security": [ |
| 38668 | + { |
| 38669 | + "TokenAuth": [] |
| 38670 | + } |
| 38671 | + ], |
| 38672 | + "requestBody": { |
| 38673 | + "content": { |
| 38674 | + "application/json": { |
| 38675 | + "schema": { |
| 38676 | + "$ref": "#/components/schemas/UpdateAppConfigAllowListInput" |
| 38677 | + } |
| 38678 | + } |
| 38679 | + } |
| 38680 | + }, |
| 38681 | + "parameters": [ |
| 38682 | + { |
| 38683 | + "name": "app_config_allow_list_id", |
| 38684 | + "in": "path", |
| 38685 | + "required": true, |
| 38686 | + "schema": { |
| 38687 | + "type": "string" |
| 38688 | + } |
| 38689 | + } |
| 38690 | + ], |
| 38691 | + "description": "Update an app config allow-list entry's rank by id (superadmin only).\n\n**Preconditions:**\n* Superadmin privilege required.\n" |
| 38692 | + }, |
38614 | 38693 | "delete": { |
38615 | 38694 | "operationId": "v2/app-config-allow-list.admin_purge", |
38616 | 38695 | "tags": [ |
|
0 commit comments