HTTP & JSON
httpPut
$httpPut[]
$httpPut sends a synchronous HTTP PUT request, used to replace an entire resource at the given URL. Unlike POST (which creates), PUT is idempotent and should fully replace the target resource. Always set the appropriate Content-Type header via $httpAddHeader before sending. Use $httpResult to access structured JSON responses and $httpStatus to verify the request outcome.
Syntax
bdfd
$httpPut[url;body?]
Examples
Replace API Resource
$httpAddHeader[Content-Type;application/json]
$httpPut[https://api.example.com/configs/bot;{"theme":"dark"}]
$title[HTTP PUT Request]
$description[Configuration replaced. Status: **$httpStatus**]
$color[#5865F2]
$sendMessage[]