POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.
Use this endpoint to add a new version to an existing project. You can submit a website URL, a single file (PDF, image, video, or audio), or up to 25 images at once. All variants return a new version ID and a shareable review link.
Shareable link you can send to reviewers to access this version.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"BugSmash","description":"BugSmash API Docs","colors":{"primary":"#2E3899","light":"#E5E8FF","dark":"#0F1333"},"logo":"https://mintcdn.com/markerwise/XjQ0ht-jZrmpDW_1/images/Icon-circle-2.png?fit=max\u0026auto=format\u0026n=XjQ0ht-jZrmpDW_1\u0026q=85\u0026s=c2568dcbc7b29d9ef6d4df857b4e2cd6","favicon":"https://mintcdn.com/markerwise/XjQ0ht-jZrmpDW_1/images/Icon-circle-2.png?fit=max\u0026auto=format\u0026n=XjQ0ht-jZrmpDW_1\u0026q=85\u0026s=c2568dcbc7b29d9ef6d4df857b4e2cd6","appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Open Bugsmash","href":"https://tools.bugsmash.io"}},"fonts":{"family":"Lato"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"markerwise","hasAudioNarration":false,"actualSubdomain":"markerwise","customDomains":["docs.bugsmash.io"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-markerwise-5fae7d3f","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a734e56efe9905ec3855d06","collectionId":"5d6d3666-0a77-471b-954b-1706a5f8d3fe","schemaVersion":"v2","latestBuiltDeploymentHistoryId":"6a734e56efe9905ec3855d06"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a734e56efe9905ec3855d06:success","clientVersion":"0.0.3902","searchFilterCounts":[{"language":"default","tag":"API Reference","count":27},{"language":"default","tag":"Comments","count":7},{"language":"default","tag":"Webhooks","count":6},{"language":"default","tag":"Folders","count":5},{"language":"default","tag":"Projects","count":5},{"language":"default","tag":"Versions","count":4},{"language":"default","tag":"Documentation","count":2},{"language":"default","tag":"Get Started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-branches-v2-autocommit","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2","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":"editor-private-page-search","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":"teamspace","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","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":"byok-sep-25","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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"client-snapshot-docs-config","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}],"isAtlas":false,"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api/versions/new-version","slug":"/api/versions/new-version","pageMetadata":{"title":"POST /version — add a new version to a project","description":"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.","sidebarTitle":"New Version","href":"/api/versions/new-version"},"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: \"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseField,Tab,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use this endpoint to add a new version to an existing project. You can submit a website URL, a single file (PDF, image, video, or audio), or up to 25 images at once. All variants return a new version ID and a shareable review link.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.bugsmash.io/api/v2/version`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`All requests require the `,_jsx(_components.code,{children:`X-API-Key`}),` header.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`X-API-Key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-variants`,children:`Request variants`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Website`,id:`website`,\"data-child-heading-ids\":`[\"body-parameters\",\"request-example\"]`,children:[_jsx(_components.p,{children:`Send a JSON body with the website URL and the target project ID.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Content-Type:`}),` `,_jsx(_components.code,{children:`application/json`})]}),_jsx(Heading,{level:`3`,id:`body-parameters`,children:`Body parameters`}),_jsx(ParamField,{body:`websiteUrl`,type:`string`,required:true,id:`param-website-url`,children:_jsx(_components.p,{children:`The full URL of the website to capture as a new version.`})}),_jsx(ParamField,{body:`projectId`,type:`uuid`,required:true,id:`param-project-id`,children:_jsx(_components.p,{children:`The unique identifier of the project to add this version to.`})}),_jsx(Heading,{level:`3`,id:`request-example`,children:`Request example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.bugsmash.io/api/v2/version'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'X-API-Key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"websiteUrl\": \"https://example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"projectId\": \"a1732b1e-4b43-4217-a780-c521a98aaeea\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})]}),_jsxs(Tab,{title:`Single file`,id:`single-file`,\"data-child-heading-ids\":`[\"form-parameters\",\"request-example-2\"]`,children:[_jsx(_components.p,{children:`Upload a single file using multipart form data. Supported formats: PDF, image, video, and audio.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Content-Type:`}),` `,_jsx(_components.code,{children:`multipart/form-data`})]}),_jsx(Heading,{level:`3`,id:`form-parameters`,children:`Form parameters`}),_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsx(_components.p,{children:`The file to upload. Accepted formats: PDF, PNG, JPG, MP4, MP3, and other common image, video, and audio types.`})}),_jsx(ParamField,{body:`projectId`,type:`string`,required:true,id:`param-project-id-1`,children:_jsx(_components.p,{children:`The unique identifier of the project to add this version to.`})}),_jsx(Heading,{level:`3`,id:`request-example-2`,children:`Request example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.bugsmash.io/api/v2/project/generate-review-link'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'X-API-Key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--form `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'file=@\"/path/to/your/file.pdf\"'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--form `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'projectId=\"a1732b1e-4b43-4217-a780-c521a98aaeea\"'`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Multiple images`,id:`multiple-images`,\"data-child-heading-ids\":`[\"form-parameters-2\",\"request-example-3\"]`,children:[_jsx(_components.p,{children:`Upload up to 25 images at once using multipart form data.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Content-Type:`}),` `,_jsx(_components.code,{children:`multipart/form-data`})]}),_jsx(Heading,{level:`3`,id:`form-parameters-2`,children:`Form parameters`}),_jsx(ParamField,{body:`files[]`,type:`file[]`,required:true,id:`param-files`,children:_jsx(_components.p,{children:`An array of image files to upload. Maximum of 25 images per request.`})}),_jsx(ParamField,{body:`projectId`,type:`string`,required:true,id:`param-project-id-2`,children:_jsx(_components.p,{children:`The unique identifier of the project to add this version to.`})}),_jsx(Heading,{level:`3`,id:`request-example-3`,children:`Request example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.bugsmash.io/api/v2/project/generate-review-link'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'X-API-Key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--form `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'files[]=@\"/path/to/thumbnail.png\"'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--form `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'files[]=@\"/path/to/poster.png\"'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--form `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'projectId=\"a1732b1e-4b43-4217-a780-c521a98aaeea\"'`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-example`,children:`Response example`}),`\n`,_jsx(_components.p,{children:`The response is the same for all three variants.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Version successfully added\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"V2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"review_link\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://app.bugsmash.io/review/AbCdE\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response fields`}),`\n`,_jsx(ResponseField,{name:`status`,type:`boolean`,id:`param-status`,children:_jsx(_components.p,{children:`Whether the request was successful.`})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Human-readable description of the result.`})}),`\n`,_jsxs(ResponseField,{name:`version`,type:`object`,id:`param-version`,children:[_jsx(_components.p,{children:`Details of the newly created version.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`UUID of the newly created version.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsxs(_components.p,{children:[`Auto-assigned version label, such as `,_jsx(_components.code,{children:`\"V2\"`}),`.`]})}),_jsx(ResponseField,{name:`review_link`,type:`string`,id:`param-review-link`,children:_jsx(_components.p,{children:`Shareable link you can send to reviewers to access this version.`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"POST /version — add a new version to a project","description":"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.","sidebarTitle":"New Version","href":"/api/versions/new-version"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request variants","slug":"request-variants","depth":2,"children":[{"title":"Body parameters","slug":"body-parameters","depth":3,"children":[],"tabId":"website"},{"title":"Request example","slug":"request-example","depth":3,"children":[],"tabId":"website"},{"title":"Form parameters","slug":"form-parameters","depth":3,"children":[],"tabId":"single-file"},{"title":"Request example","slug":"request-example-2","depth":3,"children":[],"tabId":"single-file"},{"title":"Form parameters","slug":"form-parameters-2","depth":3,"children":[],"tabId":"multiple-images"},{"title":"Request example","slug":"request-example-3","depth":3,"children":[],"tabId":"multiple-images"}]},{"title":"Response example","slug":"response-example","depth":2,"children":[]},{"title":"Response fields","slug":"response-fields","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"markerwise","siteName":"BugSmash","title":"POST /version — add a new version to a project - BugSmash","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-17T20:38:09.165Z","originalFileLocation":"api/versions/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=\"light\"}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=\"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.\">\u003cmeta data-mint-head name=\"application-name\" content=\"BugSmash\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/markerwise/pBAwu1Sydyhl9xY_/_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/markerwise/pBAwu1Sydyhl9xY_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/markerwise/pBAwu1Sydyhl9xY_/_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/markerwise/pBAwu1Sydyhl9xY_/_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/markerwise/pBAwu1Sydyhl9xY_/_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/markerwise/pBAwu1Sydyhl9xY_/_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/markerwise/pBAwu1Sydyhl9xY_/_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/markerwise/pBAwu1Sydyhl9xY_/_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/markerwise/pBAwu1Sydyhl9xY_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"POST /version — add a new version to a project - BugSmash\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BugSmash\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bugsmash.io/api/versions/new-version\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"POST /version — add a new version to a project - BugSmash\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/markerwise/pBAwu1Sydyhl9xY_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BugSmash\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2E3899\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bugsmash.io/api/versions/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/versions/new-version.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bugsmash.io/#organization\",\"name\":\"BugSmash\",\"url\":\"https://docs.bugsmash.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/markerwise/XjQ0ht-jZrmpDW_1/images/Icon-circle-2.png?fit=max\u0026auto=format\u0026n=XjQ0ht-jZrmpDW_1\u0026q=85\u0026s=c2568dcbc7b29d9ef6d4df857b4e2cd6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bugsmash.io#website\",\"name\":\"BugSmash\",\"url\":\"https://docs.bugsmash.io\",\"publisher\":{\"@id\":\"https://docs.bugsmash.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bugsmash.io/api/versions/new-version#webpage\",\"url\":\"https://docs.bugsmash.io/api/versions/new-version\",\"name\":\"POST /version — add a new version to a project\",\"description\":\"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.\",\"dateModified\":\"2026-04-17T20:38:09.165Z\",\"isPartOf\":{\"@id\":\"https://docs.bugsmash.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bugsmash.io/api/versions/new-version#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bugsmash.io/api/versions/new-version#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Versions\",\"item\":\"https://docs.bugsmash.io/api/versions/get-all-versions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"POST /version — add a new version to a project\",\"item\":\"https://docs.bugsmash.io/api/versions/new-version\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.bugsmash.io/api/versions/new-version#article\",\"headline\":\"POST /version — add a new version to a project\",\"name\":\"POST /version — add a new version to a project\",\"description\":\"POST /version — upload a new version of a project. Supports websites via URL and files (PDF, image, video, audio) via multipart upload.\",\"url\":\"https://docs.bugsmash.io/api/versions/new-version\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bugsmash.io/api/versions/new-version#webpage\"},\"dateModified\":\"2026-04-17T20:38:09.165Z\",\"publisher\":{\"@id\":\"https://docs.bugsmash.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bugsmash.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BugSmash\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"BugSmash","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Folders","pages":[{"title":"GET /folders — list all folders in your workspace","sidebarTitle":"Get All Folders","href":"/api/folders/get-all-folders"},{"title":"GET /folder/{folderId} — retrieve folder details","sidebarTitle":"Get Folder Details","href":"/api/folders/get-folder-details"},{"title":"POST /folder — create a new folder","sidebarTitle":"Create Folder","href":"/api/folders/create-folder"},{"title":"PATCH /folder/{folderId} — update folder settings","sidebarTitle":"Update Folder","href":"/api/folders/update-folder"},{"title":"DELETE /folder/{folderId} — delete a folder","sidebarTitle":"Delete Folder","href":"/api/folders/delete-folder"}]},{"group":"Versions","pages":[{"title":"GET /versions — list all versions for a project","sidebarTitle":"Get All Versions","href":"/api/versions/get-all-versions"},{"title":"GET /version/{versionId} — retrieve version details","description":"GET /version/{versionId} — fetch full details for a single version, including file URLs, project type, and review link, by version UUID.","sidebarTitle":"Get Version Details","href":"/api/versions/get-version-details"},{"title":"POST /version — add a new version to a project","sidebarTitle":"New Version","href":"/api/versions/new-version"},{"title":"DELETE /version/{versionId} — delete a version","description":"DELETE /version/{versionId} — permanently remove a specific version from a project by its UUID. All files and comments on that version are deleted.","sidebarTitle":"Delete Version","href":"/api/versions/delete-version"}]},{"group":"Projects","pages":[{"title":"POST /project/generate-review-link — create a project","sidebarTitle":"Generate Review Link","href":"/api/projects/generate-review-link"},{"title":"GET /projects — list all projects in your workspace","sidebarTitle":"Get All Projects","href":"/api/projects/get-all-projects"},{"title":"GET /project/{projectId} — retrieve project details","sidebarTitle":"Get Project Details","href":"/api/projects/get-project-details"},{"title":"PATCH /project/{projectId} — update project settings","sidebarTitle":"Update Project Settings","href":"/api/projects/update-project-settings"},{"title":"DELETE /project/{projectId} — delete a project","sidebarTitle":"Delete Project","href":"/api/projects/delete-project"}]},{"group":"Comments","pages":[{"title":"GET /comments?projectId — fetch all comments","sidebarTitle":"Get All Comments","href":"/api/comments/get-all-comments"},{"title":"GET /comment/{commentId} — retrieve a single comment","sidebarTitle":"Get Comment Details","href":"/api/comments/get-comment-details"},{"title":"PATCH /comment/{commentId} — update a comment","sidebarTitle":"Update Comment","href":"/api/comments/update-comment"},{"title":"DELETE /comment/{commentId} — delete a comment","sidebarTitle":"Delete Comment","href":"/api/comments/delete-comment"},{"title":"GET /comment/{commentId}/replies — list comment replies","sidebarTitle":"Get All Replies","href":"/api/comments/get-all-replies"},{"title":"POST /reply — post a reply to a comment","sidebarTitle":"Post Reply","href":"/api/comments/post-reply"},{"title":"DELETE /reply/{replyId} — delete a reply","sidebarTitle":"Delete Reply","href":"/api/comments/delete-reply"}]},{"group":"Webhooks","pages":[{"title":"GET /webhooks — list all webhooks","sidebarTitle":"Get All Webhooks","href":"/api/webhooks/get-all-webhooks"},{"title":"POST /webhook — create a webhook","sidebarTitle":"Create Webhook","href":"/api/webhooks/create-webhook"},{"title":"PATCH /webhook/{webhookId} — update a webhook","sidebarTitle":"Update Webhook","href":"/api/webhooks/update-webhook"},{"title":"DELETE /webhook/{webhookId} — delete a webhook","sidebarTitle":"Delete Webhook","href":"/api/webhooks/delete-webhook"},{"title":"POST /webhook/test — fire a test event","sidebarTitle":"Test Webhook","href":"/api/webhooks/test-webhook"},{"title":"Verify webhook signatures","sidebarTitle":"Verify Signatures","href":"/api/webhooks/verify-webhook-signatures"}]}]}]},"title":"POST /version — add a new version to a project - BugSmash","buildId":"dpl_C3fsfi1EcrBns9Vx91gUSN1X3Hi4","deploymentId":"dpl_C3fsfi1EcrBns9Vx91gUSN1X3Hi4","dynamics":[],"chunks":[]}