From 0a29c66a1f49ca3887852a73cec5b7c74f10fc11 Mon Sep 17 00:00:00 2001 From: box-apimgmt <142984025+box-apimgmt@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:17:59 +0100 Subject: [PATCH] fix: Update storage policy assignments (#394) --- openapi.json | 57 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/openapi.json b/openapi.json index 8ebbda34..c811e8ea 100644 --- a/openapi.json +++ b/openapi.json @@ -14,7 +14,7 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" }, "version": "2.0.0", - "x-box-commit-hash": "d6b3a4d2fb" + "x-box-commit-hash": "1eb7bcd21e" }, "servers": [ { @@ -24467,6 +24467,16 @@ "$ref": "#/components/schemas/SignRequestCreateSigner" }, "description": "Array of signers for the sign request. 35 is the max number of signers permitted." + }, + "parent_folder": { + "allOf": [ + { + "$ref": "#/components/schemas/Folder--Mini" + }, + { + "description": "The destination folder to place final, signed document and signing\nlog. Only `ID` and `type` fields are required. The root folder,\nfolder ID `0`, cannot be used and can also not be null.\n\nWhen this value is not passed in when the signature request, then\nwe will use a default folder which is either the parent folder of\nthe first source file in the payload if we have the permission to\nupload to that folder or a folder called \"My Sign Requests\"." + } + ] } } } @@ -32248,6 +32258,10 @@ ], "x-box-variant": "mini", "description": "A mini description of a Storage Policy object", + "required": [ + "id", + "type" + ], "properties": { "id": { "type": "string", @@ -32270,7 +32284,24 @@ "x-box-resource-id": "storage_policy_assignment", "x-box-tag": "storage_policy_assignments", "description": "The assignment of a storage policy to a user or enterprise", + "required": [ + "id", + "type" + ], "properties": { + "id": { + "type": "string", + "description": "The unique identifier for a storage policy assignment.", + "example": "ZW50ZXJwcmlzZV8xMjM0NTY3ODkw" + }, + "type": { + "type": "string", + "description": "`storage_policy_assignment`", + "example": "storage_policy_assignment", + "enum": [ + "storage_policy_assignment" + ] + }, "storage_policy": { "allOf": [ { @@ -36398,9 +36429,6 @@ ], "x-box-variant": "base", "description": "A request to create a sign request object", - "required": [ - "parent_folder" - ], "properties": { "is_document_preparation_needed": { "type": "boolean", @@ -36442,16 +36470,6 @@ "description": "Reminds signers to sign a document on day 3, 8, 13 and 18. Reminders are only sent to outstanding signers.", "example": true }, - "parent_folder": { - "allOf": [ - { - "$ref": "#/components/schemas/Folder--Mini" - }, - { - "description": "The destination folder to place final, signed document and signing\nlog. Only `ID` and `type` fields are required. The root folder,\nfolder ID `0`, cannot be used." - } - ] - }, "name": { "type": "string", "example": "name", @@ -36600,6 +36618,17 @@ "example": "2021-04-26T08:12:13.982Z", "description": "Uses `days_valid` to calculate the date and time, in GMT, the sign request will expire if unsigned.", "nullable": true + }, + "parent_folder": { + "nullable": false, + "allOf": [ + { + "$ref": "#/components/schemas/Folder--Mini" + }, + { + "description": "The destination folder to place final, signed document and signing\nlog.\n\nWhen this value was not passed in when the signature request was \ncreated, then we will use a default folder which is either the parent\nfolder of the first source file in the payload if we have the permission\nto upload to that folder or a folder called \"My Sign Requests\"." + } + ] } } }