{
"error": "param is missing or the value is empty: discount_code"
}
{
"error": "DiscountCode does not exist."
}
{
"error": "A fixed-amount code can only be enabled on a form whose payment currency matches the code's currency."
}
Discount codes
Update a discount code
Change a discount code. Only the fields you send are changed. If you send form_ids, it replaces the list of forms. If you do not send it, the forms stay as they are.
{
"error": "param is missing or the value is empty: discount_code"
}
{
"error": "DiscountCode does not exist."
}
{
"error": "A fixed-amount code can only be enabled on a form whose payment currency matches the code's currency."
}
Replace {your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
X-Api-Key
string
default:your-api-key
required
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
id
string
required
Id of the discount code. You can get it by using the List discount codes API.
Example:
"6f1c2a7e-2b1d-4a51-9a0e-1f8f3b0c9d11"
Body
application/json
discount_code
object
required
Hide child attributes
discount_code.code
string
Example:
"WELCOME"
discount_code.value
number
Example:
20
discount_code.kind
enum<string>
Available options:
percentage,
fixed
discount_code.currency
string
Example:
"usd"
discount_code.expires_at
string
Example:
"2026-12-31"
discount_code.redeems_limit
integer
Example:
200
discount_code.form_ids
string[]
Ids of the forms to enable the code on. This replaces the current list. Leave it out to keep the current forms.
Example:
["c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90"]
Response
OK - Discount code updated
discount_code
object
Hide child attributes
discount_code.id
string
Example:
"6f1c2a7e-2b1d-4a51-9a0e-1f8f3b0c9d11"
discount_code.code
string
The code that people enter. It is stored in upper case.
Example:
"SUMMER"
discount_code.value
string
Discount value. It is a percentage for percentage codes and an amount for fixed codes.
Example:
"10.0"
discount_code.kind
enum<string>
Available options:
percentage,
fixed
Example:
"percentage"
discount_code.currency
string | null
Currency of a fixed code. It is null for percentage codes.
Example:
null
discount_code.expires_at
string<date-time> | null
Example:
"2026-12-31T00:00:00.000Z"
discount_code.redeems_limit
integer | null
Maximum number of times the code can be used. It is null when there is no limit.
Example:
100
discount_code.created_at
string<date-time>
discount_code.updated_at
string<date-time>
discount_code.redeems_count
integer
Number of completed redemptions.
Example:
12
discount_code.status
enum<string>
Available options:
active,
expired,
exhausted
Example:
"active"
discount_code.forms
object[]
Forms that the code is enabled on.
Hide child attributes
discount_code.forms.id
string
Example:
"c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90"
discount_code.forms.title
string
Example:
"Workshop signup"
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NeetoForm Docs","description":"Developer docs for NeetoForm: the REST API and the CLI.","colors":{"primary":"#10B981","light":"#34D399","dark":"#059669"},"logo":"https://mintcdn.com/neetoform-apis/-66QiVVszjHcVucP/assets/logo.svg?fit=max\u0026auto=format\u0026n=-66QiVVszjHcVucP\u0026q=85\u0026s=d350b3ee00a26ab9f9d6f4b30dbd0584","favicon":"https://mintcdn.com/neetoform-apis/HqahXeyqPCNJx-8w/assets/favicon.svg?fit=max\u0026auto=format\u0026n=HqahXeyqPCNJx-8w\u0026q=85\u0026s=1a3b3b7608dee2fae28509f76f624daa","api":{"params":{"expanded":"all"},"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"all","languages":["curl","javascript","python"]}},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://www.neeto.com/neetoform/blog","label":"Blog"},{"href":"https://help.neetoform.com/","label":"Help center"},{"href":"https://neetoform.com/","label":"NeetoForm"}]},"footer":{"socials":{"x":"https://x.com/neetohq","linkedin":"https://www.linkedin.com/company/neeto","youtube":"https://www.youtube.com/channel/UCoQ3Kv2JdZ51WZJ3QFFcI9g","slack":"https://neeto.com/community"}},"styling":{"eyebrows":"section","codeblocks":"system","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"neetoform-apis","hasAudioNarration":false,"actualSubdomain":"neetoform-apis","customDomains":["apidocs.neetoform.com"],"gitSource":{"type":"github","owner":"neetoformapis","repo":"neeto-form-api","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae870c0dffaaabdc1bdb461","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"API","count":128},{"language":"default","tag":"CLI","count":19},{"language":"default","tag":"Form settings","count":17},{"language":"default","tag":"Getting started","count":13},{"language":"default","tag":"Forms","count":13},{"language":"default","tag":"Commands","count":12},{"language":"default","tag":"Questions","count":9},{"language":"default","tag":"Discount codes","count":8},{"language":"default","tag":"Automation rules","count":7},{"language":"default","tag":"Conditional logic","count":7}]},"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":"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":"site-roles","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},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"theme.css","content":":root{--primary-green: #0da874;--white: #ffffff;--light-gray: #eeeeee;--dark-gray: #1f2937;--text-white: rgb(255, 255, 255);--text-light: rgb(238, 238, 238)}#navbar-transition,[data-nav=\"true\"]{background-color:var(--primary-green)!important}.nav-logo{filter:brightness(0) invert(1)!important;height:20px!important;width:auto!important;max-width:none!important}[data-nav=\"true\"] a,#navbar-transition a,.navbar-link a{color:var(--text-white)!important}[data-nav=\"true\"] a:hover,#navbar-transition a:hover,.navbar-link a:hover{color:var(--text-light)!important}#navbar button,#navbar span,#navbar div,#navbar p,#navbar .text-sm,#navbar .text-xs{color:var(--white)!important}#navbar .bg-gray-500,#navbar .bg-gray-400,#navbar .bg-gray-600,#navbar .bg-gray-300{background-color:var(--white)!important}.nav-tabs-item{color:rgba(255, 255, 255, 0.85)!important}.nav-tabs-item:hover,.nav-tabs-item.text-gray-800{color:var(--text-white)!important}.nav-tabs-item .bg-primary{background-color:var(--white)!important}.nav-tabs-item:hover>.absolute:not(.bg-primary){background-color:rgba(255, 255, 255, 0.4)!important}[data-headlessui-state=\"open\"] [id*=\"headlessui-dialog-panel\"]{background-color:var(--white)!important}[data-headlessui-state=\"open\"] [id*=\"headlessui-dialog-panel\"] .navbar-link a,[data-headlessui-state=\"open\"] [id*=\"headlessui-dialog-panel\"] .text-gray-600,[data-headlessui-state=\"open\"] [id*=\"headlessui-dialog-panel\"] .dark\\:text-gray-400{color:var(--dark-gray)!important}[data-headlessui-state=\"open\"] [id*=\"headlessui-dialog-panel\"] .navbar-link a:hover,[data-headlessui-state=\"open\"] [id*=\"headlessui-dialog-panel\"] .hover\\:text-gray-900:hover,[data-headlessui-state=\"open\"] [id*=\"headlessui-dialog-panel\"] .dark\\:hover\\:text-gray-300:hover{color:var(--primary-green)!important}#search-bar-entry button,#search-bar-entry span,#search-bar-entry div,#search-bar-entry p,#search-bar-entry img,#search-bar-entry svg,#search-bar-entry .text-sm,#search-bar-entry .text-xs{color:var(--primary-green)!important}"}]}
{"page":{"pagePath":"api/discount-codes/update","slug":"/api/discount-codes/update","pageMetadata":{"title":"Update a discount code","openapi":"bundled/discount-codes.yaml PATCH /discount_codes/{id}","description":"Change a discount code. Only the fields you send are changed. If you send `form_ids`, it replaces the list of forms. If you do not send it, the forms stay as they are.","href":"/api/discount-codes/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Change a discount code. Only the fields you send are changed. If you send \", _jsx(_components.code, {\n children: \"form_ids\"\n }), \", it replaces the list of forms. If you do not send it, the forms stay as they are.\"]\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,..._provideComponents(),...props.components},{Info}=_components;if(!Info)_missingMdxReference(`Info`,true);return _jsxs(Info,{children:[`Replace `,_jsx(_components.code,{children:`{your-subdomain}`}),` with your workspace’s subdomain. `,_jsx(`br`,{}),` Learn how to find your subdomain in `,_jsx(_components.a,{href:`/api/workspace-subdomain`,children:`Workspace subdomain`}),`.`]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Update a discount code","openapi":"bundled/discount-codes.yaml PATCH /discount_codes/{id}","description":"Change a discount code. Only the fields you send are changed. If you send `form_ids`, it replaces the list of forms. If you do not send it, the forms stay as they are.","href":"/api/discount-codes/update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/neetoform-apis/c7a6987cd31f1479/os-detect.js"],"openApiReferenceData":{"operation":{"summary":"Update a discount code","tags":["Discount Codes"],"description":"Change a discount code. Only the fields you send are changed. If you send `form_ids`, it replaces the list of forms. If you do not send it, the forms stay as they are.","parameters":["a9be30ba-69f2-4b3a-a79d-95f3c8399340","041a617d-f352-42d1-aa39-0fdfbbee7953"],"requestBody":"82081720-0dac-407e-88d0-0e5d6bc8625d","responses":{"200":"a25d1643-0d9d-4c49-817a-bf06e9b9b37e","400":"742aabad-0bc9-4f5b-afa0-7f849b1c955e","404":"02493165-c40a-4c43-acd5-bf1c476c5f03","422":"5068a884-7dd2-47c4-b98a-3d3d23a705dd"},"method":"patch","type":"path","servers":["f6d040b1-0fe4-4581-a94b-7331033cca09"],"security":[],"path":"/discount_codes/{id}","baseUrlOptions":["https://{your-subdomain}.neetoform.com/api/external/v2"],"title":"Update a discount code","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a9be30ba-69f2-4b3a-a79d-95f3c8399340":{"in":"header","name":"X-Api-Key","description":"Use the X-Api-Key header to provide your workspace API key. Refer to [Authentication](/api/authentication) for more information.","required":true,"schema":{"type":"string","default":"your-api-key","isRequired":true,"description":"Use the X-Api-Key header to provide your workspace API key. Refer to [Authentication](/api/authentication) for more information.","uniqueKey":"","typeLabel":"string"}},"041a617d-f352-42d1-aa39-0fdfbbee7953":{"in":"path","name":"id","description":"Id of the discount code. You can get it by using the [List discount codes](/api/discount-codes/list) API.","required":true,"schema":{"type":"string","example":"6f1c2a7e-2b1d-4a51-9a0e-1f8f3b0c9d11","isRequired":true,"description":"Id of the discount code. You can get it by using the [List discount codes](/api/discount-codes/list) API.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"discount_code":{"type":"object","properties":{"code":{"type":"string","example":"WELCOME","uniqueKey":"discount_code.code","typeLabel":"string"},"value":{"type":"number","example":20,"uniqueKey":"discount_code.value","typeLabel":"number"},"kind":{"type":"string","enum":["percentage","fixed"],"uniqueKey":"discount_code.kind","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","example":"usd","uniqueKey":"discount_code.currency","typeLabel":"string"},"expires_at":{"type":"string","example":"2026-12-31","uniqueKey":"discount_code.expires_at","typeLabel":"string"},"redeems_limit":{"type":"integer","example":200,"uniqueKey":"discount_code.redeems_limit","typeLabel":"integer"},"form_ids":{"type":"array","items":{"type":"string","uniqueKey":"discount_code.form_ids.items.[INDEX]","typeLabel":"string"},"description":"Ids of the forms to enable the code on. This replaces the current list. Leave it out to keep the current forms.","example":["c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90"],"uniqueKey":"discount_code.form_ids","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"discount_code","typeLabel":"object"}},"required":["discount_code"],"uniqueKey":"","typeLabel":"object"},"example":{"discount_code":{"value":20,"redeems_limit":200}},"examples":{"Example":{"title":"Example","value":{"discount_code":{"value":20,"redeems_limit":200}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"a25d1643-0d9d-4c49-817a-bf06e9b9b37e":{"description":"OK - Discount code updated","content":{"application/json":{"schema":{"type":"object","properties":{"discount_code":{"type":"object","properties":{"id":{"type":"string","example":"6f1c2a7e-2b1d-4a51-9a0e-1f8f3b0c9d11","uniqueKey":"discount_code.id","typeLabel":"string"},"code":{"type":"string","description":"The code that people enter. It is stored in upper case.","example":"SUMMER","uniqueKey":"discount_code.code","typeLabel":"string"},"value":{"type":"string","description":"Discount value. It is a percentage for `percentage` codes and an amount for `fixed` codes.","example":"10.0","uniqueKey":"discount_code.value","typeLabel":"string"},"kind":{"type":"string","enum":["percentage","fixed"],"example":"percentage","uniqueKey":"discount_code.kind","typeLabel":"enum\u003cstring>"},"currency":{"oneOf":[{"type":"string","description":"Currency of a `fixed` code. It is null for `percentage` codes.","example":null,"uniqueKey":"discount_code.currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Currency of a `fixed` code. It is null for `percentage` codes.","example":null,"uniqueKey":"discount_code.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"discount_code.currency","typeLabel":"string | null"},"expires_at":{"oneOf":[{"type":"string","format":"date-time","example":"2026-12-31T00:00:00.000Z","uniqueKey":"discount_code.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":"2026-12-31T00:00:00.000Z","uniqueKey":"discount_code.expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"discount_code.expires_at","typeLabel":"string\u003cdate-time> | null"},"redeems_limit":{"oneOf":[{"type":"integer","description":"Maximum number of times the code can be used. It is null when there is no limit.","example":100,"uniqueKey":"discount_code.redeems_limit.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Maximum number of times the code can be used. It is null when there is no limit.","example":100,"uniqueKey":"discount_code.redeems_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"discount_code.redeems_limit","typeLabel":"integer | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"discount_code.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"discount_code.updated_at","typeLabel":"string\u003cdate-time>"},"redeems_count":{"type":"integer","description":"Number of completed redemptions.","example":12,"uniqueKey":"discount_code.redeems_count","typeLabel":"integer"},"status":{"type":"string","enum":["active","expired","exhausted"],"example":"active","uniqueKey":"discount_code.status","typeLabel":"enum\u003cstring>"},"forms":{"type":"array","description":"Forms that the code is enabled on.","items":{"type":"object","properties":{"id":{"type":"string","example":"c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90","uniqueKey":"discount_code.forms.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","example":"Workshop signup","uniqueKey":"discount_code.forms.items.[INDEX].title","typeLabel":"string"}},"uniqueKey":"discount_code.forms.items.[INDEX]","typeLabel":"object"},"uniqueKey":"discount_code.forms","typeLabel":"object[]"}},"uniqueKey":"discount_code","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"discount_code":{"id":"6f1c2a7e-2b1d-4a51-9a0e-1f8f3b0c9d11","code":"SUMMER","value":"10.0","kind":"percentage","currency":null,"expires_at":"2026-12-31T00:00:00.000Z","redeems_limit":100,"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","redeems_count":12,"status":"active","forms":[{"id":"c3b0a8d2-5e44-4f4e-8a35-0d2f5a1b7c90","title":"Workshop signup"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"742aabad-0bc9-4f5b-afa0-7f849b1c955e":{"description":"Bad Request - The `discount_code` object is missing","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"param is missing or the value is empty: discount_code"},"examples":{"Example":{"title":"Example","value":{"error":"param is missing or the value is empty: discount_code"}}},"exampleType":"examples"}},"exampleType":"examples"},"02493165-c40a-4c43-acd5-bf1c476c5f03":{"description":"Not Found - Discount code with the given ID does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"DiscountCode does not exist."},"examples":{"Example":{"title":"Example","value":{"error":"DiscountCode does not exist."}}},"exampleType":"examples"}},"exampleType":"examples"},"5068a884-7dd2-47c4-b98a-3d3d23a705dd":{"description":"Unprocessable Entity - The input is not valid","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"A fixed-amount code can only be enabled on a form whose payment currency matches the code's currency."},"examples":{"Example":{"title":"Example","value":{"error":"A fixed-amount code can only be enabled on a form whose payment currency matches the code's currency."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"f6d040b1-0fe4-4581-a94b-7331033cca09":{"description":"NeetoForm APIs","url":"https://{your-subdomain}.neetoform.com/api/external/v2","variables":{"your-subdomain":{"default":"spinkart","description":"Replace **spinkart** with your [workspace's subdomain](/api/workspace-subdomain)."}}}}},"originalFileLocation":"bundled/discount-codes.yaml"},"subdomain":"neetoform-apis","siteName":"NeetoForm Docs","title":"Update a discount code - NeetoForm Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T21:24:22.973Z","originalFileLocation":"api/discount-codes/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"Change a discount code. Only the fields you send are changed. If you send form_ids, it replaces the list of forms. If you do not send it, the forms stay as they are.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NeetoForm Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/neetoform-apis/jLxdB8ISa_rQQzIo/_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/neetoform-apis/jLxdB8ISa_rQQzIo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/neetoform-apis/jLxdB8ISa_rQQzIo/_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/neetoform-apis/jLxdB8ISa_rQQzIo/_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/neetoform-apis/jLxdB8ISa_rQQzIo/_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/neetoform-apis/jLxdB8ISa_rQQzIo/_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/neetoform-apis/jLxdB8ISa_rQQzIo/_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/neetoform-apis/jLxdB8ISa_rQQzIo/_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/neetoform-apis/jLxdB8ISa_rQQzIo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a discount code - NeetoForm Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Change a discount code. Only the fields you send are changed. If you send form_ids, it replaces the list of forms. If you do not send it, the forms stay as they are.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NeetoForm Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://apidocs.neetoform.com/api/discount-codes/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://neetoform-apis.mintlify.site/_mintlify/api/og/v2?division=Discount+codes\u0026amp;title=Update+a+discount+code\u0026amp;description=Change+a+discount+code.+Only+the+fields+you+send+are+changed.+If+you+send+%60form_ids%60%2C+it+replaces+the+list+of+forms.+If+you+do+not+send+it%2C+the+forms+stay+as+th\u0026amp;theme=643883eb564d2b47e0c20f73\u0026amp;signature=eac5bc621b5f7421686c6fcca518e7de78dcfc0621f7fddbff038e2abae3abf4\">\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=\"Update a discount code - NeetoForm Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Change a discount code. Only the fields you send are changed. If you send form_ids, it replaces the list of forms. If you do not send it, the forms stay as they are.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://neetoform-apis.mintlify.site/_mintlify/api/og/v2?division=Discount+codes\u0026amp;title=Update+a+discount+code\u0026amp;description=Change+a+discount+code.+Only+the+fields+you+send+are+changed.+If+you+send+%60form_ids%60%2C+it+replaces+the+list+of+forms.+If+you+do+not+send+it%2C+the+forms+stay+as+th\u0026amp;theme=643883eb564d2b47e0c20f73\u0026amp;signature=eac5bc621b5f7421686c6fcca518e7de78dcfc0621f7fddbff038e2abae3abf4\">\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/neetoform-apis/jLxdB8ISa_rQQzIo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NeetoForm Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10B981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://apidocs.neetoform.com/api/discount-codes/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/discount-codes/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://apidocs.neetoform.com/#organization\",\"name\":\"NeetoForm Docs\",\"url\":\"https://apidocs.neetoform.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/neetoform-apis/-66QiVVszjHcVucP/assets/logo.svg?fit=max\u0026auto=format\u0026n=-66QiVVszjHcVucP\u0026q=85\u0026s=d350b3ee00a26ab9f9d6f4b30dbd0584\"}},{\"@type\":\"WebSite\",\"@id\":\"https://apidocs.neetoform.com#website\",\"name\":\"NeetoForm Docs\",\"url\":\"https://apidocs.neetoform.com\",\"publisher\":{\"@id\":\"https://apidocs.neetoform.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://apidocs.neetoform.com/api/discount-codes/update#webpage\",\"url\":\"https://apidocs.neetoform.com/api/discount-codes/update\",\"name\":\"Update a discount code\",\"description\":\"Change a discount code. Only the fields you send are changed. If you send form_ids, it replaces the list of forms. If you do not send it, the forms stay as they are.\",\"dateModified\":\"2026-10-28T21:24:22.973Z\",\"isPartOf\":{\"@id\":\"https://apidocs.neetoform.com#website\"},\"breadcrumb\":{\"@id\":\"https://apidocs.neetoform.com/api/discount-codes/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://apidocs.neetoform.com/api/discount-codes/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Discount codes\",\"item\":\"https://apidocs.neetoform.com/api/discount-codes/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update a discount code\",\"item\":\"https://apidocs.neetoform.com/api/discount-codes/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://apidocs.neetoform.com/api/discount-codes/update#apireference\",\"headline\":\"Update a discount code\",\"name\":\"Update a discount code\",\"description\":\"Change a discount code. Only the fields you send are changed. If you send form_ids, it replaces the list of forms. If you do not send it, the forms stay as they are.\",\"url\":\"https://apidocs.neetoform.com/api/discount-codes/update\",\"mainEntityOfPage\":{\"@id\":\"https://apidocs.neetoform.com/api/discount-codes/update#webpage\"},\"dateModified\":\"2026-10-28T21:24:22.973Z\",\"publisher\":{\"@id\":\"https://apidocs.neetoform.com/#organization\"},\"isPartOf\":{\"@id\":\"https://apidocs.neetoform.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NeetoForm Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NeetoForm Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/discount-codes/update.md","siteName":"NeetoForm Docs","nav":{"global":null,"tabs":[{"tab":"API","icon":"code","groups":[{"group":"Getting started","icon":"rocket","pages":[{"title":"NeetoForm API","href":"/api/introduction"},{"title":"Workspace subdomain","href":"/api/workspace-subdomain"},{"title":"Authentication","href":"/api/authentication"},{"title":"Pagination","href":"/api/pagination"},{"title":"HTTP response codes","href":"/api/response-codes"},{"title":"Getting the form ID","href":"/api/getting-form-id"}]},{"group":"Forms","icon":"file-text","pages":[{"title":"List forms","openapi":"bundled/forms.yaml GET /forms","href":"/api/forms/list"},{"title":"Show a form","openapi":"bundled/forms.yaml GET /forms/{form_id}","href":"/api/forms/show"},{"title":"Show a form outline","openapi":"bundled/forms.yaml GET /forms/{form_id}/outline","href":"/api/forms/outline"},{"title":"Create form","openapi":"bundled/forms.yaml POST /forms","href":"/api/forms/create"},{"title":"Update a form","openapi":"bundled/forms.yaml PATCH /forms/{form_id}","href":"/api/forms/update"},{"title":"Delete a form","openapi":"bundled/forms.yaml DELETE /forms/{form_id}","href":"/api/forms/delete"},{"title":"Update many forms","openapi":"bundled/forms.yaml PATCH /forms/bulk_update","href":"/api/forms/bulk-update"},{"title":"Delete many forms","openapi":"bundled/forms.yaml DELETE /forms/bulk_destroy","href":"/api/forms/bulk-delete"},{"title":"Count forms","openapi":"bundled/forms.yaml GET /forms/counts","href":"/api/forms/counts"},{"title":"Clone a form","openapi":"bundled/forms.yaml POST /forms/{form_id}/clone","href":"/api/forms/clone"},{"title":"Publish a form","openapi":"bundled/forms.yaml PATCH /forms/{form_id}/publish","href":"/api/forms/publish"},{"title":"Reset a form","openapi":"bundled/forms.yaml PATCH /forms/{form_id}/reset","href":"/api/forms/reset"},{"title":"Transfer forms","openapi":"bundled/forms.yaml POST /forms/transfer","href":"/api/forms/transfer"}]},{"group":"Questions","icon":"circle-question","pages":[{"title":"List question kinds","openapi":"bundled/questions.yaml GET /question_kinds","href":"/api/questions/kinds"},{"title":"List questions","openapi":"bundled/questions.yaml GET /forms/{form_id}/questions","href":"/api/questions/list"},{"title":"Show a question","openapi":"bundled/questions.yaml GET /forms/{form_id}/questions/{id}","href":"/api/questions/show"},{"title":"Add a question","openapi":"bundled/questions.yaml POST /forms/{form_id}/questions","href":"/api/questions/create"},{"title":"Add questions in bulk","openapi":"bundled/questions.yaml POST /forms/{form_id}/questions/bulk_create","href":"/api/questions/bulk-create"},{"title":"Update a question","openapi":"bundled/questions.yaml PATCH /forms/{form_id}/questions/{id}","href":"/api/questions/update"},{"title":"Delete a question","openapi":"bundled/questions.yaml DELETE /forms/{form_id}/questions/{id}","href":"/api/questions/delete"},{"title":"Duplicate a question","openapi":"bundled/questions.yaml POST /forms/{form_id}/questions/{id}/clone","href":"/api/questions/clone"},{"title":"Reorder questions","openapi":"bundled/questions.yaml PATCH /forms/{form_id}/questions/reorder","href":"/api/questions/reorder"}]},{"group":"Conditional logic","icon":"code-branch","pages":[{"title":"List conditions","openapi":"bundled/conditions.yaml GET /forms/{form_id}/conditions","href":"/api/conditions/list"},{"title":"Show a condition","openapi":"bundled/conditions.yaml GET /forms/{form_id}/conditions/{id}","href":"/api/conditions/show"},{"title":"Create a condition","openapi":"bundled/conditions.yaml POST /forms/{form_id}/conditions","href":"/api/conditions/create"},{"title":"Update a condition","openapi":"bundled/conditions.yaml PATCH /forms/{form_id}/conditions/{id}","href":"/api/conditions/update"},{"title":"Delete a condition","openapi":"bundled/conditions.yaml DELETE /forms/{form_id}/conditions/{id}","href":"/api/conditions/delete"},{"title":"Clone a condition","openapi":"bundled/conditions.yaml POST /forms/{form_id}/conditions/{id}/clone","href":"/api/conditions/clone"},{"title":"Reorder conditions","openapi":"bundled/conditions.yaml PATCH /forms/{form_id}/conditions/reorder","href":"/api/conditions/reorder"}]},{"group":"Automation rules","icon":"bolt","pages":[{"title":"List automation rules","openapi":"bundled/automation-rules.yaml GET /forms/{form_id}/automation_rules","href":"/api/automation-rules/list"},{"title":"Show an automation rule","openapi":"bundled/automation-rules.yaml GET /forms/{form_id}/automation_rules/{id}","href":"/api/automation-rules/show"},{"title":"Create an automation rule","openapi":"bundled/automation-rules.yaml POST /forms/{form_id}/automation_rules","href":"/api/automation-rules/create"},{"title":"Update an automation rule","openapi":"bundled/automation-rules.yaml PATCH /forms/{form_id}/automation_rules/{id}","href":"/api/automation-rules/update"},{"title":"Delete an automation rule","openapi":"bundled/automation-rules.yaml DELETE /forms/{form_id}/automation_rules/{id}","href":"/api/automation-rules/delete"},{"title":"Clone an automation rule","openapi":"bundled/automation-rules.yaml POST /forms/{form_id}/automation_rules/{id}/clone","href":"/api/automation-rules/clone"},{"title":"Reorder automation rules","openapi":"bundled/automation-rules.yaml PATCH /forms/{form_id}/automation_rules/reorder","href":"/api/automation-rules/reorder"}]},{"group":"Thank-you pages","icon":"circle-check","pages":[{"title":"List thank-you pages","openapi":"bundled/thank-you-pages.yaml GET /forms/{form_id}/thank_you_pages","href":"/api/thank-you-pages/list"},{"title":"Add a thank-you page","openapi":"bundled/thank-you-pages.yaml POST /forms/{form_id}/thank_you_pages","href":"/api/thank-you-pages/create"},{"title":"Get a thank-you page","openapi":"bundled/thank-you-pages.yaml GET /forms/{form_id}/thank_you_pages/{id}","href":"/api/thank-you-pages/show"},{"title":"Update a thank-you page","openapi":"bundled/thank-you-pages.yaml PATCH /forms/{form_id}/thank_you_pages/{id}","href":"/api/thank-you-pages/update"},{"title":"Delete a thank-you page","openapi":"bundled/thank-you-pages.yaml DELETE /forms/{form_id}/thank_you_pages/{id}","href":"/api/thank-you-pages/delete"}]},{"group":"Form settings","icon":"sliders","pages":[{"title":"Get email notification settings","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/email_notifications/{kind}","href":"/api/form-settings/show-email-notification"},{"title":"Update email notification settings","openapi":"bundled/form-settings.yaml PATCH /forms/{form_id}/email_notifications/{kind}","href":"/api/form-settings/update-email-notification"},{"title":"Get unique submission setting","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/unique_submission","href":"/api/form-settings/show-unique-submission"},{"title":"Update unique submission setting","openapi":"bundled/form-settings.yaml PATCH /forms/{form_id}/unique_submission","href":"/api/form-settings/update-unique-submission"},{"title":"Get form availability","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/availability","href":"/api/form-settings/show-availability"},{"title":"Update form availability","openapi":"bundled/form-settings.yaml PATCH /forms/{form_id}/availability","href":"/api/form-settings/update-availability"},{"title":"Get access control","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/access_control","href":"/api/form-settings/show-access-control"},{"title":"Update access control","openapi":"bundled/form-settings.yaml PATCH /forms/{form_id}/access_control","href":"/api/form-settings/update-access-control"},{"title":"List access control invitations","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/access_control_invitations","href":"/api/form-settings/list-invitations"},{"title":"Add access control invitations","openapi":"bundled/form-settings.yaml POST /forms/{form_id}/access_control_invitations","href":"/api/form-settings/create-invitations"},{"title":"Remove access control invitations","openapi":"bundled/form-settings.yaml DELETE /forms/{form_id}/access_control_invitations","href":"/api/form-settings/delete-invitations"},{"title":"List discount codes of a form","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/discount_codes","href":"/api/form-settings/list-discount-codes"},{"title":"Update discount codes of a form","openapi":"bundled/form-settings.yaml PATCH /forms/{form_id}/discount_codes","href":"/api/form-settings/update-discount-codes"},{"title":"Get tracking codes","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/tracking_codes","href":"/api/form-settings/show-tracking-codes"},{"title":"Update tracking codes","openapi":"bundled/form-settings.yaml PATCH /forms/{form_id}/tracking_codes","href":"/api/form-settings/update-tracking-codes"},{"title":"Get NeetoChat setting","openapi":"bundled/form-settings.yaml GET /forms/{form_id}/neeto_chat","href":"/api/form-settings/show-neeto-chat"},{"title":"Update NeetoChat setting","openapi":"bundled/form-settings.yaml PATCH /forms/{form_id}/neeto_chat","href":"/api/form-settings/update-neeto-chat"}]},{"group":"Message templates","icon":"envelope","pages":[{"title":"List message templates","openapi":"bundled/message-templates.yaml GET /forms/{form_id}/message_templates","href":"/api/message-templates/list"},{"title":"Add a message template","openapi":"bundled/message-templates.yaml POST /forms/{form_id}/message_templates","href":"/api/message-templates/create"},{"title":"Get a message template","openapi":"bundled/message-templates.yaml GET /forms/{form_id}/message_templates/{id}","href":"/api/message-templates/show"},{"title":"Update a message template","openapi":"bundled/message-templates.yaml PATCH /forms/{form_id}/message_templates/{id}","href":"/api/message-templates/update"},{"title":"Delete a message template","openapi":"bundled/message-templates.yaml DELETE /forms/{form_id}/message_templates/{id}","href":"/api/message-templates/delete"}]},{"group":"Share","icon":"share-nodes","pages":[{"title":"Get share details","openapi":"bundled/share.yaml GET /forms/{form_id}/share","href":"/api/share/show"},{"title":"Update the public link","openapi":"bundled/share.yaml PATCH /forms/{form_id}/public_link","href":"/api/share/update-public-link"},{"title":"Create a prefilled link","openapi":"bundled/share.yaml POST /forms/{form_id}/prefilled_link","href":"/api/share/prefilled-link"},{"title":"Send email invitations","openapi":"bundled/share.yaml POST /forms/{form_id}/email_invitations","href":"/api/share/email-invitations"}]},{"group":"Submissions","icon":"inbox","pages":[{"title":"List submissions","openapi":"bundled/submissions.yaml GET /forms/{form_id}/submissions","href":"/api/submissions/list"},{"title":"Get a submission","openapi":"bundled/submissions.yaml GET /forms/{form_id}/submissions/{id}","href":"/api/submissions/get"},{"title":"Delete a submission","openapi":"bundled/submissions.yaml DELETE /forms/{form_id}/submissions/{id}","href":"/api/submissions/delete"},{"title":"Delete submissions in bulk","openapi":"bundled/submissions.yaml DELETE /forms/{form_id}/submissions/bulk_destroy","href":"/api/submissions/bulk-delete"},{"title":"Send responses by email","openapi":"bundled/submissions.yaml POST /forms/{form_id}/submissions/send_responses","href":"/api/submissions/send-responses"},{"title":"Export submissions","openapi":"bundled/submissions.yaml POST /forms/{form_id}/exports","href":"/api/submissions/export"},{"title":"Get form insights","openapi":"bundled/submissions.yaml GET /forms/{form_id}/insights","href":"/api/submissions/insights"}]},{"group":"Themes","icon":"palette","pages":[{"title":"List themes","openapi":"bundled/themes.yaml GET /themes","href":"/api/themes/list"},{"title":"Get a theme","openapi":"bundled/themes.yaml GET /themes/{id}","href":"/api/themes/show"},{"title":"Create a theme","openapi":"bundled/themes.yaml POST /themes","href":"/api/themes/create"},{"title":"Update a theme","openapi":"bundled/themes.yaml PATCH /themes/{id}","href":"/api/themes/update"},{"title":"Delete a theme","openapi":"bundled/themes.yaml DELETE /themes/{id}","href":"/api/themes/delete"},{"title":"Apply a theme to a form","openapi":"bundled/themes.yaml PATCH /forms/{form_id}/theme","href":"/api/themes/apply"},{"title":"Upload a theme background image","href":"/api/themes/background-image"}]},{"group":"Images","icon":"image","pages":[{"title":"Upload an image from a URL","openapi":"bundled/images.yaml POST /images","href":"/api/images/upload-from-url"},{"title":"Reserve an image upload","openapi":"bundled/images.yaml POST /image_uploads","href":"/api/images/reserve-upload"}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"List form webhooks","openapi":"bundled/webhooks.yaml GET /forms/{form_id}/webhooks","href":"/api/webhooks/list-form"},{"title":"Create a form webhook","openapi":"bundled/webhooks.yaml POST /forms/{form_id}/webhooks","href":"/api/webhooks/create-form"},{"title":"List workspace webhooks","openapi":"bundled/webhooks.yaml GET /webhooks","href":"/api/webhooks/list"},{"title":"Create a workspace webhook","openapi":"bundled/webhooks.yaml POST /webhooks","href":"/api/webhooks/create"},{"title":"Get a webhook","openapi":"bundled/webhooks.yaml GET /webhooks/{id}","href":"/api/webhooks/show"},{"title":"Delete a webhook","openapi":"bundled/webhooks.yaml DELETE /webhooks/{id}","href":"/api/webhooks/delete"}]},{"group":"Discount codes","icon":"tag","pages":[{"title":"List discount codes","openapi":"bundled/discount-codes.yaml GET /discount_codes","href":"/api/discount-codes/list"},{"title":"Get a discount code","openapi":"bundled/discount-codes.yaml GET /discount_codes/{id}","href":"/api/discount-codes/show"},{"title":"Create a discount code","openapi":"bundled/discount-codes.yaml POST /discount_codes","description":"Create a discount code and enable it on the given forms. If any step fails, nothing is saved.","href":"/api/discount-codes/create"},{"title":"Update a discount code","openapi":"bundled/discount-codes.yaml PATCH /discount_codes/{id}","href":"/api/discount-codes/update"},{"title":"Delete a discount code","openapi":"bundled/discount-codes.yaml DELETE /discount_codes/{id}","description":"Delete a discount code and remove it from every form. Past redemptions are kept.","href":"/api/discount-codes/delete"},{"title":"List forms for discount codes","openapi":"bundled/discount-codes.yaml GET /discount_codes/forms","href":"/api/discount-codes/list-forms"},{"title":"List redemptions","openapi":"bundled/discount-codes.yaml GET /discount_codes/{discount_code_id}/redemptions","href":"/api/discount-codes/redemptions"},{"title":"Get the report","openapi":"bundled/discount-codes.yaml GET /discount_codes/{discount_code_id}/report","href":"/api/discount-codes/report"}]},{"group":"Templates","icon":"copy","pages":[{"title":"List templates","openapi":"bundled/templates.yaml GET /templates","href":"/api/templates/list"},{"title":"Get a template","openapi":"bundled/templates.yaml GET /templates/{id}","href":"/api/templates/show"},{"title":"Create a form from a template","openapi":"bundled/templates.yaml POST /templates/{template_id}/forms","href":"/api/templates/create-form"}]},{"group":"Team members","icon":"user-group","pages":[{"title":"List team members","openapi":"bundled/team-members.yaml GET /team-members","href":"/api/team-members/list"},{"title":"Get a team member","openapi":"bundled/team-members.yaml GET /team-members/{team_member_id}","href":"/api/team-members/show"},{"title":"Add team members","openapi":"bundled/team-members.yaml POST /team-members","href":"/api/team-members/add"},{"title":"Update team member","openapi":"bundled/team-members.yaml PATCH /team-members/{team_member_id}","href":"/api/team-members/update"},{"title":"Remove team member","openapi":"bundled/team-members.yaml DELETE /team-members/{team_member_id}","href":"/api/team-members/remove"},{"title":"List deactivated team members","openapi":"bundled/deactivated-team-members.yaml GET /deactivated_team_members","href":"/api/team-members/list-deactivated"},{"title":"Reactivate a team member","openapi":"bundled/deactivated-team-members.yaml PATCH /deactivated_team_members/{id}/reactivate","href":"/api/team-members/reactivate"}]},{"group":"Roles","icon":"user-shield","pages":[{"title":"List roles","openapi":"bundled/roles.yaml GET /roles","href":"/api/roles/list"}]},{"group":"Audit logs","icon":"clock-rotate-left","pages":[{"title":"List audit logs","openapi":"bundled/audit-logs.yaml GET /audit_logs","href":"/api/audit-logs/list"}]},{"group":"IP restriction","icon":"shield","pages":[{"title":"Get IP restriction","openapi":"bundled/ip-restriction.yaml GET /ip_restriction","href":"/api/ip-restriction/show"}]},{"group":"Custom domains","icon":"globe","pages":[{"title":"List custom domains","openapi":"bundled/custom-domains.yaml GET /custom_domains","href":"/api/custom-domains/list"},{"title":"Get a custom domain","openapi":"bundled/custom-domains.yaml GET /custom_domains/{hostname}","href":"/api/custom-domains/show"},{"title":"Add a custom domain","openapi":"bundled/custom-domains.yaml POST /custom_domains","href":"/api/custom-domains/create"},{"title":"Remove a custom domain","openapi":"bundled/custom-domains.yaml DELETE /custom_domains/{hostname}","href":"/api/custom-domains/delete"}]},{"group":"API keys","icon":"key","pages":[{"title":"List API keys","openapi":"bundled/api-keys.yaml GET /api_keys","href":"/api/api-keys/list"},{"title":"Revoke an API key","openapi":"bundled/api-keys.yaml DELETE /api_keys/{id}","href":"/api/api-keys/delete"}]},{"group":"API v1 (deprecated)","icon":"triangle-exclamation","pages":[{"title":"List forms","openapi":"bundled-v1/forms.yaml GET /forms","href":"/api-reference-v1/forms/list"},{"title":"List submissions","openapi":"bundled-v1/submissions.yaml GET /forms/{form_id}/submissions","href":"/api-reference-v1/submissions/list"},{"title":"List team members","openapi":"bundled-v1/team-members.yaml GET /team_members","href":"/api-reference-v1/team-members/list"},{"title":"Add team members","openapi":"bundled-v1/team-members.yaml POST /team_members","href":"/api-reference-v1/team-members/add"},{"title":"Update team member","openapi":"bundled-v1/team-members.yaml PATCH /team_members/{team_member_id}","href":"/api-reference-v1/team-members/update"},{"title":"Remove team members","openapi":"bundled-v1/team-members.yaml DELETE /team_members","href":"/api-reference-v1/team-members/remove"}]}]},{"tab":"CLI","icon":"rectangle-terminal","pages":[{"title":"CLI","href":"/cli/introduction"}]}]},"basePath":"","title":"Update a discount code - NeetoForm Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}