cloneLexical
Agent Runtimes / api/spacer/lexicals / cloneLexical
Function: cloneLexical()
cloneLexical(
token,id,baseUrl?):Promise<CreateLexicalResponse>
Defined in: src/api/spacer/lexicals.ts:113
Clone a lexical document.
Parameters
token
string
Authentication token
id
string
The document ID to clone
baseUrl?
string = DEFAULT_SERVICE_URLS.SPACER
Base URL for the API (defaults to production)
Returns
Promise<CreateLexicalResponse>
Promise resolving to the cloned document response