Skip to content

Commit

Permalink
feat: Support optional userId parameter for updating files, folders…
Browse files Browse the repository at this point in the history
… and web links (box/box-openapi#488) (#340)
  • Loading branch information
box-sdk-build authored Dec 9, 2024
1 parent 9ade0e9 commit fd1c597
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "5604447", "specHash": "d7dfe68", "version": "1.5.0" }
{ "engineHash": "5604447", "specHash": "c9d7bb5", "version": "1.5.0" }
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public class UpdateFileByIdRequestBodyParentField : ISerializable {
[JsonPropertyName("id")]
public string? Id { get; init; }

/// <summary>
/// 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.
/// </summary>
[JsonPropertyName("user_id")]
public string? UserId { get; init; }

public UpdateFileByIdRequestBodyParentField() {

}
Expand Down
4 changes: 0 additions & 4 deletions Box.Sdk.Gen/Managers/Folders/UpdateFolderByIdRequestBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ public class UpdateFolderByIdRequestBody : ISerializable {
[JsonPropertyName("can_non_owners_invite")]
public bool? CanNonOwnersInvite { get; init; }

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@
namespace Box.Sdk.Gen.Managers {
public class UpdateFolderByIdRequestBodyParentField : ISerializable {
/// <summary>
/// The ID of the new parent folder
/// The ID of parent item
/// </summary>
[JsonPropertyName("id")]
public string? Id { get; init; }

/// <summary>
/// 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.
/// </summary>
[JsonPropertyName("user_id")]
public string? UserId { get; init; }

public UpdateFolderByIdRequestBodyParentField() {

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public class UpdateWebLinkByIdRequestBodyParentField : ISerializable {
[JsonPropertyName("id")]
public string? Id { get; init; }

/// <summary>
/// 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.
/// </summary>
[JsonPropertyName("user_id")]
public string? UserId { get; init; }

public UpdateWebLinkByIdRequestBodyParentField() {

}
Expand Down

0 comments on commit fd1c597

Please sign in to comment.