Skip to content

Commit fd1c597

Browse files
feat: Support optional userId parameter for updating files, folders and web links (box/box-openapi#488) (#340)
1 parent 9ade0e9 commit fd1c597

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "5604447", "specHash": "d7dfe68", "version": "1.5.0" }
1+
{ "engineHash": "5604447", "specHash": "c9d7bb5", "version": "1.5.0" }

Box.Sdk.Gen/Managers/Files/UpdateFileByIdRequestBodyParentField.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ public class UpdateFileByIdRequestBodyParentField : ISerializable {
1414
[JsonPropertyName("id")]
1515
public string? Id { get; init; }
1616

17+
/// <summary>
18+
/// 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.
19+
/// </summary>
20+
[JsonPropertyName("user_id")]
21+
public string? UserId { get; init; }
22+
1723
public UpdateFileByIdRequestBodyParentField() {
1824

1925
}

Box.Sdk.Gen/Managers/Folders/UpdateFolderByIdRequestBody.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ public class UpdateFolderByIdRequestBody : ISerializable {
4848
[JsonPropertyName("can_non_owners_invite")]
4949
public bool? CanNonOwnersInvite { get; init; }
5050

51-
/// <summary>
52-
/// The parent folder for this folder. Use this to move
53-
/// the folder or to restore it out of the trash.
54-
/// </summary>
5551
[JsonPropertyName("parent")]
5652
public UpdateFolderByIdRequestBodyParentField? Parent { get; init; }
5753

Box.Sdk.Gen/Managers/Folders/UpdateFolderByIdRequestBodyParentField.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
namespace Box.Sdk.Gen.Managers {
1010
public class UpdateFolderByIdRequestBodyParentField : ISerializable {
1111
/// <summary>
12-
/// The ID of the new parent folder
12+
/// The ID of parent item
1313
/// </summary>
1414
[JsonPropertyName("id")]
1515
public string? Id { get; init; }
1616

17+
/// <summary>
18+
/// 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.
19+
/// </summary>
20+
[JsonPropertyName("user_id")]
21+
public string? UserId { get; init; }
22+
1723
public UpdateFolderByIdRequestBodyParentField() {
1824

1925
}

Box.Sdk.Gen/Managers/WebLinks/UpdateWebLinkByIdRequestBodyParentField.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ public class UpdateWebLinkByIdRequestBodyParentField : ISerializable {
1313
[JsonPropertyName("id")]
1414
public string? Id { get; init; }
1515

16+
/// <summary>
17+
/// 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.
18+
/// </summary>
19+
[JsonPropertyName("user_id")]
20+
public string? UserId { get; init; }
21+
1622
public UpdateWebLinkByIdRequestBodyParentField() {
1723

1824
}

0 commit comments

Comments
 (0)