HTTP & JSON
httpPatch
$httpPatch[]
$httpPatch sends a synchronous HTTP PATCH request, used to apply a partial update to a resource. Unlike PUT (which replaces the entire resource), PATCH only modifies the fields provided in the request body. Set the Content-Type header via $httpAddHeader before sending JSON payloads. After the request, use $httpResult to access the response and $httpStatus to check the outcome.
Syntax
bdfd
$httpPatch[url;body?]
Examples
Partially Update API Resource
$httpAddHeader[Content-Type;application/json]
$httpPatch[https://api.example.com/users/123;{"status":"active"}]
$title[HTTP PATCH Request]
$description[Resource updated. Status: **$httpStatus**]
$color[#57F287]
$sendMessage[]