{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"cronhost docs","colors":{"primary":"#26a69a","light":"#8e44ad","dark":"#8e44ad"},"logo":{"light":"https://mintcdn.com/cronhost/SOOAaFtqMUzKZi8J/logo.svg?fit=max\u0026auto=format\u0026n=SOOAaFtqMUzKZi8J\u0026q=85\u0026s=2324ad1efddc4bec182959feb33de3b3","dark":"https://mintcdn.com/cronhost/SOOAaFtqMUzKZi8J/logo.svg?fit=max\u0026auto=format\u0026n=SOOAaFtqMUzKZi8J\u0026q=85\u0026s=2324ad1efddc4bec182959feb33de3b3"},"favicon":"https://mintcdn.com/cronhost/SOOAaFtqMUzKZi8J/favicon.svg?fit=max\u0026auto=format\u0026n=SOOAaFtqMUzKZi8J\u0026q=85\u0026s=7dc0956a9ec79af4ba9943feded04094","navbar":{"links":[{"href":"mailto:help@cronho.st","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://cronho.st/dashboard"}},"footer":{"socials":{"github":"https://github.com/cronho-st"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://cronho.st"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cronhost","hasAudioNarration":false,"actualSubdomain":"cronhost","customDomains":["docs.cronho.st"],"gitSource":{"type":"github","owner":"trezma","repo":"cronhost-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9291c2b9379feda83fef8:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":21},{"language":"default","tag":"Schedule Endpoints","count":8},{"language":"default","tag":"Notification Channel Endpoints","count":6},{"language":"default","tag":"SDK Reference","count":5},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Reference","count":3},{"language":"default","tag":"Core Features","count":3},{"language":"default","tag":"Job Endpoints","count":2},{"language":"default","tag":"Schedule Notification Endpoints","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/schedule/toggle-schedule","slug":"/api-reference/schedule/toggle-schedule","pageMetadata":{"title":"Toggle Schedule","openapi":"PATCH /schedules/{id}/toggle","description":"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.","href":"/api-reference/schedule/toggle-schedule"},"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: \"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Toggle Schedule","openapi":"PATCH /schedules/{id}/toggle","description":"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.","href":"/api-reference/schedule/toggle-schedule"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Toggle Schedule","description":"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.","operationId":"toggleSchedule","tags":["Schedules"],"parameters":["0f1ffe92-2796-49af-8261-ef96dcb21ed6"],"requestBody":"6f06d35e-7a08-43a6-a544-3461edce3f68","responses":{"200":"39f794e7-1762-4391-ac1f-87fac916222d","400":"b9fdeada-cf3e-4bbf-8068-8e69277f00ad","401":"bc7c0fb1-f18b-4302-907a-33f1e6f4a4a9","404":"28b6fa2c-ff1d-4765-b393-4a019ac7006a","500":"8a96ce18-7078-4833-b8a6-9ffe89c54580"},"method":"patch","type":"path","servers":["e69cde36-1f9a-44bb-9d8d-1f8c99013a9d"],"security":["d2a11870-975c-4444-b80e-1f83f5966183"],"path":"/schedules/{id}/toggle","baseUrlOptions":["https://cronho.st/api/v1"],"title":"Toggle Schedule","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0f1ffe92-2796-49af-8261-ef96dcb21ed6":{"name":"id","in":"path","required":true,"description":"Unique schedule identifier","schema":{"type":"string","example":"schedule_123","isRequired":true,"description":"Unique schedule identifier","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether to enable (true) or disable (false) the schedule","isRequired":true,"uniqueKey":"enabled","typeLabel":"boolean"}},"required":["enabled"],"uniqueKey":"","typeLabel":"object"},"examples":{"enable":{"title":"enable","summary":"Enable schedule","value":{"enabled":true}},"disable":{"title":"disable","summary":"Disable schedule","value":{"enabled":false}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"39f794e7-1762-4391-ac1f-87fac916222d":{"description":"Schedule toggled successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","name","cronExpression","timezone","endpoint","httpMethod","isEnabled","nextRunAtUtc","createdAt","updatedAt","maxRetries","timeoutSeconds"],"properties":{"id":{"type":"string","description":"Unique schedule identifier","example":"schedule_123","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"name":{"type":"string","description":"Human-readable schedule name","example":"Daily Health Check","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"cronExpression":{"type":"string","description":"Valid cron expression defining when to run","example":"0 9 * * *","pattern":"^\\s*($|#|\\w+\\s*=|(\\?|\\*|(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?(?:,(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?)*)\\s+(\\?|\\*|(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?(?:,(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?)*)\\s+(\\?|\\*|(?:[01]?\\d|2[0-3])(?:(?:-|\\/|\\,)(?:[01]?\\d|2[0-3]))?(?:,(?:[01]?\\d|2[0-3])(?:(?:-|\\/|\\,)(?:[01]?\\d|2[0-3]))?)*)\\s+(\\?|\\*|(?:0?[1-9]|[12]\\d|3[01])(?:(?:-|\\/|\\,)(?:0?[1-9]|[12]\\d|3[01]))?(?:,(?:0?[1-9]|[12]\\d|3[01])(?:(?:-|\\/|\\,)(?:0?[1-9]|[12]\\d|3[01]))?)*)\\s+(\\?|\\*|(?:[1-9]|1[012])(?:(?:-|\\/|\\,)(?:[1-9]|1[012]))?(?:L|W)?(?:,(?:[1-9]|1[012])(?:(?:-|\\/|\\,)(?:[1-9]|1[012]))?(?:L|W)?)*|\\?|\\*|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?(?:,(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)*)\\s+(\\?|\\*|(?:[0-6])(?:(?:-|\\/|\\,|#)(?:[0-6]))?(?:L)?(?:,(?:[0-6])(?:(?:-|\\/|\\,|#)(?:[0-6]))?(?:L)?)*|\\?|\\*|(?:MON|TUE|WED|THU|FRI|SAT|SUN)(?:(?:-)(?:MON|TUE|WED|THU|FRI|SAT|SUN))?(?:,(?:MON|TUE|WED|THU|FRI|SAT|SUN)(?:(?:-)(?:MON|TUE|WED|THU|FRI|SAT|SUN))?)*)(|\\s)+(\\?|\\*|(?:|\\d{4})(?:(?:-|\\/|\\,)(?:|\\d{4}))?(?:,(?:|\\d{4})(?:(?:-|\\/|\\,)(?:|\\d{4}))?)*))$","isRequired":true,"uniqueKey":"data.cronExpression","typeLabel":"string"},"timezone":{"type":"string","description":"IANA timezone identifier","example":"America/New_York","isRequired":true,"uniqueKey":"data.timezone","typeLabel":"string"},"endpoint":{"type":"string","format":"uri","description":"Target HTTP endpoint URL","example":"https://api.example.com/health","isRequired":true,"uniqueKey":"data.endpoint","typeLabel":"string\u003curi>"},"httpMethod":{"type":"string","enum":["GET","POST","PUT","DELETE","PATCH"],"description":"HTTP method to use for the request","example":"GET","isRequired":true,"uniqueKey":"data.httpMethod","typeLabel":"enum\u003cstring>"},"isEnabled":{"type":"boolean","description":"Whether the schedule is currently active","example":true,"isRequired":true,"uniqueKey":"data.isEnabled","typeLabel":"boolean"},"nextRunAtUtc":{"oneOf":[{"type":"string","format":"date-time","description":"Next scheduled execution time in UTC","example":"2024-01-15T14:00:00.000Z","isRequired":true,"uniqueKey":"data.nextRunAtUtc.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Next scheduled execution time in UTC","example":"2024-01-15T14:00:00.000Z","isRequired":true,"uniqueKey":"data.nextRunAtUtc.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.nextRunAtUtc","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Schedule creation timestamp","example":"2024-01-01T12:00:00.000Z","isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Last modification timestamp","example":"2024-01-14T14:00:00.000Z","isRequired":true,"uniqueKey":"data.updatedAt","typeLabel":"string\u003cdate-time>"},"maxRetries":{"type":"integer","minimum":1,"maximum":10,"description":"Total attempts including the first, clamped to 1-10. Retries fire only for 5xx, 408, 429, timeouts, and network errors.","example":3,"isRequired":true,"uniqueKey":"data.maxRetries","typeLabel":"integer"},"timeoutSeconds":{"type":"integer","minimum":1,"maximum":300,"description":"Request timeout in seconds, clamped to 1-300","example":30,"isRequired":true,"uniqueKey":"data.timeoutSeconds","typeLabel":"integer"},"description":{"oneOf":[{"type":"string","description":"Optional description of what the schedule does","example":"Check API health every day at 9 AM","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional description of what the schedule does","example":"Check API health every day at 9 AM","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"},"body":{"oneOf":[{"type":"string","description":"Request body for POST/PUT/PATCH requests","example":"{\"key\": \"value\"}","uniqueKey":"data.body.oneOf.0","typeLabel":"string"},{"type":"null","description":"Request body for POST/PUT/PATCH requests","example":"{\"key\": \"value\"}","uniqueKey":"data.body.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.body","typeLabel":"string | null"},"headers":{"oneOf":[{"type":"string","description":"HTTP headers as JSON string","example":"{\"User-Agent\": \"Cronhost-Monitor\", \"Content-Type\": \"application/json\"}","uniqueKey":"data.headers.oneOf.0","typeLabel":"string"},{"type":"null","description":"HTTP headers as JSON string","example":"{\"User-Agent\": \"Cronhost-Monitor\", \"Content-Type\": \"application/json\"}","uniqueKey":"data.headers.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.headers","typeLabel":"string | null"},"lastRunAtUtc":{"oneOf":[{"type":"string","format":"date-time","description":"Last execution time in UTC","example":"2024-01-14T14:00:00.000Z","uniqueKey":"data.lastRunAtUtc.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Last execution time in UTC","example":"2024-01-14T14:00:00.000Z","uniqueKey":"data.lastRunAtUtc.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lastRunAtUtc","typeLabel":"string\u003cdate-time> | null"},"expectedStatusCodes":{"oneOf":[{"type":"string","description":"Comma-separated 3-digit status codes and ranges counted as success (e.g. \"200-299,410\"). When null, the default success rule applies (status \u003c 400).","example":"200-299,410","uniqueKey":"data.expectedStatusCodes.oneOf.0","typeLabel":"string"},{"type":"null","description":"Comma-separated 3-digit status codes and ranges counted as success (e.g. \"200-299,410\"). When null, the default success rule applies (status \u003c 400).","example":"200-299,410","uniqueKey":"data.expectedStatusCodes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.expectedStatusCodes","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"success":{"type":"boolean","example":true,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","example":"Schedule enabled successfully","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["data","success","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"schedule_123","name":"Daily Health Check","cronExpression":"0 9 * * *","timezone":"America/New_York","endpoint":"https://api.example.com/health","httpMethod":"GET","isEnabled":true,"nextRunAtUtc":"2024-01-15T14:00:00.000Z","createdAt":"2024-01-01T12:00:00.000Z","updatedAt":"2024-01-14T14:00:00.000Z","maxRetries":3,"timeoutSeconds":30,"description":"Check API health every day at 9 AM","body":"{\"key\": \"value\"}","headers":"{\"User-Agent\": \"Cronhost-Monitor\", \"Content-Type\": \"application/json\"}","lastRunAtUtc":"2024-01-14T14:00:00.000Z","expectedStatusCodes":"200-299,410"},"success":true,"message":"Schedule enabled successfully"}}},"exampleType":"generated"}},"exampleType":"generated"},"b9fdeada-cf3e-4bbf-8068-8e69277f00ad":{"description":"Validation error occurred","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Error code for programmatic handling","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"details":{"description":"Additional error details","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Validation error","code":"VALIDATION_ERROR","details":{"fieldErrors":{"cronExpression":["Invalid cron expression"],"endpoint":["Must be a valid URL"]}}}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Validation error","code":"VALIDATION_ERROR","details":{"fieldErrors":{"cronExpression":["Invalid cron expression"],"endpoint":["Must be a valid URL"]}}}}}},"exampleType":"examples"}},"exampleType":"examples"},"bc7c0fb1-f18b-4302-907a-33f1e6f4a4a9":{"description":"Authentication failed","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Error code for programmatic handling","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"details":{"description":"Additional error details","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missingApiKey":{"title":"missingApiKey","summary":"Missing API key","value":{"error":{"message":"Missing x-api-key header","code":"UNAUTHORIZED"}}},"invalidApiKey":{"title":"invalidApiKey","summary":"Invalid API key","value":{"error":{"message":"Invalid API key","code":"UNAUTHORIZED"}}}},"exampleType":"examples"}},"exampleType":"examples"},"28b6fa2c-ff1d-4765-b393-4a019ac7006a":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Error code for programmatic handling","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"details":{"description":"Additional error details","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"scheduleNotFound":{"title":"scheduleNotFound","summary":"Schedule not found","value":{"error":{"message":"Schedule not found","code":"NOT_FOUND"}}},"jobNotFound":{"title":"jobNotFound","summary":"Job not found","value":{"error":{"message":"Job not found","code":"NOT_FOUND"}}}},"exampleType":"examples"}},"exampleType":"examples"},"8a96ce18-7078-4833-b8a6-9ffe89c54580":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Error code for programmatic handling","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"details":{"description":"Additional error details","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Internal server error","code":"INTERNAL_ERROR"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Internal server error","code":"INTERNAL_ERROR"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d2a11870-975c-4444-b80e-1f83f5966183":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. Get your API key from the [Cronhost dashboard](https://cronho.st/settings).","scopes":[]}}},"servers":{"e69cde36-1f9a-44bb-9d8d-1f8c99013a9d":{"url":"https://cronho.st/api/v1","description":"Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. Get your API key from the [Cronhost dashboard](https://cronho.st/settings).","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"API key for authentication. Get your API key from the [Cronhost dashboard](https://cronho.st/settings).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cronhost","siteName":"cronhost docs","title":"Toggle Schedule - cronhost docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-11-10T13:28:28.205Z","originalFileLocation":"api-reference/schedule/toggle-schedule.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=\"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.\">\u003cmeta data-mint-head name=\"application-name\" content=\"cronhost 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/cronhost/-xo7VWUCkCtcu1O_/_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/cronhost/-xo7VWUCkCtcu1O_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cronhost/-xo7VWUCkCtcu1O_/_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/cronhost/-xo7VWUCkCtcu1O_/_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/cronhost/-xo7VWUCkCtcu1O_/_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/cronhost/-xo7VWUCkCtcu1O_/_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/cronhost/-xo7VWUCkCtcu1O_/_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/cronhost/-xo7VWUCkCtcu1O_/_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/cronhost/-xo7VWUCkCtcu1O_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Toggle Schedule - cronhost docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"cronhost docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cronho.st/api-reference/schedule/toggle-schedule\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cronhost.mintlify.site/_mintlify/api/og/v2?division=Schedule+Endpoints\u0026amp;title=Toggle+Schedule\u0026amp;description=Enable+or+disable+a+schedule+without+deleting+it.+Disabled+schedules+will+not+execute+until+re-enabled.\u0026amp;theme=0eaa4cdf00275d047fda26c0\u0026amp;signature=3a3ac63262c239a6dbb229b431bfaae9daedf9bda87161081b3a08d11f248b98\">\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=\"Toggle Schedule - cronhost docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cronhost.mintlify.site/_mintlify/api/og/v2?division=Schedule+Endpoints\u0026amp;title=Toggle+Schedule\u0026amp;description=Enable+or+disable+a+schedule+without+deleting+it.+Disabled+schedules+will+not+execute+until+re-enabled.\u0026amp;theme=0eaa4cdf00275d047fda26c0\u0026amp;signature=3a3ac63262c239a6dbb229b431bfaae9daedf9bda87161081b3a08d11f248b98\">\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/cronhost/-xo7VWUCkCtcu1O_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"cronhost docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#26a69a\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cronho.st/api-reference/schedule/toggle-schedule\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/schedule/toggle-schedule.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cronho.st/#organization\",\"name\":\"cronhost docs\",\"url\":\"https://docs.cronho.st\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cronhost/SOOAaFtqMUzKZi8J/logo.svg?fit=max\u0026auto=format\u0026n=SOOAaFtqMUzKZi8J\u0026q=85\u0026s=2324ad1efddc4bec182959feb33de3b3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cronho.st#website\",\"name\":\"cronhost docs\",\"url\":\"https://docs.cronho.st\",\"publisher\":{\"@id\":\"https://docs.cronho.st/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule#webpage\",\"url\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule\",\"name\":\"Toggle Schedule\",\"description\":\"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.\",\"dateModified\":\"2025-11-10T13:28:28.205Z\",\"isPartOf\":{\"@id\":\"https://docs.cronho.st#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Schedule Endpoints\",\"item\":\"https://docs.cronho.st/api-reference/schedule/list-schedules\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Toggle Schedule\",\"item\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule#apireference\",\"headline\":\"Toggle Schedule\",\"name\":\"Toggle Schedule\",\"description\":\"Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.\",\"url\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cronho.st/api-reference/schedule/toggle-schedule#webpage\"},\"dateModified\":\"2025-11-10T13:28:28.205Z\",\"publisher\":{\"@id\":\"https://docs.cronho.st/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cronho.st#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"cronhost docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"cronhost docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/schedule/toggle-schedule.md","siteName":"cronhost docs","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://cronho.st"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk-reference/introduction"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"API Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Timezone Reference","href":"/timezones"}]},{"group":"Schedule Endpoints","pages":[{"title":"List Schedules","openapi":"GET /schedules","href":"/api-reference/schedule/list-schedules"},{"title":"Create Schedule","openapi":"POST /schedules","href":"/api-reference/schedule/create-schedule"},{"title":"Bulk Create Schedules","openapi":"POST /schedules/bulk","href":"/api-reference/schedule/bulk-create-schedules"},{"title":"Get Schedule","openapi":"GET /schedules/{id}","href":"/api-reference/schedule/get-schedule"},{"title":"Update Schedule","openapi":"PUT /schedules/{id}","href":"/api-reference/schedule/update-schedule"},{"title":"Delete Schedule","openapi":"DELETE /schedules/{id}","description":"Permanently delete a schedule. This action cannot be undone.","href":"/api-reference/schedule/delete-schedule"},{"title":"Toggle Schedule","openapi":"PATCH /schedules/{id}/toggle","href":"/api-reference/schedule/toggle-schedule"},{"title":"Trigger Schedule","openapi":"POST /schedules/{id}/trigger","description":"Manually trigger a schedule to run immediately, regardless of its cron schedule. Creates a new job and returns its id; fetch the job's details with GET /jobs/{id}.","href":"/api-reference/schedule/trigger-schedule"}]},{"group":"Job Endpoints","pages":[{"title":"List Jobs","openapi":"GET /jobs","href":"/api-reference/job/list-jobs"},{"title":"Get Job","openapi":"GET /jobs/{id}","href":"/api-reference/job/get-job"}]},{"group":"Notification Channel Endpoints","pages":[{"title":"List Notification Channels","openapi":"GET /notification-channels","href":"/api-reference/notification-channel/list-notification-channels"},{"title":"Create Notification Channel","openapi":"POST /notification-channels","href":"/api-reference/notification-channel/create-notification-channel"},{"title":"Get Notification Channel","openapi":"GET /notification-channels/{id}","href":"/api-reference/notification-channel/get-notification-channel"},{"title":"Update Notification Channel","openapi":"PATCH /notification-channels/{id}","href":"/api-reference/notification-channel/update-notification-channel"},{"title":"Delete Notification Channel","openapi":"DELETE /notification-channels/{id}","href":"/api-reference/notification-channel/delete-notification-channel"},{"title":"Verify Notification Channel","openapi":"POST /notification-channels/{id}/verify","href":"/api-reference/notification-channel/verify-notification-channel"}]},{"group":"Schedule Notification Endpoints","pages":[{"title":"Get Schedule Notifications","openapi":"GET /schedules/{id}/notifications","href":"/api-reference/schedule/get-schedule-notifications"},{"title":"Set Schedule Notifications","openapi":"PUT /schedules/{id}/notifications","href":"/api-reference/schedule/set-schedule-notifications"}]}]}]},"basePath":"","title":"Toggle Schedule - cronhost docs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-BIYvYBgk.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}