This endpoint allows you to push a new version of a prompt.
You can specify the content, extra parameters, test values, draft status, and notes for the new version.
POST
/
v1
/
templates
/
{id}
/
versions
Create a new version
curl --request POST \ --url https://api.lunary.ai/v1/templates/{id}/versions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content": "Hello {{name}}, welcome to {{company}}!", "extra": { "temperature": 0.7, "max_tokens": 150 }, "isDraft": false, "notes": "Updated welcome message with company name"}'
Versioned key/value text, separate from model parameters and prompt variables.
Keys are preserved exactly, must not be blank, and are limited to 256 characters.
The reserved key proto is not allowed.
Values must be strings. Numbers, booleans, null, arrays, and objects are rejected.
The serialized object must be no larger than 64 KiB. Returned by prompt retrieval
endpoints, including public-key retrieval; do not store secrets here.
Omitted metadata defaults to an empty object on creation and is preserved on PATCH.
Versioned key/value text, separate from model parameters and prompt variables.
Keys are preserved exactly, must not be blank, and are limited to 256 characters.
The reserved key proto is not allowed.
Values must be strings. Numbers, booleans, null, arrays, and objects are rejected.
The serialized object must be no larger than 64 KiB. Returned by prompt retrieval
endpoints, including public-key retrieval; do not store secrets here.
Omitted metadata defaults to an empty object on creation and is preserved on PATCH.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lunary Documentation","colors":{"primary":"#099DFF","light":"#099DFF","dark":"#099DFF"},"logo":{"light":"https://mintcdn.com/lunary/jh1i7dZRvqbDfvzx/logo/light.svg?fit=max\u0026auto=format\u0026n=jh1i7dZRvqbDfvzx\u0026q=85\u0026s=d6a08adeee6c4e0a7c731580a97d6df0","dark":"https://mintcdn.com/lunary/vczTtzy07XKKcaZn/logo/dark.svg?fit=max\u0026auto=format\u0026n=vczTtzy07XKKcaZn\u0026q=85\u0026s=3921447bb20dbecef5efafe052f6bcf8"},"favicon":"https://mintcdn.com/lunary/vczTtzy07XKKcaZn/favicon.png?fit=max\u0026auto=format\u0026n=vczTtzy07XKKcaZn\u0026q=85\u0026s=b5002548a2fae8564b7071262518e535","api":{"openapi":{"source":"https://api.lunary.ai/v1/openapi","directory":"api"},"playground":{"display":"interactive","proxy":false},"examples":{"languages":["bash"]}},"navbar":{"links":[{"href":"mailto:support@lunary.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.lunary.ai"}},"integrations":{"intercom":{"appId":"pv95fmzm"}},"contextual":{"options":["copy","chatgpt","claude","mcp","add-mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lunary","hasAudioNarration":false,"actualSubdomain":"lunary","customDomains":["docs.lunary.ai"],"gitSource":{"type":"github","owner":"lunary-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aecb506dab9b27b2441ef0a","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":95},{"language":"default","tag":"Documentation","count":49},{"language":"default","tag":"Integrations","count":30},{"language":"default","tag":"Datasets v2","count":20},{"language":"default","tag":"Datasets","count":13},{"language":"default","tag":"Evals","count":12},{"language":"default","tag":"Runs","count":11},{"language":"default","tag":"Features","count":9},{"language":"default","tag":"Javascript","count":9},{"language":"default","tag":"More","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api/templates/create-a-new-version","slug":"/api/templates/create-a-new-version","pageMetadata":{"title":"Create a new version","description":"This endpoint allows you to push a new version of a prompt.\nYou can specify the content, extra parameters, test values, draft status, and notes for the new version.\n","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/templates/{id}/versions","href":"/api/templates/create-a-new-version","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This endpoint allows you to push a new version of a prompt.\\nYou can specify the content, extra parameters, test values, draft status, and notes for the new version.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a new version","description":"This endpoint allows you to push a new version of a prompt.\nYou can specify the content, extra parameters, test values, draft status, and notes for the new version.\n","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/templates/{id}/versions","href":"/api/templates/create-a-new-version","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create a new version","description":"This endpoint allows you to push a new version of a prompt.\nYou can specify the content, extra parameters, test values, draft status, and notes for the new version.\n","tags":["Templates","Versions"],"security":["6abb7572-c496-40d8-b986-1458a8bcbdaf"],"parameters":["fe240f48-606c-4bc8-94f0-9f7b1f2fff3b"],"requestBody":"214b0795-2db7-4eed-bd1d-60ada8a4c764","responses":{"200":"dcbf2313-dd83-4971-b7da-13b756bc57aa"},"method":"post","type":"path","servers":["9b60e1de-edac-467c-a636-fd750e30018b"],"path":"/v1/templates/{id}/versions","baseUrlOptions":["https://api.lunary.ai"],"title":"Create a new version","codeSamples":[],"requestExampleLanguages":["bash"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"fe240f48-606c-4bc8-94f0-9f7b1f2fff3b":{"in":"path","name":"id","required":true,"schema":{"type":"string","isRequired":true,"description":"The ID of the template to create a new version for","uniqueKey":"","typeLabel":"string"},"description":"The ID of the template to create a new version for"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["content","isDraft"],"properties":{"content":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","uniqueKey":"content.items.[INDEX].role","typeLabel":"string"},"content":{"type":"string","uniqueKey":"content.items.[INDEX].content","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"content","typeLabel":"object[]"},"isDraft":{"type":"boolean","isRequired":true,"uniqueKey":"isDraft","typeLabel":"boolean"},"metadata":{"type":"object","default":{},"maxProperties":100,"additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"description":"Versioned key/value text, separate from model parameters and prompt variables.\nKeys are preserved exactly, must not be blank, and are limited to 256 characters.\nThe reserved key __proto__ is not allowed.\nValues must be strings. Numbers, booleans, null, arrays, and objects are rejected.\nThe serialized object must be no larger than 64 KiB. Returned by prompt retrieval\nendpoints, including public-key retrieval; do not store secrets here.\nOmitted metadata defaults to an empty object on creation and is preserved on PATCH.\n","example":{"owner":"support","release_channel":"production","locale":"en"},"uniqueKey":"metadata","typeLabel":"object"},"extra":{"type":"object","uniqueKey":"extra","typeLabel":"object"},"testValues":{"type":"object","uniqueKey":"testValues","typeLabel":"object"},"notes":{"type":"string","uniqueKey":"notes","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"content":"Hello {{name}}, welcome to {{company}}!","extra":{"temperature":0.7,"max_tokens":150},"isDraft":false,"notes":"Updated welcome message with company name"},"examples":{"Example":{"title":"Example","value":{"content":"Hello {{name}}, welcome to {{company}}!","extra":{"temperature":0.7,"max_tokens":150},"isDraft":false,"notes":"Updated welcome message with company name"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"dcbf2313-dd83-4971-b7da-13b756bc57aa":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"id","typeLabel":"string"},"templateId":{"type":"string","uniqueKey":"templateId","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","uniqueKey":"content.items.[INDEX].role","typeLabel":"string"},"content":{"type":"string","uniqueKey":"content.items.[INDEX].content","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"content","typeLabel":"object[]"},"metadata":{"type":"object","default":{},"maxProperties":100,"additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"description":"Versioned key/value text, separate from model parameters and prompt variables.\nKeys are preserved exactly, must not be blank, and are limited to 256 characters.\nThe reserved key __proto__ is not allowed.\nValues must be strings. Numbers, booleans, null, arrays, and objects are rejected.\nThe serialized object must be no larger than 64 KiB. Returned by prompt retrieval\nendpoints, including public-key retrieval; do not store secrets here.\nOmitted metadata defaults to an empty object on creation and is preserved on PATCH.\n","example":{"owner":"support","release_channel":"production","locale":"en"},"uniqueKey":"metadata","typeLabel":"object"},"extra":{"type":"object","uniqueKey":"extra","typeLabel":"object"},"testValues":{"type":"object","uniqueKey":"testValues","typeLabel":"object"},"isDraft":{"type":"boolean","uniqueKey":"isDraft","typeLabel":"boolean"},"notes":{"type":"string","uniqueKey":"notes","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"version":{"type":"number","uniqueKey":"version","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"123","templateId":"456","content":"Hello {{name}}, welcome to {{company}}!","extra":{"temperature":0.7,"max_tokens":150},"isDraft":false,"notes":"Updated welcome message with company name","createdAt":"2023-06-01T12:00:00Z","version":2},"examples":{"Example":{"title":"Example","value":{"id":"123","templateId":"456","content":"Hello {{name}}, welcome to {{company}}!","extra":{"temperature":0.7,"max_tokens":150},"isDraft":false,"notes":"Updated welcome message with company name","createdAt":"2023-06-01T12:00:00Z","version":2}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6abb7572-c496-40d8-b986-1458a8bcbdaf":{"ProjectPrivateApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"UUID","description":"Use a project private API key via `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"ProjectPrivateApiKeyAuth"}}},"servers":{"9b60e1de-edac-467c-a636-fd750e30018b":{"url":"https://api.lunary.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"UUID","description":"Use a project private API key via `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"ProjectPrivateApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Use a project private API key via `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ProjectPrivateApiKeyAuth","name":"Authorization"}],"title":"ProjectPrivateApiKeyAuth"}]},"originalFileLocation":"https://api.lunary.ai/v1/openapi"},"subdomain":"lunary","siteName":"Lunary Documentation","title":"Create a new version - Lunary Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T15:37:05.715Z","originalFileLocation":"api/templates/create-a-new-version.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This endpoint allows you to push a new version of a prompt. You can specify the content, extra parameters, test values, draft status, and notes for the new version.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lunary Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new version - Lunary Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint allows you to push a new version of a prompt. You can specify the content, extra parameters, test values, draft status, and notes for the new version.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lunary Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lunary.ai/api/templates/create-a-new-version\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lunary.mintlify.site/_mintlify/api/og/v2?division=Templates\u0026amp;title=Create+a+new+version\u0026amp;description=This+endpoint+allows+you+to+push+a+new+version+of+a+prompt.%0AYou+can+specify+the+content%2C+extra+parameters%2C+test+values%2C+draft+status%2C+and+notes+for+the+new+vers\u0026amp;theme=19884c910dee32aefdf3bbb8\u0026amp;signature=408804c8f8160554dfbca0c7c36e80489658ca10c01f24b1b9a665a86c57e19c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a new version - Lunary Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint allows you to push a new version of a prompt. You can specify the content, extra parameters, test values, draft status, and notes for the new version.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lunary.mintlify.site/_mintlify/api/og/v2?division=Templates\u0026amp;title=Create+a+new+version\u0026amp;description=This+endpoint+allows+you+to+push+a+new+version+of+a+prompt.%0AYou+can+specify+the+content%2C+extra+parameters%2C+test+values%2C+draft+status%2C+and+notes+for+the+new+vers\u0026amp;theme=19884c910dee32aefdf3bbb8\u0026amp;signature=408804c8f8160554dfbca0c7c36e80489658ca10c01f24b1b9a665a86c57e19c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lunary/jbNpZOyPceF1vtc9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lunary Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#099DFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lunary.ai/api/templates/create-a-new-version\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/templates/create-a-new-version.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lunary.ai/#organization\",\"name\":\"Lunary Documentation\",\"url\":\"https://docs.lunary.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lunary/jh1i7dZRvqbDfvzx/logo/light.svg?fit=max\u0026auto=format\u0026n=jh1i7dZRvqbDfvzx\u0026q=85\u0026s=d6a08adeee6c4e0a7c731580a97d6df0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lunary.ai#website\",\"name\":\"Lunary Documentation\",\"url\":\"https://docs.lunary.ai\",\"publisher\":{\"@id\":\"https://docs.lunary.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lunary.ai/api/templates/create-a-new-version#webpage\",\"url\":\"https://docs.lunary.ai/api/templates/create-a-new-version\",\"name\":\"Create a new version\",\"description\":\"This endpoint allows you to push a new version of a prompt. You can specify the content, extra parameters, test values, draft status, and notes for the new version.\",\"dateModified\":\"2026-11-05T15:37:05.715Z\",\"isPartOf\":{\"@id\":\"https://docs.lunary.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lunary.ai/api/templates/create-a-new-version#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lunary.ai/api/templates/create-a-new-version#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Templates\",\"item\":\"https://docs.lunary.ai/api/templates/get-the-latest-version\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a new version\",\"item\":\"https://docs.lunary.ai/api/templates/create-a-new-version\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lunary.ai/api/templates/create-a-new-version#apireference\",\"headline\":\"Create a new version\",\"name\":\"Create a new version\",\"description\":\"This endpoint allows you to push a new version of a prompt. You can specify the content, extra parameters, test values, draft status, and notes for the new version.\",\"url\":\"https://docs.lunary.ai/api/templates/create-a-new-version\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lunary.ai/api/templates/create-a-new-version#webpage\"},\"dateModified\":\"2026-11-05T15:37:05.715Z\",\"publisher\":{\"@id\":\"https://docs.lunary.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lunary.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lunary Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lunary Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/templates/create-a-new-version.md","siteName":"Lunary Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/get-started"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/api/introduction"}]},{"group":"Analytics","pages":[{"title":"List top models across an organization","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/analytics/org/models/top","href":"/api/analytics/list-top-models-across-an-organization"}]},{"group":"Announcements","pages":[{"title":"List the signed-in account's available product updates","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/announcements","href":"/api/announcements/list-the-signed-in-accounts-available-product-updates"},{"title":"Acknowledge a displayed digest's pending backlog for this account","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/announcements/acknowledge","href":"/api/announcements/acknowledge-a-displayed-digests-pending-backlog-for-this-account"},{"title":"Mark visible announcement cards seen and acknowledged for this account","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/announcements/seen","href":"/api/announcements/mark-visible-announcement-cards-seen-and-acknowledged-for-this-account"}]},{"group":"Audit Logs","pages":[{"title":"Retrieve audit logs","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/audit-logs","href":"/api/audit-logs/retrieve-audit-logs"}]},{"group":"Checklists","pages":[{"title":"List all checklists","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/checklists","href":"/api/checklists/list-all-checklists"},{"title":"Create a new checklist","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/checklists","href":"/api/checklists/create-a-new-checklist"},{"title":"Get a specific checklist","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/checklists/{id}","href":"/api/checklists/get-a-specific-checklist"},{"title":"Delete a checklist","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/checklists/{id}","href":"/api/checklists/delete-a-checklist"},{"title":"Update a checklist","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/checklists/{id}","href":"/api/checklists/update-a-checklist"}]},{"group":"Datasets v2","pages":[{"title":"List datasets v2","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets-v2","href":"/api/datasets-v2/list-datasets-v2"},{"title":"Create dataset v2","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2","href":"/api/datasets-v2/create-dataset-v2"},{"title":"Get dataset v2","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets-v2/{datasetId}","href":"/api/datasets-v2/get-dataset-v2"},{"title":"Delete dataset v2","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/datasets-v2/{datasetId}","href":"/api/datasets-v2/delete-dataset-v2"},{"title":"Update dataset v2","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/datasets-v2/{datasetId}","href":"/api/datasets-v2/update-dataset-v2"},{"title":"Attach an evaluator to a dataset","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/evaluators","href":"/api/datasets-v2/attach-an-evaluator-to-a-dataset"},{"title":"Detach an evaluator from a dataset","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/datasets-v2/{datasetId}/evaluators/{slot}","href":"/api/datasets-v2/detach-an-evaluator-from-a-dataset"},{"title":"Run all evaluators attached to a dataset on every item","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/evaluators/run","href":"/api/datasets-v2/run-all-evaluators-attached-to-a-dataset-on-every-item"},{"title":"Import dataset items from CSV or JSONL","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/import","href":"/api/datasets-v2/import-dataset-items-from-csv-or-jsonl"},{"title":"Duplicate dataset v2","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/duplicate","href":"/api/datasets-v2/duplicate-dataset-v2"},{"title":"List dataset versions","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets-v2/{datasetId}/versions","href":"/api/datasets-v2/list-dataset-versions"},{"title":"Create dataset version snapshot","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/versions","href":"/api/datasets-v2/create-dataset-version-snapshot"},{"title":"Get dataset version","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets-v2/{datasetId}/versions/{versionId}","href":"/api/datasets-v2/get-dataset-version"},{"title":"Restore dataset to a previous version","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/versions/{versionId}/restore","href":"/api/datasets-v2/restore-dataset-to-a-previous-version"},{"title":"Generate dataset item output","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/items/{itemId}/generate","href":"/api/datasets-v2/generate-dataset-item-output"},{"title":"List dataset v2 items","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets-v2/{datasetId}/items","href":"/api/datasets-v2/list-dataset-v2-items"},{"title":"Create dataset v2 item","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets-v2/{datasetId}/items","href":"/api/datasets-v2/create-dataset-v2-item"},{"title":"Get dataset v2 item","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets-v2/{datasetId}/items/{itemId}","href":"/api/datasets-v2/get-dataset-v2-item"},{"title":"Delete dataset v2 item","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/datasets-v2/{datasetId}/items/{itemId}","href":"/api/datasets-v2/delete-dataset-v2-item"},{"title":"Update dataset v2 item","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/datasets-v2/{datasetId}/items/{itemId}","href":"/api/datasets-v2/update-dataset-v2-item"}]},{"group":"Datasets","pages":[{"title":"List datasets","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets","href":"/api/datasets/list-datasets"},{"title":"Create a new dataset","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets","href":"/api/datasets/create-a-new-dataset"},{"title":"Get dataset by ID or slug","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets/{identifier}","href":"/api/datasets/get-dataset-by-id-or-slug"},{"title":"Delete a dataset","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/datasets/{id}","href":"/api/datasets/delete-a-dataset"},{"title":"Update a dataset","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/datasets/{id}","href":"/api/datasets/update-a-dataset"},{"title":"Create a new prompt","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets/prompts","href":"/api/datasets/create-a-new-prompt"},{"title":"Get prompt by ID","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets/prompts/{id}","href":"/api/datasets/get-prompt-by-id"},{"title":"Delete a prompt","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/datasets/prompts/{id}","href":"/api/datasets/delete-a-prompt"},{"title":"Update a prompt","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/datasets/prompts/{id}","href":"/api/datasets/update-a-prompt"},{"title":"Get prompt variation by ID","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/datasets/variations/{id}","href":"/api/datasets/get-prompt-variation-by-id"},{"title":"Delete a prompt variation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/datasets/variations/{id}","href":"/api/datasets/delete-a-prompt-variation"},{"title":"Update a prompt variation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/datasets/variations/{variationId}","href":"/api/datasets/update-a-prompt-variation"},{"title":"Create a new prompt variation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/datasets/variations","href":"/api/datasets/create-a-new-prompt-variation"}]},{"group":"Evals","pages":[{"title":"List evaluations","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/evals","href":"/api/evals/list-evaluations"},{"title":"Create a new evaluation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/evals","href":"/api/evals/create-a-new-evaluation"},{"title":"Get evaluation by ID","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/evals/{id}","href":"/api/evals/get-evaluation-by-id"},{"title":"Delete an evaluation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/evals/{id}","href":"/api/evals/delete-an-evaluation"},{"title":"Update an evaluation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/evals/{id}","href":"/api/evals/update-an-evaluation"},{"title":"Run the evaluation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/evals/{id}/run","href":"/api/evals/run-the-evaluation"},{"title":"Create a criterion","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/evals/criteria","href":"/api/evals/create-a-criterion"},{"title":"Get criterion by ID","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/evals/criteria/{id}","href":"/api/evals/get-criterion-by-id"},{"title":"Delete a criterion","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/evals/criteria/{id}","href":"/api/evals/delete-a-criterion"},{"title":"Update a criterion","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/evals/criteria/{id}","href":"/api/evals/update-a-criterion"},{"title":"List results for an evaluation","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/evals/{evalId}/results","href":"/api/evals/list-results-for-an-evaluation"},{"title":"Get a single result","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/evals/results/{id}","href":"/api/evals/get-a-single-result"}]},{"group":"Users","pages":[{"title":"List project users","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/external-users","href":"/api/users/list-project-users"},{"title":"Get a specific user","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/external-users/{id}","href":"/api/users/get-a-specific-user"},{"title":"Delete a specific user","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/external-users/{id}","href":"/api/users/delete-a-specific-user"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/models","href":"/api/models/list-models"},{"title":"Create a new model","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/models","href":"/api/models/create-a-new-model"},{"title":"Delete a model","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/models/{id}","href":"/api/models/delete-a-model"},{"title":"Update a model","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/models/{id}","href":"/api/models/update-a-model"}]},{"group":"Playground Endpoints","pages":[{"title":"List all playground endpoints","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/playground-endpoints","href":"/api/playground-endpoints/list-all-playground-endpoints"},{"title":"Create a playground endpoint","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/playground-endpoints","href":"/api/playground-endpoints/create-a-playground-endpoint"},{"title":"Get a playground endpoint","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/playground-endpoints/{id}","href":"/api/playground-endpoints/get-a-playground-endpoint"},{"title":"Update a playground endpoint","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi put /v1/playground-endpoints/{id}","href":"/api/playground-endpoints/update-a-playground-endpoint"},{"title":"Delete a playground endpoint","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/playground-endpoints/{id}","href":"/api/playground-endpoints/delete-a-playground-endpoint"}]},{"group":"Projects","pages":[{"title":"Pin or unpin a project for the signed-in account","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/projects/{projectId}/pin","href":"/api/projects/pin-or-unpin-a-project-for-the-signed-in-account"}]},{"group":"Runs","pages":[{"title":"Get runs","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/runs","href":"/api/runs/get-runs"},{"title":"Get run usage statistics","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/runs/usage","href":"/api/runs/get-run-usage-statistics"},{"title":"Export runs data","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/runs/export","href":"/api/runs/export-runs-data"},{"title":"Get a specific run","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/runs/{id}","href":"/api/runs/get-a-specific-run"},{"title":"Delete a run","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/runs/{id}","href":"/api/runs/delete-a-run"},{"title":"Update run visibility","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/runs/{id}/visibility","href":"/api/runs/update-run-visibility"},{"title":"Update run tags","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/runs/{id}/tags","href":"/api/runs/update-run-tags"},{"title":"Feedback Tracking","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/runs/{id}/feedback","href":"/api/runs/feedback-tracking"},{"title":"Update run score","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/runs/{id}/score","href":"/api/runs/update-run-score"},{"title":"Get related runs","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/runs/{id}/related","href":"/api/runs/get-related-runs"},{"title":"Ingest run events","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/runs/ingest","href":"/api/runs/ingest-run-events"}]},{"group":"Templates","pages":[{"title":"Get the latest version","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/template-versions/latest","href":"/api/templates/get-the-latest-version"},{"title":"Update a template version","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/template-versions/{id}","href":"/api/templates/update-a-template-version"},{"title":"List all templates","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/templates","href":"/api/templates/list-all-templates"},{"title":"Create a new template","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/templates","href":"/api/templates/create-a-new-template"},{"title":"Get a specific template","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/templates/{id}","href":"/api/templates/get-a-specific-template"},{"title":"Delete a template","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/templates/{id}","href":"/api/templates/delete-a-template"},{"title":"Update a template","description":"This endpoint allows you to update the slug and mode of an existing template.\nThe mode can be either \"text\" or \"openai\" (array of chat messages).\n","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/templates/{id}","href":"/api/templates/update-a-template"},{"title":"Create a new version","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/templates/{id}/versions","href":"/api/templates/create-a-new-version"}]},{"group":"Test","pages":[{"title":"Test endpoint for playground API testing","description":"A public endpoint that echoes back the request data for testing the playground custom API feature","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/test-endpoint","href":"/api/test/test-endpoint-for-playground-api-testing"},{"title":"Test endpoint with authentication check","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/test-endpoint/auth","href":"/api/test/test-endpoint-with-authentication-check"}]},{"group":"Views","pages":[{"title":"List all views","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/views","href":"/api/views/list-all-views"},{"title":"Create a new view","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi post /v1/views","href":"/api/views/create-a-new-view"},{"title":"Get a specific view","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi get /v1/views/{id}","href":"/api/views/get-a-specific-view"},{"title":"Delete a view","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi delete /v1/views/{id}","href":"/api/views/delete-a-view"},{"title":"Update a view","deprecated":null,"version":null,"openapi":"https://api.lunary.ai/v1/openapi patch /v1/views/{id}","href":"/api/views/update-a-view"}]}]}]},"basePath":"","title":"Create a new version - Lunary Documentation","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}