|
14 | 14 | "url": "http://www.apache.org/licenses/LICENSE-2.0" |
15 | 15 | }, |
16 | 16 | "version": "2.0.0", |
17 | | - "x-box-commit-hash": "80879af1ee" |
| 17 | + "x-box-commit-hash": "9e8bda337c" |
18 | 18 | }, |
19 | 19 | "servers": [ |
20 | 20 | { |
|
3660 | 3660 | "name": "Aaron Levie" |
3661 | 3661 | }, |
3662 | 3662 | "additionalProperties": { |
3663 | | - "type": "string", |
3664 | | - "description": "A value for each of the fields that are present on the metadata\ntemplate.\n\nFor the `global.properties` template this can be an a list of zero\nor more fields, as this template allows for any generic key-value\npairs to be stored on the template.", |
3665 | | - "example": "Aaron Levie", |
3666 | | - "x-box-example-key": "name" |
3667 | | - } |
| 3663 | + "allOf": [ |
| 3664 | + {}, |
| 3665 | + { |
| 3666 | + "example": "Aaron Levie" |
| 3667 | + }, |
| 3668 | + { |
| 3669 | + "description": "A value for each of the fields that are present\non the metadata template.\nFor the `global.properties` template this can be\na list of zero or more fields,\nas this template allows for any generic key-value pairs \nto be stored stored in the template." |
| 3670 | + } |
| 3671 | + ] |
| 3672 | + }, |
| 3673 | + "x-box-example-key": "name" |
3668 | 3674 | } |
3669 | 3675 | } |
3670 | 3676 | } |
|
3675 | 3681 | "content": { |
3676 | 3682 | "application/json": { |
3677 | 3683 | "schema": { |
3678 | | - "$ref": "#/components/schemas/Metadata" |
| 3684 | + "$ref": "#/components/schemas/Metadata--Full" |
3679 | 3685 | } |
3680 | 3686 | } |
3681 | 3687 | } |
|
3818 | 3824 | "content": { |
3819 | 3825 | "application/json": { |
3820 | 3826 | "schema": { |
3821 | | - "$ref": "#/components/schemas/Metadata" |
| 3827 | + "$ref": "#/components/schemas/Metadata--Full" |
3822 | 3828 | } |
3823 | 3829 | } |
3824 | 3830 | } |
|
6761 | 6767 | "name": "Aaron Levie" |
6762 | 6768 | }, |
6763 | 6769 | "additionalProperties": { |
6764 | | - "type": "string", |
6765 | | - "description": "A value for each of the fields that are present on the metadata\ntemplate.\n\nFor the `global.properties` template this can be an a list of zero\nor more fields, as this template allows for any generic key-value\npairs to be stored on the template.", |
6766 | | - "example": "Aaron Levie", |
6767 | | - "x-box-example-key": "name" |
6768 | | - } |
| 6770 | + "allOf": [ |
| 6771 | + {}, |
| 6772 | + { |
| 6773 | + "example": "Aaron Levie" |
| 6774 | + }, |
| 6775 | + { |
| 6776 | + "description": "A value for each of the fields that are present on the metadata\ntemplate.\nFor the `global.properties` template this can be a list of zero\nor more fields, as this template allows for any generic key-value\npairs to be stored in the template." |
| 6777 | + } |
| 6778 | + ] |
| 6779 | + }, |
| 6780 | + "x-box-example-key": "name" |
6769 | 6781 | } |
6770 | 6782 | } |
6771 | 6783 | } |
|
6776 | 6788 | "content": { |
6777 | 6789 | "application/json": { |
6778 | 6790 | "schema": { |
6779 | | - "$ref": "#/components/schemas/Metadata" |
| 6791 | + "$ref": "#/components/schemas/Metadata--Full" |
6780 | 6792 | } |
6781 | 6793 | } |
6782 | 6794 | } |
|
6920 | 6932 | "content": { |
6921 | 6933 | "application/json": { |
6922 | 6934 | "schema": { |
6923 | | - "$ref": "#/components/schemas/Metadata" |
| 6935 | + "$ref": "#/components/schemas/Metadata--Full" |
6924 | 6936 | } |
6925 | 6937 | } |
6926 | 6938 | } |
|
7728 | 7740 | } |
7729 | 7741 | } |
7730 | 7742 | } |
7731 | | - }, |
7732 | | - "delete": { |
7733 | | - "operationId": "delete_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema", |
7734 | | - "summary": "Delete all classifications", |
7735 | | - "tags": [ |
7736 | | - "Classifications" |
7737 | | - ], |
7738 | | - "x-box-tag": "classifications", |
7739 | | - "x-box-sanitized": true, |
7740 | | - "description": "Delete all classifications by deleting the classification\nmetadata template.", |
7741 | | - "responses": { |
7742 | | - "204": { |
7743 | | - "description": "Returns an empty response when the metadata\ntemplate for classifications is successfully deleted." |
7744 | | - }, |
7745 | | - "default": { |
7746 | | - "description": "An unexpected client error.", |
7747 | | - "content": { |
7748 | | - "application/json": { |
7749 | | - "schema": { |
7750 | | - "$ref": "#/components/schemas/ClientError" |
7751 | | - } |
7752 | | - } |
7753 | | - } |
7754 | | - } |
7755 | | - } |
7756 | 7743 | } |
7757 | 7744 | }, |
7758 | 7745 | "/metadata_templates/enterprise/securityClassification-6VMVochwUWo/schema#add": { |
|
8022 | 8009 | } |
8023 | 8010 | } |
8024 | 8011 | }, |
8025 | | - "/metadata_templates/enterprise/securityClassification-6VMVochwUWo/schema#delete": { |
8026 | | - "put": { |
8027 | | - "operationId": "put_metadata_templates_enterprise_securityClassification-6VMVochwUWo_schema#delete", |
8028 | | - "summary": "Delete classification", |
8029 | | - "tags": [ |
8030 | | - "Classifications" |
8031 | | - ], |
8032 | | - "x-box-tag": "classifications", |
8033 | | - "x-box-sanitized": true, |
8034 | | - "description": "Removes a classification from the list of classifications\navailable to the enterprise.\n\nThis API can also be called by including the enterprise ID in the\nURL explicitly, for example\n`/metadata_templates/enterprise_12345/securityClassification-6VMVochwUWo/schema`.", |
8035 | | - "requestBody": { |
8036 | | - "content": { |
8037 | | - "application/json-patch+json": { |
8038 | | - "schema": { |
8039 | | - "description": "An array that contains one or more classifications to remove.", |
8040 | | - "type": "array", |
8041 | | - "items": { |
8042 | | - "type": "object", |
8043 | | - "description": "A single classification to remove.", |
8044 | | - "required": [ |
8045 | | - "op", |
8046 | | - "fieldKey", |
8047 | | - "enumOptionKey" |
8048 | | - ], |
8049 | | - "properties": { |
8050 | | - "op": { |
8051 | | - "type": "string", |
8052 | | - "example": "removeEnumOption", |
8053 | | - "description": "The type of change to perform on the classification\nobject.", |
8054 | | - "enum": [ |
8055 | | - "removeEnumOption" |
8056 | | - ] |
8057 | | - }, |
8058 | | - "fieldKey": { |
8059 | | - "type": "string", |
8060 | | - "example": "Box__Security__Classification__Key", |
8061 | | - "description": "Defines classifications \navailable in the enterprise.", |
8062 | | - "enum": [ |
8063 | | - "Box__Security__Classification__Key" |
8064 | | - ] |
8065 | | - }, |
8066 | | - "enumOptionKey": { |
8067 | | - "type": "string", |
8068 | | - "example": "Sensitive", |
8069 | | - "description": "The label of the classification to remove." |
8070 | | - } |
8071 | | - } |
8072 | | - } |
8073 | | - } |
8074 | | - } |
8075 | | - } |
8076 | | - }, |
8077 | | - "responses": { |
8078 | | - "200": { |
8079 | | - "description": "Returns the updated `securityClassification` metadata template, which\ncontains a `Box__Security__Classification__Key` field that lists all\nthe classifications available to this enterprise.", |
8080 | | - "content": { |
8081 | | - "application/json": { |
8082 | | - "schema": { |
8083 | | - "$ref": "#/components/schemas/ClassificationTemplate" |
8084 | | - } |
8085 | | - } |
8086 | | - } |
8087 | | - }, |
8088 | | - "400": { |
8089 | | - "description": "Returned if any of the request parameters are not valid.", |
8090 | | - "content": { |
8091 | | - "application/json": { |
8092 | | - "schema": { |
8093 | | - "$ref": "#/components/schemas/ClientError" |
8094 | | - } |
8095 | | - } |
8096 | | - } |
8097 | | - }, |
8098 | | - "404": { |
8099 | | - "description": "Returned when a template name is not correct. Please make sure\nthe URL for the request is correct.", |
8100 | | - "content": { |
8101 | | - "application/json": { |
8102 | | - "schema": { |
8103 | | - "$ref": "#/components/schemas/ClientError" |
8104 | | - } |
8105 | | - } |
8106 | | - } |
8107 | | - }, |
8108 | | - "default": { |
8109 | | - "description": "An unexpected client error.", |
8110 | | - "content": { |
8111 | | - "application/json": { |
8112 | | - "schema": { |
8113 | | - "$ref": "#/components/schemas/ClientError" |
8114 | | - } |
8115 | | - } |
8116 | | - } |
8117 | | - } |
8118 | | - } |
8119 | | - } |
8120 | | - }, |
8121 | 8012 | "/metadata_templates/{scope}/{template_key}/schema": { |
8122 | 8013 | "get": { |
8123 | 8014 | "operationId": "get_metadata_templates_id_id_schema", |
|
8273 | 8164 | "name": "Aaron Levie" |
8274 | 8165 | }, |
8275 | 8166 | "additionalProperties": { |
8276 | | - "type": "string", |
8277 | | - "description": "The value of a custom data entry.", |
8278 | | - "example": "Aaron Levie", |
| 8167 | + "allOf": [ |
| 8168 | + {}, |
| 8169 | + { |
| 8170 | + "example": "Aaron Levie" |
| 8171 | + }, |
| 8172 | + { |
| 8173 | + "description": "A value for each of the fields that are present\non the metadata template.\nFor the `global.properties` template this can be\na list of zero or more fields,\nas this template allows for any generic key-value pairs \nto be stored stored in the template." |
| 8174 | + } |
| 8175 | + ], |
8279 | 8176 | "x-box-example-key": "name" |
8280 | 8177 | } |
8281 | 8178 | }, |
|
25342 | 25239 | "x-box-resource-id": "collaboration", |
25343 | 25240 | "x-box-tag": "user_collaborations", |
25344 | 25241 | "description": "Collaborations define access permissions for users and groups to files and\nfolders, similar to access control lists. A collaboration object grants a\nuser or group access to a file or folder with permissions defined by a\nspecific role.", |
| 25242 | + "required": [ |
| 25243 | + "id", |
| 25244 | + "type" |
| 25245 | + ], |
25345 | 25246 | "properties": { |
25346 | 25247 | "id": { |
25347 | 25248 | "type": "string", |
|
29786 | 29687 | "items": { |
29787 | 29688 | "oneOf": [ |
29788 | 29689 | { |
29789 | | - "$ref": "#/components/schemas/File--Mini" |
| 29690 | + "$ref": "#/components/schemas/File--Full" |
29790 | 29691 | }, |
29791 | 29692 | { |
29792 | 29693 | "$ref": "#/components/schemas/Folder--Mini" |
|
30186 | 30087 | }, |
30187 | 30088 | { |
30188 | 30089 | "additionalProperties": { |
30189 | | - "type": "string", |
30190 | | - "example": "Aaron Levie", |
| 30090 | + "allOf": [ |
| 30091 | + {}, |
| 30092 | + { |
| 30093 | + "example": "Aaron Levie" |
| 30094 | + }, |
| 30095 | + { |
| 30096 | + "description": "A value for each of the fields that are present\non the metadata template.\nFor the `global.properties` template this can be\na list of zero or more fields,\nas this template allows for any generic key-value pairs \nto be stored stored in the template." |
| 30097 | + } |
| 30098 | + ], |
30191 | 30099 | "x-box-example-key": "name" |
30192 | 30100 | } |
30193 | 30101 | } |
|
30504 | 30412 | "x-box-tag": "metadata_templates", |
30505 | 30413 | "description": "A template for metadata that can be applied to files and folders", |
30506 | 30414 | "required": [ |
30507 | | - "type" |
| 30415 | + "type", |
| 30416 | + "id" |
30508 | 30417 | ], |
30509 | 30418 | "properties": { |
30510 | 30419 | "id": { |
@@ -30789,10 +30698,10 @@ |
30789 | 30698 | { |
30790 | 30699 | "oneOf": [ |
30791 | 30700 | { |
30792 | | - "$ref": "#/components/schemas/File" |
| 30701 | + "$ref": "#/components/schemas/File--Full" |
30793 | 30702 | }, |
30794 | 30703 | { |
30795 | | - "$ref": "#/components/schemas/Folder" |
| 30704 | + "$ref": "#/components/schemas/Folder--Full" |
30796 | 30705 | }, |
30797 | 30706 | { |
30798 | 30707 | "$ref": "#/components/schemas/WebLink" |
@@ -32085,10 +31994,10 @@ |
32085 | 31994 | "items": { |
32086 | 31995 | "oneOf": [ |
32087 | 31996 | { |
32088 | | - "$ref": "#/components/schemas/File" |
| 31997 | + "$ref": "#/components/schemas/File--Full" |
32089 | 31998 | }, |
32090 | 31999 | { |
32091 | | - "$ref": "#/components/schemas/Folder" |
| 32000 | + "$ref": "#/components/schemas/Folder--Full" |
32092 | 32001 | }, |
32093 | 32002 | { |
32094 | 32003 | "$ref": "#/components/schemas/WebLink" |
@@ -32173,10 +32082,10 @@ |
32173 | 32082 | { |
32174 | 32083 | "oneOf": [ |
32175 | 32084 | { |
32176 | | - "$ref": "#/components/schemas/File" |
| 32085 | + "$ref": "#/components/schemas/File--Full" |
32177 | 32086 | }, |
32178 | 32087 | { |
32179 | | - "$ref": "#/components/schemas/Folder" |
| 32088 | + "$ref": "#/components/schemas/Folder--Full" |
32180 | 32089 | }, |
32181 | 32090 | { |
32182 | 32091 | "$ref": "#/components/schemas/WebLink" |
|
0 commit comments