Folder

Clone View

Clone a view from source folder to target folder. Use 'Get All Views' to get available view IDs for cloning.

Request rules. targetFolderId must differ from sourceFolderId. Sending the same id for both is rejected.

post/folder/views/clone

Request

  • Base URL: https://api.speakai.co/v1
  • URL: https://api.speakai.co/v1/folder/views/clone
  • Auth: API key in header x-speakai-key and API key in header x-access-token

Request body

sourceFolderIdstring required

The ID of the folder that holds the view you want to copy. Required.

targetFolderIdstring required

The ID of the folder you want the copied view added to. It must be a different folder from sourceFolderId. Required. Rejected when it equals sourceFolderId,. invalid(the schema). The error message is "Source and target folder IDs cannot be the same".

viewIdstring required

The ID of the view inside the source folder that you want to copy. It must belong to an active view, otherwise the request returns 404. Required.

namestring required

The name for the copied view in the target folder. Required.

isDefaultboolean

Whether the copied view becomes the default view for the target folder. Setting it to true clears the default flag on your other active views in that folder. Optional. The schema declares a default of false, but the middleware discards the schema's converted value, so an omitted isDefault reaches the handler as undefined. The stored value still ends up false, because the FolderView model defaults isDefault to false.

Response

Success. This spec records no example response body for this endpoint.

Changes

No recorded changes to this operation across all 2 revisions of this API.