Skip to content

Commit d785f74

Browse files
authored
Add ExternalID to CreateFolderResult and FolderResult
1 parent 0215596 commit d785f74

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

api/admin/folders.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ type FoldersResult struct {
3939

4040
// FolderResult contains details of a single folder.
4141
type FolderResult struct {
42-
Name string `json:"name"`
43-
Path string `json:"path"`
42+
Name string `json:"name"`
43+
Path string `json:"path"`
44+
ExternalID string `json:"external_id,omitempty"`
4445
}
4546

4647
// SubFoldersParams are the parameters for SubFolders.
@@ -79,10 +80,11 @@ func (a *API) CreateFolder(ctx context.Context, params CreateFolderParams) (*Cre
7980

8081
// CreateFolderResult is the result of CreateFolder.
8182
type CreateFolderResult struct {
82-
Success bool `json:"success"`
83-
Path string `json:"path"`
84-
Name string `json:"name"`
85-
Error api.ErrorResp `json:"error,omitempty"`
83+
Success bool `json:"success"`
84+
Path string `json:"path"`
85+
Name string `json:"name"`
86+
ExternalID string `json:"external_id,omitempty"`
87+
Error api.ErrorResp `json:"error,omitempty"`
8688
}
8789

8890
// RenameFolderParams are the parameters for RenameFolder.

0 commit comments

Comments
 (0)