{"id":3964,"date":"2026-12-03T17:38:04","date_gmt":"2026-12-03T23:38:04","guid":{"rendered":"https:\/\/www.mysmartbots.com\/blog\/?p=3964"},"modified":"2026-12-03T17:38:05","modified_gmt":"2026-12-03T23:38:05","slug":"new-developer-documentation-http-patch-and-http-respondwebhook","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2026\/12\/new-developer-documentation-http-patch-and-http-respondwebhook\/","title":{"rendered":"New Developer Documentation, http.patch and http.respondWebhook"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img loading=\"lazy\" width=\"250\" height=\"195\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2026\/12\/SB-Updates.png\" alt=\"\" class=\"wp-image-3965\" srcset=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2026\/12\/SB-Updates.png 250w, https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2026\/12\/SB-Updates-150x117.png 150w\" sizes=\"(max-width: 250px) 100vw, 250px\" \/><\/figure><\/div>\n\n\n\n<p>To match our newly improved main website, we&#8217;ve launched a new home for our developer documentation. It sits alongside our main docs, and it&#8217;s faster, easier to search and simpler to navigate.<\/p>\n\n\n\n<p><strong>What&#8217;s new:<\/strong><\/p>\n\n\n\n<ul><li>New <a href=\"https:\/\/www.mysmartbots.com\/docs\/s\/dev\">Developer Documentation<\/a> space<\/li><li>New <code><a href=\"https:\/\/www.mysmartbots.com\/docs\/s\/dev\/doc\/httppatch-Ulvl2S1Agg\">http.patch<\/a><\/code> Playground function<\/li><li>New <code><a href=\"https:\/\/www.mysmartbots.com\/docs\/s\/dev\/doc\/httprespondwebhook-U81JWdRKkr\">http.respondWebhook<\/a><\/code> Playground function<\/li><\/ul>\n\n\n\n<h2>New <code>http.patch<\/code> action<\/h2>\n\n\n\n<p>Playground scripts can now send HTTP <strong>PATCH<\/strong> requests, alongside the existing GET and POST methods.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>await http.patch(url, queryData, \"json\", requestOptions);<\/code><\/pre>\n\n\n\n<p>Full details available here: <a href=\"https:\/\/www.mysmartbots.com\/docs\/s\/dev\/doc\/httppatch-Ulvl2S1Agg\"><code>http.patch<\/code><\/a><\/p>\n\n\n\n<h2>New <code>http.respondWebhook<\/code> action<\/h2>\n\n\n\n<p>Until now, a webhook call into your script was one-way. With <code>http.respondWebhook<\/code>, your script can answer the caller directly, and the caller gets your reply in its own HTTP response.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>await http.respondWebhook(correlationId, payload);<\/code><\/pre>\n\n\n\n<p>The <code>correlationId<\/code> comes from the <code>playground_webhook<\/code> event you&#8217;re answering. The caller needs to include <code>\"waitResponse\": true<\/code> in its JSON body, and your script has 30 seconds to reply.<\/p>\n\n\n\n<p>This makes it possible to use your bot as a live data source: a website or in-world object can ask your script a question over HTTP and get the answer back in the same request!<\/p>\n\n\n\n<p>Full details available here: <a href=\"https:\/\/www.mysmartbots.com\/docs\/s\/dev\/doc\/httprespondwebhook-U81JWdRKkr\"><code>http.respondWebhook<\/code><\/a><\/p>\n\n\n\n<h2>A reminder: back up your scripts<\/h2>\n\n\n\n<p>In case you missed it, Playground can back up your scripts automatically to a private GitHub repository. Connect your GitHub account once, and every script is backed up 5 minutes after you save a change.<\/p>\n\n\n\n<p>If you haven&#8217;t set it up yet, it takes just a minute: <a href=\"https:\/\/www.mysmartbots.com\/docs\/s\/dev\/doc\/backing-up-scripts-JN5ZhIns68\">Backing up scripts<\/a><\/p>\n\n\n\n<p>If you have any questions about the new functions or the new docs, you can always chat in our dedicated <a href=\"https:\/\/discord.com\/channels\/533240770728034305\/652175269729402920\">#dev-support<\/a> Discord channel.<\/p>\n\n\n\n<p>Happy scripting!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To match our newly improved main website, we&#8217;ve launched a new home for our developer documentation. It sits alongside our main docs, and it&#8217;s faster, easier to search and simpler to navigate. What&#8217;s new: New Developer Documentation space New http.patch Playground function New http.respondWebhook Playground function New http.patch action Playground scripts can now send HTTP [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[359],"tags":[345,224,558,263,261],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3964"}],"collection":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/comments?post=3964"}],"version-history":[{"count":3,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3964\/revisions"}],"predecessor-version":[{"id":3968,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3964\/revisions\/3968"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=3964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=3964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=3964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}