{
"code": 400,
"error_code": "error",
"type": "ValidationError",
"message": "{\"json_schema\": [\"Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'.\"]}",
"detail": {
"json_schema": [
"Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'."
]
}
}
{
"code": 401,
"error_code": "authentication_failed",
"type": "AuthenticationFailed",
"message": "Invalid service token.",
"detail": "Invalid service token."
}
{
"code": 404,
"error_code": "not_found",
"type": "NotFound",
"message": "workspace 'staging4' not found",
"detail": "workspace 'staging4' not found"
}
Structure of the workflow or event payload. Follows standard json schema specification. You can link this schema to a workflow or event to validate their input payload in API response. Same schema can be linked to multiple workflows and events.
Schema created (returns 202 Accepted when an existing schema's draft is updated). The response is the saved draft version. When commit=true and the commit succeeds, the response is the newly committed live version instead.
{
"code": 400,
"error_code": "error",
"type": "ValidationError",
"message": "{\"json_schema\": [\"Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'.\"]}",
"detail": {
"json_schema": [
"Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'."
]
}
}
{
"code": 401,
"error_code": "authentication_failed",
"type": "AuthenticationFailed",
"message": "Invalid service token.",
"detail": "Invalid service token."
}
{
"code": 404,
"error_code": "not_found",
"type": "NotFound",
"message": "workspace 'staging4' not found",
"detail": "workspace 'staging4' not found"
}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"SuprSend: API-first notification infrastructure","colors":{"primary":"#2E70E8","light":"#63A3F7","dark":"#2E70E8"},"logo":"https://mintcdn.com/suprsend/CMaQBA3E8wM1DyFj/images/suprsend-logo.svg?fit=max\u0026auto=format\u0026n=CMaQBA3E8wM1DyFj\u0026q=85\u0026s=f325b9764c629a0b488476db369b8d47","favicon":"https://mintcdn.com/suprsend/5H8hv-jDy8OaCsyX/favicon.svg?fit=max\u0026auto=format\u0026n=5H8hv-jDy8OaCsyX\u0026q=85\u0026s=e9c88c84e18f0fd4a64adb33f5fa3603","api":{"openapi":"openapi.yaml"},"background":{"decoration":"windows"},"navbar":{"links":[{"href":"mailto:support@suprsend.com","label":"Contact Us"}],"primary":{"type":"button","label":"Get Started","href":"https://app.suprsend.com"}},"footer":{"socials":{"x":"https://x.com/suprsend","github":"https://github.com/suprsend","linkedin":"https://linkedin.com/company/suprsend","youtube":"https://youtube.com/@suprsend"}},"seo":{"indexing":"all"},"fonts":{"family":"Inter"},"styling":{"codeblocks":"system","latex":true},"integrations":{"ga4":{"measurementId":"G-PPDYBESP2L"},"gtm":{"tagId":"GTM-T6W3P8RG"},"mixpanel":{"projectToken":"2febb9e078d777860c5624f2579507a7"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"slack","color":{"light":"#f59f0b","dark":"#f59f0b"},"href":"https://join.slack.com/t/suprsendcommunity/shared_invite/zt-3932rw936-XNWY1RC8bsffh4if4ZyoXQ"},{"anchor":"Trust Center","icon":"shield-halved","color":{"light":"#2564eb","dark":"#2564eb"},"href":"https://trust.suprsend.com"},{"anchor":"Platform Status","icon":"wifi","color":{"light":"#2564eb","dark":"#2564eb"},"href":"https://status.suprsend.com"},{"anchor":"Postman Collection","icon":"code","color":{"light":"#2564eb","dark":"#2564eb"},"href":"https://www.postman.com/suprsend/suprsend/collection/16bdmwa/suprsend-apis"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"suprsend","hasAudioNarration":false,"actualSubdomain":"suprsend","customDomains":["docs.suprsend.com"],"gitSource":{"type":"github","owner":"suprsend","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae333734c2492fe62cb5f9a","collectionId":"37278b68-1dc8-4a19-977b-205d552098f2","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae333734c2492fe62cb5f9a"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae864d90047c384a18ee40b","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Documentation","count":151},{"language":"default","tag":"Developer Resources","count":105},{"language":"default","tag":"Management API","count":91},{"language":"default","tag":"API Reference","count":86},{"language":"default","tag":"SDKs and APIs","count":81},{"language":"default","tag":"SDKs","count":78},{"language":"default","tag":"CORE CONCEPTS","count":57},{"language":"default","tag":"CLI","count":50},{"language":"default","tag":"SuprSend Client SDK","count":43},{"language":"default","tag":"SuprSend Backend SDK","count":34}],"searchSettings":{"showContentSnippets":true}},"assistantConfig":{"deflection":{"enabled":true,"email":"support@suprsend.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","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}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"img{max-width:100%;height:auto}table{display:block}code,pre,table{overflow-x:auto;max-width:100%}@media (max-width:768px){img[width]{width:100%!important;max-width:100%!important;height:auto!important}pre{font-size:13px}}a.card[href=\"https://skills.sh/suprsend/skills\"]{position:relative}a.card[href=\"https://skills.sh/suprsend/skills\"]>img{position:absolute!important;top:1.25rem!important;left:1.5rem!important;width:1.5rem!important;height:1.5rem!important;max-width:1.5rem!important;max-height:1.5rem!important;min-height:1.5rem!important;object-fit:contain!important;z-index:1}a.card[href=\"https://skills.sh/suprsend/skills\"] .px-6.py-5{padding-top:3.25rem!important}a.card[href=\"https://skills.sh/suprsend/skills\"] h2{margin-top:0!important}[data-component-name=mermaid-controls-wrapper]{display:none!important}.mermaid .cluster-label,.mermaid .cluster-label p,.mermaid .edgeLabel,.mermaid .edgeLabel p,.mermaid .nodeLabel,.mermaid .nodeLabel p{color:#4d4d4d!important}.mermaid .cluster-label,.mermaid .edgeLabel,.mermaid .nodeLabel,.mermaid text{fill:#4d4d4d!important}.dark .mermaid .cluster-label,.dark .mermaid .cluster-label p,.dark .mermaid .edgeLabel,.dark .mermaid .edgeLabel p,.dark .mermaid .nodeLabel,.dark .mermaid .nodeLabel p{color:#ccc!important}.dark .mermaid .cluster-label,.dark .mermaid .edgeLabel,.dark .mermaid .nodeLabel,.dark .mermaid text{fill:#ccc!important}.changelog-page-content{padding:0 7rem}@media (max-width:768px){.changelog-page-content{padding:0 1rem}}.ss-flow{--ss-ink:#1f2937;--ss-muted:#6b7280;--ss-line:#e5e7eb;--ss-accent:#2e70e8;--ss-core-bg:#f5f8fe;--ss-core-line:#d4e2fb;--ss-arrow:#9ca3af;display:grid;grid-template-columns:minmax(0,1fr) 1.5rem minmax(0,2.1fr) 1.5rem minmax(0,1fr);align-items:center;margin:1.75rem 0 2rem;font-size:.875rem;line-height:1.4;color:var(--ss-ink)}.dark .ss-flow{--ss-ink:#e5e7eb;--ss-muted:#9ca3af;--ss-line:rgba(255, 255, 255, 0.12);--ss-accent:#63a3f7;--ss-core-bg:rgba(46, 112, 232, 0.1);--ss-core-line:rgba(99, 163, 247, 0.28);--ss-arrow:#6b7280}.ss-flow .ss-flow__label{margin:0 0 .5rem;font-size:.75rem;font-weight:600;color:var(--ss-muted)}.ss-flow .ss-flow__list{list-style:none;margin:0;padding:.5rem .75rem;border:1px solid var(--ss-line);border-radius:10px;font-size:.8125rem}.ss-flow .ss-flow__list li{margin:0;padding:.3125rem 0}.ss-flow .ss-flow__arrow{position:relative;height:1px;margin:1.25rem .25rem 0 .125rem;background:var(--ss-arrow)}.ss-flow .ss-flow__arrow::after{content:\"\";position:absolute;top:-4px;right:-1px;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;border-left:6px solid var(--ss-arrow)}.ss-flow .ss-flow__core{overflow:hidden;border:1px solid var(--ss-core-line);border-radius:14px;background:var(--ss-core-bg)}.ss-flow .ss-flow__label--core{margin:0;padding:.875rem 1rem 0;font-size:.875rem;color:var(--ss-accent)}.ss-flow .ss-flow__stages{list-style:none;margin:0;padding:.875rem 1rem 1rem}.ss-flow .ss-flow__stage{position:relative;margin:0;padding:0 0 1rem 1.5rem}.ss-flow .ss-flow__stage:last-child{padding-bottom:0}.ss-flow .ss-flow__stage::before{content:\"\";position:absolute;top:.3rem;left:0;z-index:1;width:.625rem;height:.625rem;border-radius:50%;background:var(--ss-accent)}.ss-flow .ss-flow__stage::after{content:\"\";position:absolute;top:.5rem;bottom:-.5rem;left:calc(.3125rem - 1px);width:2px;background:var(--ss-core-line)}.ss-flow .ss-flow__stage:last-child::after{display:none}.ss-flow .ss-flow__stage strong{display:block}.ss-flow .ss-flow__stage span{display:block;margin-top:.125rem;font-size:.8125rem;color:var(--ss-muted)}.ss-flow .ss-flow__logs{margin:0;padding:.625rem 1rem;border-top:1px dashed var(--ss-core-line);font-size:.8125rem;color:var(--ss-muted)}.ss-flow .ss-flow__logs strong,.ss-flow .ss-flow__stage strong{font-weight:600;color:var(--ss-ink)}@media (max-width:640px){.ss-flow{grid-template-columns:minmax(0,1fr)}.ss-flow .ss-flow__list{display:flex;flex-wrap:wrap;gap:0 1rem}.ss-flow .ss-flow__arrow{width:1px;height:1.25rem;margin:.5rem auto}.ss-flow .ss-flow__arrow::after{top:auto;right:auto;bottom:-1px;left:-4px;border-top:6px solid var(--ss-arrow);border-right:4.5px solid transparent;border-bottom:0;border-left:4.5px solid transparent}}"}],"page":{"pagePath":"reference/upsert-schema","slug":"/reference/upsert-schema","pageMetadata":{"openapi":"POST /v1/{workspace}/schema/{schema_slug}/","title":"Create/Update Schema","description":"Upset draft version of a JSON schema. Creates a new schema if it doesn't exist.","href":"/reference/upsert-schema"},"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: \"Upset draft version of a JSON schema. Creates a new schema if it doesn’t exist.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"openapi":"POST /v1/{workspace}/schema/{schema_slug}/","title":"Create/Update Schema","description":"Upset draft version of a JSON schema. Creates a new schema if it doesn't exist.","href":"/reference/upsert-schema"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/suprsend/1ff47b86af33ef76/apollo-tracker.js"],"openApiReferenceData":{"operation":{"summary":"Create/Update Schema","description":"Upset draft version of a JSON schema. Creates a new schema if it doesn't exist.","operationId":"upsert-schema","servers":["1fb81eb2-c153-4899-8181-77b20ac6e638"],"security":["bb51d367-c3f7-409e-9bac-32f04a18708f"],"x-codeSamples":[{"lang":"cURL","label":"Upsert Schema","source":"curl -X POST \"https://management-api.suprsend.com/v1/{workspace}/schema/{schema_slug}/?commit=true\u0026commit_message=Initial%20schema%20creation\" \\\n --header 'Authorization: ServiceToken \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"name\": \"Order Placed Event\",\n \"description\": \"Schema for order placement action\",\n \"json_schema\": {\n \"type\": \"object\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"required\": [\"order_id\", \"amount\"],\n \"properties\": {\n \"order_id\": {\n \"type\": \"string\"\n },\n \"amount\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": true\n }\n }'\n"}],"parameters":["1b94f17d-7423-48b8-8493-aeff6763e0e9","c0644f9e-3a77-49fc-acf7-38421f7b8216","565af330-e6b5-4365-b954-ed7c1752f607","fe5bd6d7-9de0-4dde-a6f7-c7414b39fb17"],"requestBody":"a9d5ea9d-9128-4e35-b7d2-065c008b2755","responses":{"201":"e24ef5a6-ef48-448b-8ed7-4d537d704e54","202":"98c02066-4c48-491c-8e8e-ac35bb3d96e3","400":"12167ae9-0e65-4899-8aa4-dc63aacc1662","401":"2187431a-e1bb-440b-8f09-b4a179c6cf68","404":"a779cce0-af70-44d0-8db2-db8fb9093ec3"},"method":"post","type":"path","path":"/v1/{workspace}/schema/{schema_slug}/","baseUrlOptions":["https://management-api.suprsend.com"],"title":"Create/Update Schema","codeSamples":[{"label":"Upsert Schema","lang":"cURL","source":"curl -X POST \"https://management-api.suprsend.com/v1/{workspace}/schema/{schema_slug}/?commit=true\u0026commit_message=Initial%20schema%20creation\" \\\n --header 'Authorization: ServiceToken \u003ctoken>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"name\": \"Order Placed Event\",\n \"description\": \"Schema for order placement action\",\n \"json_schema\": {\n \"type\": \"object\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"required\": [\"order_id\", \"amount\"],\n \"properties\": {\n \"order_id\": {\n \"type\": \"string\"\n },\n \"amount\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": true\n }\n }'\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"1b94f17d-7423-48b8-8493-aeff6763e0e9":{"in":"path","name":"workspace","required":true,"schema":{"type":"string","isRequired":true,"description":"Workspace slug (staging, production, etc.)","uniqueKey":"","typeLabel":"string"},"description":"Workspace slug (staging, production, etc.)"},"c0644f9e-3a77-49fc-acf7-38421f7b8216":{"in":"path","name":"schema_slug","required":true,"schema":{"type":"string","isRequired":true,"description":"Unique identifier of the schema","uniqueKey":"","typeLabel":"string"},"description":"Unique identifier of the schema"},"565af330-e6b5-4365-b954-ed7c1752f607":{"in":"query","name":"commit","required":false,"schema":{"type":"boolean","default":false,"isRequired":false,"description":"Set to true to commit the schema immediately after creation/update","uniqueKey":"","typeLabel":"boolean"},"description":"Set to true to commit the schema immediately after creation/update"},"fe5bd6d7-9de0-4dde-a6f7-c7414b39fb17":{"in":"query","name":"commit_message","required":false,"schema":{"type":"string","isRequired":false,"description":"Optional commit message describing the changes. Used only when commit=true.","uniqueKey":"","typeLabel":"string"},"description":"Optional commit message describing the changes. Used only when commit=true."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":128,"description":"Human-readable name of the schema","example":"Order Placed Event","uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Description of the schema. Can be used to describe which action this schema is linked to.","example":"Schema for order placement action","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the schema. Can be used to describe which action this schema is linked to.","example":"Schema for order placement action","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"is_enabled":{"type":"boolean","default":true,"description":"Whether the schema is enabled.","uniqueKey":"is_enabled","typeLabel":"boolean"},"json_schema":{"type":"object","description":"Structure of the workflow or event payload. Follows standard [json schema specification](https://json-schema.org/draft/2020-12/schema). You can link this schema to a workflow or event to validate their input payload in API response. Same schema can be linked to multiple workflows and events.","example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["order_id","amount"],"properties":{"order_id":{"type":"string"},"amount":{"type":"string"}},"additionalProperties":true},"uniqueKey":"json_schema","typeLabel":"object"}},"example":{"name":"Order Placed Event","description":"Schema for order placement action","json_schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["order_id","amount"],"properties":{"order_id":{"type":"string"},"amount":{"type":"string"}},"additionalProperties":true}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"Order Placed Event","description":"Schema for order placement action","json_schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["order_id","amount"],"properties":{"order_id":{"type":"string"},"amount":{"type":"string"}},"additionalProperties":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e24ef5a6-ef48-448b-8ed7-4d537d704e54":{"description":"Schema created (returns 202 Accepted when an existing schema's draft is updated). The response is the saved draft version. When `commit=true` and the commit succeeds, the response is the newly committed live version instead.","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"Unique identifier for the schema","example":"new-order-placed","uniqueKey":"slug","typeLabel":"string"},"name":{"type":"string","description":"Human-readable name of the schema","example":"Order Placed Event","uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Description of the schema","example":"Schema for order placement action","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the schema","example":"Schema for order placement action","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"status":{"type":"string","enum":["draft","live"],"description":"Status of the returned schema version. `draft`, or `live` when `commit=true` and the commit succeeds.","example":"draft","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"hash":{"type":"string","description":"Git-like hash for version tracking","example":"382b707d4b1f8999a1xxxxxxxx","uniqueKey":"hash","typeLabel":"string"},"json_schema":{"oneOf":[{"type":"object","description":"JSON schema passed in the request body.","uniqueKey":"json_schema.oneOf.0","typeLabel":"object"},{"type":"null","description":"JSON schema passed in the request body.","uniqueKey":"json_schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"json_schema","typeLabel":"object | null"},"created_at":{"type":"string","format":"date-time","description":"When the schema was created","example":"2025-08-27T09:30:57.945326Z","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the schema was last updated","example":"2025-08-29T15:37:37.650177Z","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"commit_result":{"oneOf":[{"type":"object","description":"Commit result when commit=true is passed in query parameter","properties":{"is_committed":{"type":"boolean","description":"Whether the schema was successfully committed","example":false,"uniqueKey":"commit_result.oneOf.0.is_committed","typeLabel":"boolean"},"errors":{"type":"array","items":{"type":"string","uniqueKey":"commit_result.oneOf.0.errors.items.[INDEX]","typeLabel":"string"},"description":"List of errors if commit failed","example":"hash: no uncommitted changes found","uniqueKey":"commit_result.oneOf.0.errors","typeLabel":"string[]"}},"example":{"is_committed":false,"errors":["hash: no uncommitted changes found"]},"uniqueKey":"commit_result.oneOf.0","typeLabel":"object"},{"type":"null","description":"Commit result when commit=true is passed in query parameter","properties":{"is_committed":{"type":"boolean","description":"Whether the schema was successfully committed","example":false},"errors":{"type":"array","items":{"type":"string"},"description":"List of errors if commit failed","example":"hash: no uncommitted changes found"}},"example":{"is_committed":false,"errors":["hash: no uncommitted changes found"]},"uniqueKey":"commit_result.oneOf.1","typeLabel":"null"}],"uniqueKey":"commit_result","typeLabel":"object | null"}},"example":{"slug":"new-order-placed","name":"Order Placed Event","description":"Schema for order placement action","status":"draft","hash":"382b707d4b1f8999a1xxxxxxxx","json_schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["order_id","amount"],"properties":{"order_id":{"type":"string"},"amount":{"type":"string"}},"additionalProperties":true},"created_at":"2025-08-27T09:30:57.945326Z","updated_at":"2025-08-29T15:37:37.650177Z","commit_result":{"is_committed":false,"errors":["hash: no uncommitted changes found"]}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"slug":"new-order-placed","name":"Order Placed Event","description":"Schema for order placement action","status":"draft","hash":"382b707d4b1f8999a1xxxxxxxx","json_schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["order_id","amount"],"properties":{"order_id":{"type":"string"},"amount":{"type":"string"}},"additionalProperties":true},"created_at":"2025-08-27T09:30:57.945326Z","updated_at":"2025-08-29T15:37:37.650177Z","commit_result":{"is_committed":false,"errors":["hash: no uncommitted changes found"]}}}},"exampleType":"generated"}},"exampleType":"generated"},"98c02066-4c48-491c-8e8e-ac35bb3d96e3":{"description":"Existing schema draft updated. Same response body as `201`.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"12167ae9-0e65-4899-8aa4-dc63aacc1662":{"description":"Invalid schema format","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code","example":400,"uniqueKey":"code","typeLabel":"integer"},"error_code":{"type":"string","description":"Error code identifier.","example":"error","uniqueKey":"error_code","typeLabel":"string"},"type":{"type":"string","description":"Error type","example":"ValidationError","uniqueKey":"type","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"{\"json_schema\": [\"Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'.\"]}","uniqueKey":"message","typeLabel":"string"},"detail":{"type":"object","description":"Detailed error information","example":{"json_schema":["Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'."]},"uniqueKey":"detail","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":400,"error_code":"error","type":"ValidationError","message":"{\"json_schema\": [\"Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'.\"]}","detail":{"json_schema":["Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'."]}},"examples":{"Example":{"title":"Example","value":{"code":400,"error_code":"error","type":"ValidationError","message":"{\"json_schema\": [\"Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'.\"]}","detail":{"json_schema":["Schema looks like JSON data, not a JSON Schema. Include keywords like '$schema', 'type', 'properties', or '$defs'."]}}}},"exampleType":"examples"}},"exampleType":"examples"},"2187431a-e1bb-440b-8f09-b4a179c6cf68":{"description":"AuthenticationFailed - Invalid service token.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code","uniqueKey":"code","typeLabel":"integer"},"error_code":{"type":"string","description":"Specific error code identifier","uniqueKey":"error_code","typeLabel":"string"},"type":{"type":"string","description":"Error type classification","uniqueKey":"type","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"message","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","description":"Additional error details. A string for most errors. For validation errors, either an object mapping field names to their error messages, or an array of messages when the error is not tied to a field.","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","description":"Additional error details. A string for most errors. For validation errors, either an object mapping field names to their error messages, or an array of messages when the error is not tied to a field.","uniqueKey":"detail.oneOf.1","typeLabel":"object"},{"type":"array","items":{"type":"string","uniqueKey":"detail.oneOf.2.items.[INDEX]","typeLabel":"string"},"description":"Additional error details. A string for most errors. For validation errors, either an object mapping field names to their error messages, or an array of messages when the error is not tied to a field.","uniqueKey":"detail.oneOf.2","typeLabel":"string[]"}],"uniqueKey":"detail","typeLabel":"string | object | string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":401,"error_code":"authentication_failed","type":"AuthenticationFailed","message":"Invalid service token.","detail":"Invalid service token."},"examples":{"Example":{"title":"Example","value":{"code":401,"error_code":"authentication_failed","type":"AuthenticationFailed","message":"Invalid service token.","detail":"Invalid service token."}}},"exampleType":"examples"}},"exampleType":"examples"},"a779cce0-af70-44d0-8db2-db8fb9093ec3":{"description":"Schema not found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code","example":404,"uniqueKey":"code","typeLabel":"integer"},"error_code":{"type":"string","description":"Error code identifier","example":"not_found","uniqueKey":"error_code","typeLabel":"string"},"type":{"type":"string","description":"Error type","example":"NotFound","uniqueKey":"type","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"workspace 'staging4' not found","uniqueKey":"message","typeLabel":"string"},"detail":{"type":"string","description":"Detailed error information","example":"workspace 'staging4' not found","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":404,"error_code":"not_found","type":"NotFound","message":"workspace 'staging4' not found","detail":"workspace 'staging4' not found"},"examples":{"Example":{"title":"Example","value":{"code":404,"error_code":"not_found","type":"NotFound","message":"workspace 'staging4' not found","detail":"workspace 'staging4' not found"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"bb51d367-c3f7-409e-9bac-32f04a18708f":{"ServiceTokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Pass as `Authorization: ServiceToken \u003ctoken>`. You can get Service Token from [SuprSend dashboard -> Account Settings -> Service Tokens](https://app.suprsend.com/en/account-settings/service-tokens) section.","scopes":[],"schemeName":"ServiceTokenAuth"}}},"servers":{"1fb81eb2-c153-4899-8181-77b20ac6e638":{"url":"https://management-api.suprsend.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"Pass as `Authorization: ServiceToken \u003ctoken>`. You can get Service Token from [SuprSend dashboard -> Account Settings -> Service Tokens](https://app.suprsend.com/en/account-settings/service-tokens) section.","scopes":[],"schemeName":"ServiceTokenAuth"},"schema":{"title":"Authorization","type":"string","description":"Pass as `Authorization: ServiceToken \u003ctoken>`. You can get Service Token from [SuprSend dashboard -> Account Settings -> Service Tokens](https://app.suprsend.com/en/account-settings/service-tokens) section.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ServiceTokenAuth","name":"Authorization"}],"title":"ServiceTokenAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"suprsend","siteName":"SuprSend: API-first notification infrastructure","title":"Create/Update Schema - SuprSend: API-first notification infrastructure","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-27T06:01:25.730Z","originalFileLocation":"reference/upsert-schema.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Upset draft version of a JSON schema. Creates a new schema if it doesn\u0026#x27;t exist.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SuprSend: API-first notification infrastructure\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/suprsend/FnIDjx0xTYX1D8EZ/_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/suprsend/FnIDjx0xTYX1D8EZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/suprsend/FnIDjx0xTYX1D8EZ/_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/suprsend/FnIDjx0xTYX1D8EZ/_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/suprsend/FnIDjx0xTYX1D8EZ/_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/suprsend/FnIDjx0xTYX1D8EZ/_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/suprsend/FnIDjx0xTYX1D8EZ/_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/suprsend/FnIDjx0xTYX1D8EZ/_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/suprsend/FnIDjx0xTYX1D8EZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create/Update Schema - SuprSend: API-first notification infrastructure\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upset draft version of a JSON schema. Creates a new schema if it doesn\u0026#x27;t exist.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SuprSend: API-first notification infrastructure\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.suprsend.com/reference/upsert-schema\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://suprsend.mintlify.app/_mintlify/api/og/v2?division=SCHEMAS\u0026amp;title=Create%2FUpdate+Schema\u0026amp;description=Upset+draft+version+of+a+JSON+schema.+Creates+a+new+schema+if+it+doesn%27t+exist.\u0026amp;theme=77e430d508312c14f721c90a\u0026amp;signature=f8495ec02e9a9e9698940e46ee38fe78a5c822703b895ffba7074c6619777f33\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create/Update Schema - SuprSend: API-first notification infrastructure\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upset draft version of a JSON schema. Creates a new schema if it doesn\u0026#x27;t exist.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://suprsend.mintlify.app/_mintlify/api/og/v2?division=SCHEMAS\u0026amp;title=Create%2FUpdate+Schema\u0026amp;description=Upset+draft+version+of+a+JSON+schema.+Creates+a+new+schema+if+it+doesn%27t+exist.\u0026amp;theme=77e430d508312c14f721c90a\u0026amp;signature=f8495ec02e9a9e9698940e46ee38fe78a5c822703b895ffba7074c6619777f33\">\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/suprsend/FnIDjx0xTYX1D8EZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SuprSend: API-first notification infrastructure\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2E70E8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.suprsend.com/reference/upsert-schema\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/upsert-schema.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.suprsend.com/#organization\",\"name\":\"SuprSend: API-first notification infrastructure\",\"url\":\"https://docs.suprsend.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/suprsend/CMaQBA3E8wM1DyFj/images/suprsend-logo.svg?fit=max\u0026auto=format\u0026n=CMaQBA3E8wM1DyFj\u0026q=85\u0026s=f325b9764c629a0b488476db369b8d47\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.suprsend.com#website\",\"name\":\"SuprSend: API-first notification infrastructure\",\"url\":\"https://docs.suprsend.com\",\"publisher\":{\"@id\":\"https://docs.suprsend.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.suprsend.com/reference/upsert-schema#webpage\",\"url\":\"https://docs.suprsend.com/reference/upsert-schema\",\"name\":\"Create/Update Schema\",\"description\":\"Upset draft version of a JSON schema. Creates a new schema if it doesn't exist.\",\"dateModified\":\"2026-01-27T06:01:25.730Z\",\"isPartOf\":{\"@id\":\"https://docs.suprsend.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.suprsend.com/reference/upsert-schema#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.suprsend.com/reference/upsert-schema#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SuprSend: API-first notification infrastructure\",\"item\":\"https://docs.suprsend.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create/Update Schema\",\"item\":\"https://docs.suprsend.com/reference/upsert-schema\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.suprsend.com/reference/upsert-schema#apireference\",\"headline\":\"Create/Update Schema\",\"name\":\"Create/Update Schema\",\"description\":\"Upset draft version of a JSON schema. Creates a new schema if it doesn't exist.\",\"url\":\"https://docs.suprsend.com/reference/upsert-schema\",\"mainEntityOfPage\":{\"@id\":\"https://docs.suprsend.com/reference/upsert-schema#webpage\"},\"dateModified\":\"2026-01-27T06:01:25.730Z\",\"publisher\":{\"@id\":\"https://docs.suprsend.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.suprsend.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SuprSend: API-first notification infrastructure\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SuprSend: API-first notification infrastructure","nav":{"global":{"anchors":[{"anchor":"Community","icon":"slack","color":{"light":"#f59f0b","dark":"#f59f0b"},"href":"https://join.slack.com/t/suprsendcommunity/shared_invite/zt-3932rw936-XNWY1RC8bsffh4if4ZyoXQ"},{"anchor":"Trust Center","icon":"shield-halved","color":{"light":"#2564eb","dark":"#2564eb"},"href":"https://trust.suprsend.com"},{"anchor":"Platform Status","icon":"wifi","color":{"light":"#2564eb","dark":"#2564eb"},"href":"https://status.suprsend.com"},{"anchor":"Postman Collection","icon":"code","color":{"light":"#2564eb","dark":"#2564eb"},"href":"https://www.postman.com/suprsend/suprsend/collection/16bdmwa/suprsend-apis"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/what-is-suprsend"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/docs/guides/modelling-customers-workspace-vs-tenant"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/overview"}]},{"tab":"Management API","groups":[{"group":"API Reference","pages":[{"title":"Overview","href":"/docs/management-api-overview"},{"title":"Authentication","href":"/reference/service-token-authentication"},{"title":"Errors","href":"/docs/management-api-errors"}]},{"group":"WORKSPACE \u0026 AUTH KEYS","pages":[{"group":"Workspaces","pages":[{"title":"List Workspaces","openapi":"GET /v1/workspace/","sidebarTitle":"List Workspaces","href":"/reference/list-workspaces"},{"title":"Create Workspace","openapi":"POST /v1/workspace/","sidebarTitle":"Create Workspace","href":"/reference/create-workspace"},{"title":"Get Workspace Config","openapi":"GET /v1/workspace/{workspace_slug}/config/","sidebarTitle":"Get Workspace Config","href":"/reference/get-workspace-config"},{"title":"Update Workspace Config","openapi":"PATCH /v1/workspace/{workspace_slug}/config/","sidebarTitle":"Update Workspace Config","href":"/reference/update-workspace-config"}]},{"group":"Workspace keys","pages":[{"title":"List Workspace Keys","openapi":"GET /v1/{workspace}/ws_key/","sidebarTitle":"List Workspace Keys","href":"/reference/list-workspace-keys"},{"title":"Create Workspace Key","openapi":"POST /v1/{workspace}/ws_key/","sidebarTitle":"Create Workspace Key","href":"/reference/create-workspace-key"},{"title":"Get Workspace Key","openapi":"GET /v1/{workspace}/ws_key/{workspace_key_id}/","sidebarTitle":"Get Workspace Key","href":"/reference/get-workspace-key"},{"title":"Rotate Workspace Key Secret","openapi":"PATCH /v1/{workspace}/ws_key/{workspace_key_id}/rotate/","sidebarTitle":"Rotate Secret","href":"/reference/rotate-workspace-key"},{"title":"Delete Workspace Key","openapi":"DELETE /v1/{workspace}/ws_key/{workspace_key_id}/","sidebarTitle":"Delete Workspace Key","href":"/reference/delete-workspace-key"}]},{"group":"API keys","pages":[{"title":"List API Keys","openapi":"GET /v1/{workspace}/ws_api_key/","sidebarTitle":"List API Keys","href":"/reference/list-workspace-api-keys"},{"title":"Create API Key","openapi":"POST /v1/{workspace}/ws_api_key/","sidebarTitle":"Create API Key","href":"/reference/create-workspace-api-key"},{"title":"Delete API Key","openapi":"DELETE /v1/{workspace}/ws_api_key/{api_key_id}/","sidebarTitle":"Delete API Key","href":"/reference/delete-workspace-api-key"}]},{"group":"Public keys","pages":[{"title":"List Workspace Public Keys","openapi":"GET /v1/{workspace}/ws_public_key/","sidebarTitle":"List Public Keys","href":"/reference/list-workspace-public-keys"},{"title":"Create Workspace Public Key","openapi":"POST /v1/{workspace}/ws_public_key/","sidebarTitle":"Create Public Key","href":"/reference/create-workspace-public-key"},{"title":"Enable or Disable Secure Mode on Public Key","openapi":"PATCH /v1/{workspace}/ws_public_key/{public_key_id}/","sidebarTitle":"Toggle Secure Mode","href":"/reference/patch-workspace-public-key"},{"title":"Rotate Workspace Public Key","openapi":"PATCH /v1/{workspace}/ws_public_key/{public_key_id}/rotate/","sidebarTitle":"Rotate Public Key","href":"/reference/rotate-workspace-public-key"},{"title":"Delete Workspace Public Key","openapi":"DELETE /v1/{workspace}/ws_public_key/{public_key_id}/","sidebarTitle":"Delete Public Key","href":"/reference/delete-workspace-public-key"}]},{"group":"Signing keys","pages":[{"title":"List Workspace Signing Keys","openapi":"GET /v1/{workspace}/ws_signing_key/","sidebarTitle":"List Signing Keys","href":"/reference/list-workspace-signing-keys"},{"title":"Create Workspace Signing Key","openapi":"POST /v1/{workspace}/ws_signing_key/","sidebarTitle":"Create Signing Key","href":"/reference/create-workspace-signing-key"},{"title":"Roll Workspace Signing Key","openapi":"POST /v1/{workspace}/ws_signing_key/{signing_key_uid}/roll/","sidebarTitle":"Roll Signing Key","href":"/reference/roll-workspace-signing-key"},{"title":"Delete Workspace Signing Key","openapi":"DELETE /v1/{workspace}/ws_signing_key/{signing_key_uid}/","sidebarTitle":"Delete Signing Key","href":"/reference/delete-workspace-signing-key"}]}]},{"group":"WORKFLOWS","pages":[{"title":"Create or Update Workflow","openapi":"POST /v1/{workspace}/workflow/{slug}/","sidebarTitle":"Create/Update Workflow","href":"/reference/create-update-workflow"},{"title":"Commit Workflow","openapi":"PATCH /v1/{workspace}/workflow/{slug}/commit/","sidebarTitle":"Commit Workflow","href":"/reference/commit-workflow"},{"title":"Get Workflow Details","openapi":"GET /v1/{workspace}/workflow/{slug}/","sidebarTitle":"Get Workflow","href":"/reference/get-workflow"},{"title":"List Workflows","openapi":"GET /v1/{workspace}/workflow/","sidebarTitle":"List Workflows","href":"/reference/list-workflows"},{"title":"Enable/Disable Workflow","openapi":"PATCH /v1/{workspace}/workflow/{slug}/enable/","sidebarTitle":"Enable/Disable Workflow","href":"/reference/enable-disable-workflow"},{"title":"Delete Workflow","openapi":"DELETE /v1/{workspace}/workflow/{slug}/","sidebarTitle":"Delete Workflow","href":"/reference/delete-workflow"},{"group":"Node Schema","pages":[{"title":"Delay","sidebarTitle":"Delay","href":"/reference/workflow-nodes/delay"},{"title":"Batch","sidebarTitle":"Batch","href":"/reference/workflow-nodes/batch"},{"title":"Digest","sidebarTitle":"Digest","href":"/reference/workflow-nodes/digest"},{"title":"Webhook","sidebarTitle":"Webhook","href":"/reference/workflow-nodes/webhook"},{"title":"Fetch","sidebarTitle":"Fetch","href":"/reference/workflow-nodes/fetch"},{"title":"Wait Until","sidebarTitle":"Wait Until","href":"/reference/workflow-nodes/wait-until"},{"title":"Branch","sidebarTitle":"Branch","href":"/reference/workflow-nodes/branch"},{"title":"Data Transform","sidebarTitle":"Data Transform","href":"/reference/workflow-nodes/data-transform"},{"title":"Time Window","sidebarTitle":"Time Window","href":"/reference/workflow-nodes/time-window"},{"title":"Add User to List","sidebarTitle":"Add User to List","href":"/reference/workflow-nodes/add-user-to-list"},{"title":"Remove User from List","sidebarTitle":"Remove User from List","href":"/reference/workflow-nodes/remove-user-from-list"},{"title":"Subscribe to Object","sidebarTitle":"Subscribe to Object","href":"/reference/workflow-nodes/subscribe-to-object"},{"title":"Unsubscribe from Object","sidebarTitle":"Unsubscribe from Object","href":"/reference/workflow-nodes/unsubscribe-from-object"},{"title":"Update User Profile","sidebarTitle":"Update User Profile","href":"/reference/workflow-nodes/update-user-profile"},{"title":"Invoke Workflow","sidebarTitle":"Invoke Workflow","href":"/reference/workflow-nodes/invoke-workflow"},{"title":"Send Email","sidebarTitle":"Send Email","href":"/reference/workflow-nodes/send-email"},{"title":"Send SMS","sidebarTitle":"Send SMS","href":"/reference/workflow-nodes/send-sms"},{"title":"Send WhatsApp","sidebarTitle":"Send WhatsApp","href":"/reference/workflow-nodes/send-whatsapp"},{"title":"Send Mobile Push","sidebarTitle":"Send Mobile Push","href":"/reference/workflow-nodes/send-mobile-push"},{"title":"Send Inbox","sidebarTitle":"Send Inbox","href":"/reference/workflow-nodes/send-inbox"},{"title":"Send Web Push","sidebarTitle":"Send Web Push","href":"/reference/workflow-nodes/send-web-push"},{"title":"Send Slack","sidebarTitle":"Send Slack","href":"/reference/workflow-nodes/send-slack"},{"title":"Send Microsoft Teams","sidebarTitle":"Send Microsoft Teams","href":"/reference/workflow-nodes/send-ms-teams"},{"title":"Send Multi-Channel","sidebarTitle":"Send Multi-Channel","href":"/reference/workflow-nodes/send-multi-channel"},{"title":"Smart Channel Routing","sidebarTitle":"Smart Channel Routing","description":null,"href":"/reference/workflow-nodes/send-smart-channel-routing"}]}]},{"group":"SCHEMAS","pages":[{"openapi":"POST /v1/{workspace}/schema/{schema_slug}/","title":"Create/Update Schema","href":"/reference/upsert-schema"},{"openapi":"PATCH /v1/{workspace}/schema/{schema_slug}/commit/","title":"Commit Schema","description":"Commit a draft schema to make it live. Changes will start to take effect as soon as it's live.","href":"/reference/commit-schema"},{"openapi":"GET /v1/{workspace}/schema/","title":"List Schemas","href":"/reference/list-schemas"},{"openapi":"GET /v1/{workspace}/schema/{schema_slug}/","title":"Get Schema","href":"/reference/get-schema"}]},{"group":"EVENTS","pages":[{"openapi":"POST /v1/{workspace}/event/","title":"Create Event","href":"/reference/create-event"},{"openapi":"PATCH /v1/{workspace}/event/{url_encoded_event_name}/","title":"Update Event","href":"/reference/update-event"},{"openapi":"GET /v1/{workspace}/event/","title":"List Events","href":"/reference/list-events"},{"openapi":"GET /v1/{workspace}/event/{url_encoded_event_name}/","title":"Get Event Details","href":"/reference/get-event"},{"openapi":"GET /v1/{workspace}/event/{url_encoded_event_name}/linked_workflows/","title":"Get Linked Workflows","href":"/reference/get-linked-workflows"},{"openapi":"PATCH /v1/{workspace}/event/{url_encoded_event_name}/delink_schema/","title":"Delink Schema from Event","href":"/reference/delink-event-schema"}]},{"group":"CATEGORIES","pages":[{"title":"Get Preference Category","openapi":"GET /v1/{workspace}/preference_category/","sidebarTitle":"Get Category","href":"/reference/get-category"},{"title":"Create or Update Preference Category","openapi":"POST /v1/{workspace}/preference_category/","sidebarTitle":"Create/Update Category","href":"/reference/create-update-category"},{"title":"Commit Preference Category","openapi":"PATCH /v1/{workspace}/preference_category/commit/","sidebarTitle":"Commit Category","href":"/reference/commit-category"},{"title":"List Category Translation","openapi":"GET /v1/{workspace}/preference_category/translation/locale/","sidebarTitle":"List Translation","href":"/reference/list-category-translation"},{"title":"Get Category Translation","openapi":"GET /v1/{workspace}/preference_category/translation/content/{locale}/","sidebarTitle":"Get Translation","href":"/reference/get-category-translation"},{"title":"Add or Update Category Translation","openapi":"POST /v1/{workspace}/preference_category/translation/content/{locale}/","sidebarTitle":"Add Translation","href":"/reference/add-category-translation"},{"title":"Delete Category Translation","openapi":"DELETE /v1/{workspace}/preference_category/translation/content/{locale}/","sidebarTitle":"Delete Translation","href":"/reference/delete-category-translation"}]},{"group":"TRANSLATIONS","pages":[{"title":"Add Translation","openapi":"POST /v1/{workspace}/translation/content/{locale_file}/","sidebarTitle":"Add Translation","href":"/reference/add-translation"},{"title":"Commit Translation","openapi":"PATCH /v1/{workspace}/translation/commit/","sidebarTitle":"Commit Translation","href":"/reference/commit-translation"},{"title":"Get Translation","openapi":"GET /v1/{workspace}/translation/content/{locale_file}/","sidebarTitle":"Get Translation","href":"/reference/get-translation"},{"title":"List Translations","openapi":"GET /v1/{workspace}/translation/","sidebarTitle":"List Translations","href":"/reference/list-translations"},{"title":"Get Translation History","openapi":"GET /v1/{workspace}/translation/version/{version}/","sidebarTitle":"Get Translation History","href":"/reference/get-translation-history"},{"title":"Rollback Translation","openapi":"POST /v1/{workspace}/translation/version/{version_no}/rollback/","sidebarTitle":"Rollback Translation","href":"/reference/rollback-translation"},{"title":"Delete Translation","openapi":"DELETE /v1/{workspace}/translation/content/{locale_file}/","sidebarTitle":"Delete Translation","href":"/reference/delete-translation"}]},{"group":"TEMPLATES","pages":[{"title":"List Templates","openapi":"GET /v2/{workspace}/template/","sidebarTitle":"List Templates","href":"/reference/list-templates-v2"},{"title":"Get Template Detail","openapi":"GET /v2/{workspace}/template/{template_slug}/","sidebarTitle":"Get Template","href":"/reference/get-template-v2"},{"title":"Create or Update Template","openapi":"POST /v2/{workspace}/template/{template_slug}/","sidebarTitle":"Create/Update Template","href":"/reference/upsert-template-v2"},{"title":"Commit Template","openapi":"PATCH /v2/{workspace}/template/{template_slug}/commit/","sidebarTitle":"Commit Template","href":"/reference/commit-template-v2"},{"group":"Variants","pages":[{"title":"List All Variants","openapi":"GET /v2/{workspace}/template/{template_slug}/variant/","sidebarTitle":"List All Variants","href":"/reference/list-all-variants-v2"},{"title":"List Channel Variants","openapi":"GET /v2/{workspace}/template/{template_slug}/channel/{channel}/variant/","sidebarTitle":"List Channel Variants","href":"/reference/list-channel-variants-v2"},{"title":"Get Variant Detail","openapi":"GET /v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/","sidebarTitle":"Get Variant","href":"/reference/get-variant-v2"},{"title":"Create or Update Variant","openapi":"POST /v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/","sidebarTitle":"Create/Update Variant","href":"/reference/upsert-variant-v2"},{"title":"Discard Variant","openapi":"PATCH /v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/discard/","sidebarTitle":"Discard Variant","href":"/reference/discard-variant-v2"},{"title":"Add/Update Vendor Approval","openapi":"PATCH /v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/vendor_approval/","sidebarTitle":"Vendor Approval","href":"/reference/vendor-approval-v2"}]},{"group":"Mock Data","pages":[{"title":"Get Mock Data","openapi":"GET /v2/{workspace}/template/{template_slug}/mock_data/","sidebarTitle":"Get Mock Data","href":"/reference/get-mock-data-v2"},{"title":"Update Mock Data","openapi":"PATCH /v2/{workspace}/template/{template_slug}/mock_data/","sidebarTitle":"Update Mock Data","href":"/reference/update-mock-data-v2"}]}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/reference/cli-intro"}]},{"tab":"Build with AI","pages":[{"title":"Build with AI","href":"/reference/build-with-ai"}]},{"tab":"Developer Resources","pages":[{"title":"Developer Resources","href":"/docs/developer/overview"}]},{"tab":"Self-Hosted","pages":[{"title":"Self-Hosted","href":"/docs/self-hosted/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/overview"}]}]},"basePath":"","title":"Create/Update Schema - SuprSend: API-first notification infrastructure","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-Buji1S4J.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js","Markdown-h4cOoD8d.js","clsx-B2v50t8t.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DJnKvr0g.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BHrrjR1K.js"]}