Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions api/admin/folders.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ type FoldersResult struct {

// FolderResult contains details of a single folder.
type FolderResult struct {
Name string `json:"name"`
Path string `json:"path"`
Name string `json:"name"`
Path string `json:"path"`
ExternalID string `json:"external_id,omitempty"`
}

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

// CreateFolderResult is the result of CreateFolder.
type CreateFolderResult struct {
Success bool `json:"success"`
Path string `json:"path"`
Name string `json:"name"`
Error api.ErrorResp `json:"error,omitempty"`
Success bool `json:"success"`
Path string `json:"path"`
Name string `json:"name"`
ExternalID string `json:"external_id,omitempty"`
Error api.ErrorResp `json:"error,omitempty"`
}

// RenameFolderParams are the parameters for RenameFolder.
Expand Down