{"id":6884,"date":"2024-04-22T12:11:43","date_gmt":"2024-04-22T12:11:43","guid":{"rendered":"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/scheduler\/"},"modified":"2024-05-08T09:27:42","modified_gmt":"2024-05-08T09:27:42","slug":"scheduler","status":"publish","type":"docs","link":"https:\/\/accuweb.cloud\/api\/docs\/latest\/others\/scheduler\/","title":{"rendered":"utilities.Scheduler"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"6884\" class=\"elementor elementor-6884\" data-elementor-post-type=\"docs\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fb48982 e-flex e-con-boxed e-con e-parent\" data-id=\"fb48982\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1556aa0 elementor-widget elementor-widget-text-editor\" data-id=\"1556aa0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<table class=\"not-bold\">\n<tbody>\n<tr>\n<td><b>Namespace:<\/b><\/td>\n<td>Utils<\/td>\n<\/tr>\n<tr>\n<td><b>REST:<\/b><\/td>\n<td>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/{method-name}<\/td>\n<\/tr>\n<tr>\n<td><b>Scripting:<\/b><\/td>\n<td>utils.scheduler.{method-name}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\nThis service manages custom operations on the platform (tasks) that are performed based on the configured triggers. A task can be associated with the account or specific environment (automatically removed alongside it) and executed based on the specific conditions &#8211; cron, date, after the platform start, etc.\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-870b7bd e-flex e-con-boxed e-con e-parent\" data-id=\"870b7bd\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-29d64cd elementor-widget elementor-widget-heading\" data-id=\"29d64cd\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">Methods<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3382fc3 elementor-widget elementor-widget-accordion\" data-id=\"3382fc3\" data-element_type=\"widget\" data-widget_type=\"accordion.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-accordion{text-align:start}.elementor-accordion .elementor-accordion-item{border:1px solid #d5d8dc}.elementor-accordion .elementor-accordion-item+.elementor-accordion-item{border-top:none}.elementor-accordion .elementor-tab-title{margin:0;padding:15px 20px;font-weight:700;line-height:1;cursor:pointer;outline:none}.elementor-accordion .elementor-tab-title .elementor-accordion-icon{display:inline-block;width:1.5em}.elementor-accordion .elementor-tab-title .elementor-accordion-icon svg{width:1em;height:1em}.elementor-accordion .elementor-tab-title .elementor-accordion-icon.elementor-accordion-icon-right{float:right;text-align:right}.elementor-accordion .elementor-tab-title .elementor-accordion-icon.elementor-accordion-icon-left{float:left;text-align:left}.elementor-accordion .elementor-tab-title .elementor-accordion-icon .elementor-accordion-icon-closed{display:block}.elementor-accordion .elementor-tab-title .elementor-accordion-icon .elementor-accordion-icon-opened,.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-closed{display:none}.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-opened{display:block}.elementor-accordion .elementor-tab-content{display:none;padding:15px 20px;border-top:1px solid #d5d8dc}@media (max-width:767px){.elementor-accordion .elementor-tab-title{padding:12px 15px}.elementor-accordion .elementor-tab-title .elementor-accordion-icon{width:1.2em}.elementor-accordion .elementor-tab-content{padding:7px 15px}}.e-con-inner>.elementor-widget-accordion,.e-con>.elementor-widget-accordion{width:var(--container-widget-width);--flex-grow:var(--container-widget-flex-grow)}<\/style>\t\t<div class=\"elementor-accordion\">\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-5401\" class=\"elementor-tab-title\" data-tab=\"1\" role=\"button\" aria-controls=\"elementor-tab-content-5401\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">CreateAccountTask<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-5401\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"1\" role=\"region\" aria-labelledby=\"elementor-tab-title-5401\"><h3>CreateAccountTask (session, script, trigger, [description], [params] ) :<\/h3>\n<p>Creates a task that executes a specified script based on the configured trigger.<\/p>\n<h4 id=\"url\">URL<a class=\"anchorjs-link \" aria-label=\"Anchor\" data-anchorjs-icon=\"\ue9cb\" href=\"#url\" style=\"font: 1em \/ 1 anchorjs-icons; padding-left: 0.375em;\"><\/a><\/h4>\n<p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/createaccounttask<\/p>\n<h4 class=\"pa\">Parameters<\/h4>\n<ul>\n<li><span class=\"pre\"><b>session<\/b><\/span>&nbsp;: &#8220;string&#8221;<br>\n<div class=\"sub-desc\">\n<p><a class=\"wpil_keyword_link\" title=\"user session\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/users\/authentication\/#signin-appid-login-password-authenticationresponse\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1406\">user session<\/a> or <a class=\"wpil_keyword_link\" href=\"https:\/\/accuweb.cloud\/api\/docs\/latest\/others\/personal-access-tokens\/\"   title=\"personal access token\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"1560\">personal access token<\/a>.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>script<\/b><\/span>&nbsp;: &#8220;string&#8221;<br>\n<div class=\"sub-desc\">\n<p>custom script name to be executed by the task.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>trigger<\/b><\/span>&nbsp;: &#8220;string&#8221;<br>\n<div class=\"sub-desc\">\n<p>condition or frequency of the script execution (in the format: &#8220;trigger_type:value&#8221;, supported trigger types: &#8220;cron&#8221;, &#8220;rate&#8221;, &#8220;date&#8221;, &#8220;oninit&#8221;, &#8220;once_delay&#8221;, supported value depends on the trigger_type). Examples: &#8220;cron:0 0 * * * *&#8221;, &#8220;once_delay:1000&#8221;.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>description<\/b><\/span>&nbsp;: &#8220;string&#8221; (optional)<br>\n<div class=\"sub-desc\">\n<p>custom description for the task.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>params<\/b><\/span>&nbsp;: &#8220;string&#8221; (optional)<br>\n<div class=\"sub-desc\">\n<p>JSON object with additional trigger parameters.<\/p>\n<\/div>\n<\/li>\n<\/ul>\n<h4 class=\"pa\">Example<\/h4>\n<p><span style=\"font-weight: bold;\">Method:<\/span> POST<\/p>\n<p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/createaccounttask?session=[string]&amp;description=[string]&amp;trigger=[string]&amp;params=[string]&amp;script=[string]<\/p>\n<h4 class=\"pa\">Response<\/h4>\n<ul>\n<li><span class=\"pre\">ObjectResponse<\/span><br>\n<div class=\"sub-desc\">\n<pre id=\"ext-gen4097\" class=\"json notpretty\">{\n   <span class=\"json-attribute\">\"error\":<\/span> <span class=\"json-string\">\"string\"<\/span>,\n   <span class=\"json-attribute\">\"fields\":<\/span> {\n      <span class=\"json-attribute\">\"(key) string\":<\/span> <span class=\"json-string\">\"(value) Object\"<\/span>,\n      <span class=\"json-attribute\">\"...\":<\/span> <span class=\"json-string\">\"...\"<\/span>\n   },\n   <span class=\"json-attribute\">\"id\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"object\":<\/span> {\n      <span class=\"json-attribute\">\"(key) string\":<\/span> <span class=\"json-string\">\"(value) string\"<\/span>,\n      <span class=\"json-attribute\">\"...\":<\/span> <span class=\"json-string\">\"...\"<\/span>\n   },\n   <span class=\"json-attribute\">\"reason\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"result\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"source\":<\/span> <span class=\"json-string\">\"string\"<\/span>\n}\n<\/pre>\n<\/div>\n<\/li>\n<\/ul><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-5402\" class=\"elementor-tab-title\" data-tab=\"2\" role=\"button\" aria-controls=\"elementor-tab-content-5402\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">CreateEnvTask<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-5402\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"2\" role=\"region\" aria-labelledby=\"elementor-tab-title-5402\"><h3>CreateEnvTask ( [envName], session, script, trigger, [description], [params] ) :\u00a0<\/h3><p>Creates a task that executes a specified script based on the configured trigger. The task is automatically removed when the corresponding environment is deleted.<\/p><h4 id=\"url\">URL<\/h4><p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/createenvtask<\/p><h4 class=\"pa\">Parameters<\/h4><ul><li><span class=\"pre\"><b>envName<\/b><\/span>\u00a0: &#8220;string&#8221; (optional)<br \/><div class=\"sub-desc\"><p>target environment name.<\/p><\/div><\/li><li><span class=\"pre\"><b>session<\/b><\/span>\u00a0: &#8220;string&#8221;<br \/><div class=\"sub-desc\"><p><a class=\"wpil_keyword_link\" title=\"user session\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/users\/authentication\/#signin-appid-login-password-authenticationresponse\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1407\">user session<\/a> or personal access token.<\/p><\/div><\/li><li><span class=\"pre\"><b>script<\/b><\/span>\u00a0: &#8220;string&#8221;<br \/><div class=\"sub-desc\"><p>custom script name to be executed by the task.<\/p><\/div><\/li><li><span class=\"pre\"><b>trigger<\/b><\/span>\u00a0: &#8220;string&#8221;<br \/><div class=\"sub-desc\"><p>condition or frequency of the script execution (in the format: &#8220;trigger_type:value&#8221;, supported trigger types: &#8220;cron&#8221;, &#8220;rate&#8221;, &#8220;date&#8221;, &#8220;oninit&#8221;, &#8220;once_delay&#8221;, supported value depends on the trigger_type). Examples: &#8220;cron:0 0 * * * *&#8221;, &#8220;once_delay:1000&#8221;.<\/p><\/div><\/li><li><span class=\"pre\"><b>description<\/b><\/span>\u00a0: &#8220;string&#8221; (optional)<br \/><div class=\"sub-desc\"><p>custom description for the task.<\/p><\/div><\/li><li><span class=\"pre\"><b>params<\/b><\/span>\u00a0: &#8220;string&#8221; (optional)<br \/><div class=\"sub-desc\"><p>JSON object with additional trigger parameters.<\/p><\/div><\/li><\/ul><h4 class=\"pa\">Example<\/h4><p><span style=\"font-weight: bold;\">Method:<\/span> POST<\/p><p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/createenvtask?envName=[string]&amp;session=[string]&amp;description=[string]&amp;trigger=[string]&amp;params=[string]&amp;script=[string]<\/p><h4 class=\"pa\">Response<\/h4><ul><li><span class=\"pre\">ObjectResponse<\/span><br \/><div class=\"sub-desc\"><pre id=\"ext-gen4098\" class=\"json notpretty\">{\n   <span class=\"json-attribute\">\"error\":<\/span> <span class=\"json-string\">\"string\"<\/span>,\n   <span class=\"json-attribute\">\"fields\":<\/span> {\n      <span class=\"json-attribute\">\"(key) string\":<\/span> <span class=\"json-string\">\"(value) Object\"<\/span>,\n      <span class=\"json-attribute\">\"...\":<\/span> <span class=\"json-string\">\"...\"<\/span>\n   },\n   <span class=\"json-attribute\">\"id\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"object\":<\/span> {\n      <span class=\"json-attribute\">\"(key) string\":<\/span> <span class=\"json-string\">\"(value) string\"<\/span>,\n      <span class=\"json-attribute\">\"...\":<\/span> <span class=\"json-string\">\"...\"<\/span>\n   },\n   <span class=\"json-attribute\">\"reason\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"result\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"source\":<\/span> <span class=\"json-string\">\"string\"<\/span>\n}\n<\/pre><\/div><\/li><\/ul><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-5403\" class=\"elementor-tab-title\" data-tab=\"3\" role=\"button\" aria-controls=\"elementor-tab-content-5403\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">DeleteTasks<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-5403\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"3\" role=\"region\" aria-labelledby=\"elementor-tab-title-5403\"><h3>DeleteTasks (session, ids ) :<\/h3><p>Deletes specified tasks.<\/p><h4 id=\"url\">URL<\/h4><p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/deletetasks<\/p><h4 class=\"pa\">Parameters<\/h4><ul><li><span class=\"pre\"><b>session<\/b><\/span>\u00a0: &#8220;string&#8221;<br \/><div class=\"sub-desc\"><p><a class=\"wpil_keyword_link\" title=\"user session\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/users\/authentication\/#signin-appid-login-password-authenticationresponse\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1408\">user session<\/a> or personal access token.<\/p><\/div><\/li><li><span class=\"pre\"><b>ids<\/b><\/span>\u00a0: &#8220;string&#8221;<br \/><div class=\"sub-desc\"><p>a comma-separated list of task IDs to remove.<\/p><\/div><\/li><\/ul><h4 class=\"pa\">Example<\/h4><p><span style=\"font-weight: bold;\">Method:<\/span> POST<\/p><p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/deletetasks?session=[string]&amp;ids=[string]<\/p><h4 class=\"pa\">Response<\/h4><ul><li><span class=\"pre\">Response<\/span><br \/><div class=\"sub-desc\"><pre id=\"ext-gen4099\" class=\"json notpretty\">{\n   <span class=\"json-attribute\">\"error\":<\/span> <span class=\"json-string\">\"string\"<\/span>,\n   <span class=\"json-attribute\">\"reason\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"result\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"source\":<\/span> <span class=\"json-string\">\"string\"<\/span>\n}\n<\/pre><\/div><\/li><\/ul><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-5404\" class=\"elementor-tab-title\" data-tab=\"4\" role=\"button\" aria-controls=\"elementor-tab-content-5404\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">EditTask<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-5404\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"4\" role=\"region\" aria-labelledby=\"elementor-tab-title-5404\"><h3>EditTask (session, script, trigger, id, [description], [params] ) :<\/h3>\n<p>Changes the existing task according to the provided new values.<\/p>\n<h4 id=\"url\">URL<a class=\"anchorjs-link \" aria-label=\"Anchor\" data-anchorjs-icon=\"\ue9cb\" href=\"#url\" style=\"font: 1em \/ 1 anchorjs-icons; padding-left: 0.375em;\"><\/a><\/h4>\n<p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/edittask<\/p>\n<h4 class=\"pa\">Parameters<\/h4>\n<ul>\n<li><span class=\"pre\"><b>session<\/b><\/span>&nbsp;: &#8220;string&#8221;<br>\n<div class=\"sub-desc\">\n<p><a class=\"wpil_keyword_link\" title=\"user session\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/users\/authentication\/#signin-appid-login-password-authenticationresponse\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1409\">user session<\/a> or personal access token.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>script<\/b><\/span>&nbsp;: &#8220;string&#8221;<br>\n<div class=\"sub-desc\">\n<p>custom script name to be executed by the task.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>trigger<\/b><\/span>&nbsp;: &#8220;string&#8221;<br>\n<div class=\"sub-desc\">\n<p>condition or frequency of the script execution (in the format: &#8220;trigger_type:value&#8221;, supported trigger types: &#8220;cron&#8221;, &#8220;rate&#8221;, &#8220;date&#8221;, &#8220;oninit&#8221;, &#8220;once_delay&#8221;, supported value depends on the trigger_type). Examples: &#8220;cron:0 0 * * * *&#8221;, &#8220;once_delay:1000&#8221;.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>id<\/b><\/span>&nbsp;: &#8220;int&#8221;<br>\n<div class=\"sub-desc\">\n<p>unique identifier of the target task.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>description<\/b><\/span>&nbsp;: &#8220;string&#8221; (optional)<br>\n<div class=\"sub-desc\">\n<p>custom description for the task.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>params<\/b><\/span>&nbsp;: &#8220;string&#8221; (optional)<br>\n<div class=\"sub-desc\">\n<p>JSON object with additional trigger parameters.<\/p>\n<\/div>\n<\/li>\n<\/ul>\n<h4 class=\"pa\">Example<\/h4>\n<p><span style=\"font-weight: bold;\">Method:<\/span> POST<\/p>\n<p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/edittask?session=[string]&amp;description=[string]&amp;trigger=[string]&amp;id=[int]&amp;params=[string]&amp;script=[string]<\/p>\n<h4 class=\"pa\">Response<\/h4>\n<ul>\n<li><span class=\"pre\">ObjectResponse<\/span><br>\n<div class=\"sub-desc\">\n<pre id=\"ext-gen4100\" class=\"json notpretty\">{\n   <span class=\"json-attribute\">\"error\":<\/span> <span class=\"json-string\">\"string\"<\/span>,\n   <span class=\"json-attribute\">\"fields\":<\/span> {\n      <span class=\"json-attribute\">\"(key) string\":<\/span> <span class=\"json-string\">\"(value) Object\"<\/span>,\n      <span class=\"json-attribute\">\"...\":<\/span> <span class=\"json-string\">\"...\"<\/span>\n   },\n   <span class=\"json-attribute\">\"id\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"object\":<\/span> {\n      <span class=\"json-attribute\">\"(key) string\":<\/span> <span class=\"json-string\">\"(value) string\"<\/span>,\n      <span class=\"json-attribute\">\"...\":<\/span> <span class=\"json-string\">\"...\"<\/span>\n   },\n   <span class=\"json-attribute\">\"reason\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"result\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"source\":<\/span> <span class=\"json-string\">\"string\"<\/span>\n}\n<\/pre>\n<\/div>\n<\/li>\n<\/ul><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-5405\" class=\"elementor-tab-title\" data-tab=\"5\" role=\"button\" aria-controls=\"elementor-tab-content-5405\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">GetTasks<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-5405\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"5\" role=\"region\" aria-labelledby=\"elementor-tab-title-5405\"><h3>GetTasks (session, [ids] ) :<\/h3>\n<p>Returns information on the specified tasks.<\/p>\n<h4 id=\"url\">URL<a class=\"anchorjs-link \" aria-label=\"Anchor\" data-anchorjs-icon=\"\ue9cb\" href=\"#url\" style=\"font: 1em \/ 1 anchorjs-icons; padding-left: 0.375em;\"><\/a><\/h4>\n<p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/gettasks<\/p>\n<h4 class=\"pa\">Parameters<\/h4>\n<ul>\n<li><span class=\"pre\"><b>session<\/b><\/span>&nbsp;: &#8220;string&#8221;<br>\n<div class=\"sub-desc\">\n<p><a class=\"wpil_keyword_link\" title=\"user session\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/users\/authentication\/#signin-appid-login-password-authenticationresponse\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1410\">user session<\/a> or personal access token.<\/p>\n<\/div>\n<\/li>\n<li><span class=\"pre\"><b>ids<\/b><\/span>&nbsp;: &#8220;string&#8221; (optional)<br>\n<div class=\"sub-desc\">\n<p>a comma-separated list of task IDs to return.<\/p>\n<\/div>\n<\/li>\n<\/ul>\n<h4 class=\"pa\">Example<\/h4>\n<p><span style=\"font-weight: bold;\">Method:<\/span> POST<\/p>\n<p>https:\/\/<a href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/others\/user-environment-domain\/\" target=\"_blank\" rel=\"noopener\">[hoster-api-host]<\/a>\/1.0\/utils\/scheduler\/rest\/gettasks?session=[string]&amp;ids=[string]<\/p>\n<h4 class=\"pa\">Response<\/h4>\n<ul>\n<li><span class=\"pre\">ObjectsResponse<\/span><br>\n<div class=\"sub-desc\">\n<pre id=\"ext-gen4101\" class=\"json notpretty\">{\n   <span class=\"json-attribute\">\"error\":<\/span> <span class=\"json-string\">\"string\"<\/span>,\n   <span class=\"json-attribute\">\"objects\":<\/span> {\n      <span class=\"json-attribute\">\"(key) string\":<\/span> <span class=\"json-string\">\"(value) string\"<\/span>,\n      <span class=\"json-attribute\">\"...\":<\/span> <span class=\"json-string\">\"...\"<\/span>\n   },\n   <span class=\"json-attribute\">\"reason\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"result\":<\/span> <span class=\"json-number\">\"int\"<\/span>,\n   <span class=\"json-attribute\">\"source\":<\/span> <span class=\"json-string\">\"string\"<\/span>\n}\n<\/pre>\n<\/div>\n<\/li>\n<\/ul><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Namespace: Utils REST: https:\/\/[hoster-api-host]\/1.0\/utils\/scheduler\/rest\/{method-name} Scripting: utils.scheduler.{method-name} This service manages custom operations on the platform (tasks) that are performed based on the configured triggers. A task can be associated with the account or specific environment (automatically removed alongside it) and executed based on the specific conditions &#8211; cron, date, after the platform start, etc. Methods CreateAccountTask [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5764,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-6884","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/6884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/comments?post=6884"}],"version-history":[{"count":42,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/6884\/revisions"}],"predecessor-version":[{"id":9499,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/6884\/revisions\/9499"}],"up":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/5764"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/media?parent=6884"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/doc_tag?post=6884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}