User Manual

10.11.2024

MANUAL

Developer Features: Server Script: httpClient.Patch

## Overview Used when issuing a PATCH method using "[httpClient](/en/manual/server-script-http-client)" in "「Server Script」". ## Syntax ``` httpClient.Patch(); ``` ## Parameters No parameters ## Return Value Return value of string type ## Usage Example The following example issues a PATCH method to an external API server and outputs the results to the log. ##### JavaScript ``` let data = { data1: 'abc', data2: '123' } httpClient.RequestUri = 'https://servername/api/.....'; httpClient.Content = JSON.stringify(data); let response = httpClient.Patch(); if (httpClient.IsSuccess) { context.Log('Success: ' + response); } else { context.Log('Error: (' + httpClient.StatusCode + ')' + response); } ``` ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/server-script-http-client">Developer Function: Server Script: httpClient</a><span>10.04.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
code VS Codeで開発作業をもっとスマートに

スクリプト開発の効率を高めたい方に、Code Assistをご用意しています。

Code Assistの詳細はこちら →
account_tree 複雑な構成も、すっきり視覚化

サイト構成やデータのつながりを可視化し、把握しやすくします。

Site Visualizerの詳細はこちら →
TOP