|
14362 | 14362 | "type": "string" |
14363 | 14363 | } |
14364 | 14364 | ] |
| 14365 | + }, |
| 14366 | + "allowChildOverride": { |
| 14367 | + "type": "boolean", |
| 14368 | + "default": false, |
| 14369 | + "description": "Whether lower layers may override this system default." |
14365 | 14370 | } |
14366 | 14371 | } |
14367 | 14372 | } |
@@ -14496,6 +14501,314 @@ |
14496 | 14501 | } |
14497 | 14502 | } |
14498 | 14503 | }, |
| 14504 | + "/ocs/v2.php/apps/libresign/api/{apiVersion}/policies/user/{userId}/{policyKey}": { |
| 14505 | + "put": { |
| 14506 | + "operationId": "policy-set-user-policy-for-user", |
| 14507 | + "summary": "Save a user policy preference for a target user (admin scope)", |
| 14508 | + "description": "This endpoint requires admin access", |
| 14509 | + "tags": [ |
| 14510 | + "policy" |
| 14511 | + ], |
| 14512 | + "security": [ |
| 14513 | + { |
| 14514 | + "bearer_auth": [] |
| 14515 | + }, |
| 14516 | + { |
| 14517 | + "basic_auth": [] |
| 14518 | + } |
| 14519 | + ], |
| 14520 | + "requestBody": { |
| 14521 | + "required": false, |
| 14522 | + "content": { |
| 14523 | + "application/json": { |
| 14524 | + "schema": { |
| 14525 | + "type": "object", |
| 14526 | + "properties": { |
| 14527 | + "value": { |
| 14528 | + "nullable": true, |
| 14529 | + "description": "Policy value to persist as target user preference.", |
| 14530 | + "anyOf": [ |
| 14531 | + { |
| 14532 | + "type": "boolean" |
| 14533 | + }, |
| 14534 | + { |
| 14535 | + "type": "integer", |
| 14536 | + "format": "int64" |
| 14537 | + }, |
| 14538 | + { |
| 14539 | + "type": "number", |
| 14540 | + "format": "double" |
| 14541 | + }, |
| 14542 | + { |
| 14543 | + "type": "string" |
| 14544 | + } |
| 14545 | + ] |
| 14546 | + } |
| 14547 | + } |
| 14548 | + } |
| 14549 | + } |
| 14550 | + } |
| 14551 | + }, |
| 14552 | + "parameters": [ |
| 14553 | + { |
| 14554 | + "name": "apiVersion", |
| 14555 | + "in": "path", |
| 14556 | + "required": true, |
| 14557 | + "schema": { |
| 14558 | + "type": "string", |
| 14559 | + "enum": [ |
| 14560 | + "v1" |
| 14561 | + ], |
| 14562 | + "default": "v1" |
| 14563 | + } |
| 14564 | + }, |
| 14565 | + { |
| 14566 | + "name": "userId", |
| 14567 | + "in": "path", |
| 14568 | + "description": "Target user identifier that receives the policy preference.", |
| 14569 | + "required": true, |
| 14570 | + "schema": { |
| 14571 | + "type": "string", |
| 14572 | + "pattern": "^[^/]+$" |
| 14573 | + } |
| 14574 | + }, |
| 14575 | + { |
| 14576 | + "name": "policyKey", |
| 14577 | + "in": "path", |
| 14578 | + "description": "Policy identifier to persist for the target user.", |
| 14579 | + "required": true, |
| 14580 | + "schema": { |
| 14581 | + "type": "string", |
| 14582 | + "pattern": "^[a-z0-9_]+$" |
| 14583 | + } |
| 14584 | + }, |
| 14585 | + { |
| 14586 | + "name": "OCS-APIRequest", |
| 14587 | + "in": "header", |
| 14588 | + "description": "Required to be true for the API request to pass", |
| 14589 | + "required": true, |
| 14590 | + "schema": { |
| 14591 | + "type": "boolean", |
| 14592 | + "default": true |
| 14593 | + } |
| 14594 | + } |
| 14595 | + ], |
| 14596 | + "responses": { |
| 14597 | + "200": { |
| 14598 | + "description": "OK", |
| 14599 | + "content": { |
| 14600 | + "application/json": { |
| 14601 | + "schema": { |
| 14602 | + "type": "object", |
| 14603 | + "required": [ |
| 14604 | + "ocs" |
| 14605 | + ], |
| 14606 | + "properties": { |
| 14607 | + "ocs": { |
| 14608 | + "type": "object", |
| 14609 | + "required": [ |
| 14610 | + "meta", |
| 14611 | + "data" |
| 14612 | + ], |
| 14613 | + "properties": { |
| 14614 | + "meta": { |
| 14615 | + "$ref": "#/components/schemas/OCSMeta" |
| 14616 | + }, |
| 14617 | + "data": { |
| 14618 | + "$ref": "#/components/schemas/SystemPolicyWriteResponse" |
| 14619 | + } |
| 14620 | + } |
| 14621 | + } |
| 14622 | + } |
| 14623 | + } |
| 14624 | + } |
| 14625 | + } |
| 14626 | + }, |
| 14627 | + "400": { |
| 14628 | + "description": "Invalid policy value", |
| 14629 | + "content": { |
| 14630 | + "application/json": { |
| 14631 | + "schema": { |
| 14632 | + "type": "object", |
| 14633 | + "required": [ |
| 14634 | + "ocs" |
| 14635 | + ], |
| 14636 | + "properties": { |
| 14637 | + "ocs": { |
| 14638 | + "type": "object", |
| 14639 | + "required": [ |
| 14640 | + "meta", |
| 14641 | + "data" |
| 14642 | + ], |
| 14643 | + "properties": { |
| 14644 | + "meta": { |
| 14645 | + "$ref": "#/components/schemas/OCSMeta" |
| 14646 | + }, |
| 14647 | + "data": { |
| 14648 | + "$ref": "#/components/schemas/ErrorResponse" |
| 14649 | + } |
| 14650 | + } |
| 14651 | + } |
| 14652 | + } |
| 14653 | + } |
| 14654 | + } |
| 14655 | + } |
| 14656 | + }, |
| 14657 | + "500": { |
| 14658 | + "description": "Internal server error", |
| 14659 | + "content": { |
| 14660 | + "application/json": { |
| 14661 | + "schema": { |
| 14662 | + "type": "object", |
| 14663 | + "required": [ |
| 14664 | + "ocs" |
| 14665 | + ], |
| 14666 | + "properties": { |
| 14667 | + "ocs": { |
| 14668 | + "type": "object", |
| 14669 | + "required": [ |
| 14670 | + "meta", |
| 14671 | + "data" |
| 14672 | + ], |
| 14673 | + "properties": { |
| 14674 | + "meta": { |
| 14675 | + "$ref": "#/components/schemas/OCSMeta" |
| 14676 | + }, |
| 14677 | + "data": { |
| 14678 | + "$ref": "#/components/schemas/ErrorResponse" |
| 14679 | + } |
| 14680 | + } |
| 14681 | + } |
| 14682 | + } |
| 14683 | + } |
| 14684 | + } |
| 14685 | + } |
| 14686 | + } |
| 14687 | + } |
| 14688 | + }, |
| 14689 | + "delete": { |
| 14690 | + "operationId": "policy-clear-user-policy-for-user", |
| 14691 | + "summary": "Clear a user policy preference for a target user (admin scope)", |
| 14692 | + "description": "This endpoint requires admin access", |
| 14693 | + "tags": [ |
| 14694 | + "policy" |
| 14695 | + ], |
| 14696 | + "security": [ |
| 14697 | + { |
| 14698 | + "bearer_auth": [] |
| 14699 | + }, |
| 14700 | + { |
| 14701 | + "basic_auth": [] |
| 14702 | + } |
| 14703 | + ], |
| 14704 | + "parameters": [ |
| 14705 | + { |
| 14706 | + "name": "apiVersion", |
| 14707 | + "in": "path", |
| 14708 | + "required": true, |
| 14709 | + "schema": { |
| 14710 | + "type": "string", |
| 14711 | + "enum": [ |
| 14712 | + "v1" |
| 14713 | + ], |
| 14714 | + "default": "v1" |
| 14715 | + } |
| 14716 | + }, |
| 14717 | + { |
| 14718 | + "name": "userId", |
| 14719 | + "in": "path", |
| 14720 | + "description": "Target user identifier that receives the policy preference removal.", |
| 14721 | + "required": true, |
| 14722 | + "schema": { |
| 14723 | + "type": "string", |
| 14724 | + "pattern": "^[^/]+$" |
| 14725 | + } |
| 14726 | + }, |
| 14727 | + { |
| 14728 | + "name": "policyKey", |
| 14729 | + "in": "path", |
| 14730 | + "description": "Policy identifier to clear for the target user.", |
| 14731 | + "required": true, |
| 14732 | + "schema": { |
| 14733 | + "type": "string", |
| 14734 | + "pattern": "^[a-z0-9_]+$" |
| 14735 | + } |
| 14736 | + }, |
| 14737 | + { |
| 14738 | + "name": "OCS-APIRequest", |
| 14739 | + "in": "header", |
| 14740 | + "description": "Required to be true for the API request to pass", |
| 14741 | + "required": true, |
| 14742 | + "schema": { |
| 14743 | + "type": "boolean", |
| 14744 | + "default": true |
| 14745 | + } |
| 14746 | + } |
| 14747 | + ], |
| 14748 | + "responses": { |
| 14749 | + "200": { |
| 14750 | + "description": "OK", |
| 14751 | + "content": { |
| 14752 | + "application/json": { |
| 14753 | + "schema": { |
| 14754 | + "type": "object", |
| 14755 | + "required": [ |
| 14756 | + "ocs" |
| 14757 | + ], |
| 14758 | + "properties": { |
| 14759 | + "ocs": { |
| 14760 | + "type": "object", |
| 14761 | + "required": [ |
| 14762 | + "meta", |
| 14763 | + "data" |
| 14764 | + ], |
| 14765 | + "properties": { |
| 14766 | + "meta": { |
| 14767 | + "$ref": "#/components/schemas/OCSMeta" |
| 14768 | + }, |
| 14769 | + "data": { |
| 14770 | + "$ref": "#/components/schemas/SystemPolicyWriteResponse" |
| 14771 | + } |
| 14772 | + } |
| 14773 | + } |
| 14774 | + } |
| 14775 | + } |
| 14776 | + } |
| 14777 | + } |
| 14778 | + }, |
| 14779 | + "500": { |
| 14780 | + "description": "Internal server error", |
| 14781 | + "content": { |
| 14782 | + "application/json": { |
| 14783 | + "schema": { |
| 14784 | + "type": "object", |
| 14785 | + "required": [ |
| 14786 | + "ocs" |
| 14787 | + ], |
| 14788 | + "properties": { |
| 14789 | + "ocs": { |
| 14790 | + "type": "object", |
| 14791 | + "required": [ |
| 14792 | + "meta", |
| 14793 | + "data" |
| 14794 | + ], |
| 14795 | + "properties": { |
| 14796 | + "meta": { |
| 14797 | + "$ref": "#/components/schemas/OCSMeta" |
| 14798 | + }, |
| 14799 | + "data": { |
| 14800 | + "$ref": "#/components/schemas/ErrorResponse" |
| 14801 | + } |
| 14802 | + } |
| 14803 | + } |
| 14804 | + } |
| 14805 | + } |
| 14806 | + } |
| 14807 | + } |
| 14808 | + } |
| 14809 | + } |
| 14810 | + } |
| 14811 | + }, |
14499 | 14812 | "/ocs/v2.php/apps/libresign/api/{apiVersion}/setting/has-root-cert": { |
14500 | 14813 | "get": { |
14501 | 14814 | "operationId": "setting-has-root-cert", |
|
0 commit comments