Skip to content

Commit

Permalink
fix: add user_id only to PUT file, folder, weblink (box/box-openapi#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Dec 9, 2024
1 parent a872d25 commit 71ca4ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "5604447", "specHash": "b2a3e3b", "version": "1.8.0" }
{ "engineHash": "5604447", "specHash": "c9d7bb5", "version": "1.8.0" }
2 changes: 1 addition & 1 deletion src/managers/files.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export interface UpdateFileByIdRequestBodyParentField {
* The ID of parent item */
readonly id?: string;
/**
* The input for `{user_id}` is optional. Moving to non-root folder is not allowed when `{user_id}` is present. Parent folder id should be zero when `{user_id}` is provided. */
* The input for `user_id` is optional. Moving to non-root folder is not allowed when `user_id` is present. Parent folder id should be zero when `user_id` is provided. */
readonly userId?: string;
readonly rawData?: SerializedData;
}
Expand Down
7 changes: 2 additions & 5 deletions src/managers/folders.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ export type UpdateFolderByIdRequestBodySyncStateField =
| 'partially_synced';
export interface UpdateFolderByIdRequestBodyParentField {
/**
* The ID of the new parent folder */
* The ID of parent item */
readonly id?: string;
/**
* The input for `{user_id}` is optional. Moving to non-root folder is not allowed when `{user_id}` is present. Parent folder id should be zero when `{user_id}` is provided. */
* The input for `user_id` is optional. Moving to non-root folder is not allowed when `user_id` is present. Parent folder id should be zero when `user_id` is provided. */
readonly userId?: string;
readonly rawData?: SerializedData;
}
Expand Down Expand Up @@ -476,9 +476,6 @@ export interface UpdateFolderByIdRequestBody {
* Specifies if users who are not the owner
* of the folder can invite new collaborators to the folder. */
readonly canNonOwnersInvite?: boolean;
/**
* The parent folder for this folder. Use this to move
* the folder or to restore it out of the trash. */
readonly parent?: UpdateFolderByIdRequestBodyParentField;
readonly sharedLink?: UpdateFolderByIdRequestBodySharedLinkField;
readonly folderUploadEmail?: UpdateFolderByIdRequestBodyFolderUploadEmailField | null;
Expand Down
2 changes: 1 addition & 1 deletion src/managers/webLinks.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export interface UpdateWebLinkByIdRequestBodyParentField {
* The ID of parent item */
readonly id?: string;
/**
* The input for `{user_id}` is optional. Moving to non-root folder is not allowed when `{user_id}` is present. Parent folder id should be zero when `{user_id}` is provided. */
* The input for `user_id` is optional. Moving to non-root folder is not allowed when `user_id` is present. Parent folder id should be zero when `user_id` is provided. */
readonly userId?: string;
readonly rawData?: SerializedData;
}
Expand Down

0 comments on commit 71ca4ae

Please sign in to comment.