Execute PATCH
Operation name
Execute PATCH
Function overview
Executes HTTP PATCH method request.
Data model
The data model of this component is XML type.
For more details on input/output schema, refer to Schemas.
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Input data |
Optional |
Not available |
Select a component on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Destination |
Required |
Not available |
Select a connection resource.
|
|
Path |
Optional |
Available |
Specify a relative path from the URL entered in URL of Destination. |
|
Encoding |
Optional |
Available |
Select or enter an encoding used for URL encoding. When you enter encoding, specify one of the encodings supported in Java SE Runtime Environment 8. = Remarks =
For details, refer to "Supported Encodings" (http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html). |
|
Query parameter |
Optional |
- |
Specify names and values for query parameters to be concatenated to the URL. Each query parameter can be operated with the following buttons:
|
|
Query parameter/Name |
Optional |
Available |
Enter the name of query parameter. |
|
Query parameter/Value |
Optional |
Available |
Enter the value of query parameter. |
|
Request settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Input source |
Required |
Not available |
Select an input source for a request body.
|
|
Data format |
Required |
Not available |
Select a data format of a request body.
|
|
File path |
Required |
Available |
Select or enter a file path of input source for a request body. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Form settings |
Optional |
- |
Specify parameters of form for a request body. Each parameter can be operated with the following buttons:
|
|
Form settings/Name |
Optional |
Only environment variables are available |
Enter the form name. |
|
Multipart form settings |
Optional |
- |
Specify multipart for a request body. Each part can be operated with the following buttons:
|
|
Multipart form settings/Name |
Optional |
Only environment variables are available |
Enter the part name of the multipart. |
|
Multipart form settings/Type |
Optional |
Not available |
Select the part type of the multipart.
|
|
Put Content-Length header to part header for file type |
Optional |
Not available |
Select whether or not to add a Content-Length header to the part header, with the file size specified in the input data as the value, when Multipart form settings/Type is File.
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Set input schema with JSON file |
Specify a JSON file and set the input schema. |
Displayed when JSON is selected in Data format. |
Response settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Output destination |
Required |
Not available |
Select output destination of a response body.
|
|
Data format |
Required |
Not available |
Select a data format of response body.
|
|
File path |
Required |
Available |
Select or enter a file path of output destination of a response body. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Remove invalid XML characters |
Optional |
Not available |
Select whether or not to remove invalid characters for XML automatically if they're found while parsing JSON format data.
|
|
Redirect automatically |
Optional |
Not available |
Select whether or not to redirect automatically when a redirect destination is included in the response.
|
|
Error when response status code is 4xx or 5xx |
Optional |
Not available |
Select whether or not to make the processing an error when the response status code is "4xx" or "5xx".
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Set output schema with JSON file |
Specify a JSON file and set the output schema. |
Displayed when JSON is selected in Data format. |
Header settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Request header |
Optional |
- |
Specify HTTP headers to be included in a request. Each request header can be operated with the following buttons:
|
|
Request header/Name |
Optional |
Available |
Enter the request header name. |
|
Request header/Value |
Optional |
Available |
Enter the request header value. |
|
Response header |
Optional |
- |
Specify header names to get from HTTP headers included in a response. Each response header can be operated with the following buttons:
|
|
Response header/Name |
Optional |
Only environment variables are available |
Enter the response header name. |
|
Authentication settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Authentication |
Required |
Not available |
Select an authentication method on sending a request.
|
|
User |
Optional |
Available |
Enter the user name used for authentication. |
|
Password |
Optional |
Available |
Enter the password used for authentication. |
|
Connection Setting |
Optional |
Not available |
Select a connection resource to use for authentication. |
|
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Optional |
Not available |
Select a data processing method.
|
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
The schema varies depending on Data format settings of Request settings.
In the case of XML
The schema varies depending on the XML data of the request body.
When a request body is JSON data, the input data is converted from XML to JSON and processed.
The schema of XML format for converting to JSON format data is as follows:
<-- When the root attribute indicates object-type JSON --> <?xml version="1.0"?> <root type="object"> <JSON member name type="attribute value that represents JSON type">value</JSON member name> : </root> <-- When the root attribute indicates array-type JSON --> <?xml version="1.0"?> <root type="array"> <element type="attribute value that represents JSON type">value</element> : </root> <-- When the JSON member name is invalid for XML element name --> <?xml version="1.0"?> <root type="object"> <member type="attribute value that represents JSON type" name="JSON member name">value</member> : </root>
Element name |
Attribute name |
Description |
Remarks |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
root |
- |
Root element wrapping JSON object. |
|
|||||||||||||
type |
Specify an attribute value that represents JSON type.
|
|
||||||||||||||
JSON member name |
- |
Element that represents JSON member. |
|
|||||||||||||
type |
Specify an attribute value that represents JSON type.
|
|
||||||||||||||
element |
- |
Element that represents array element. |
|
|||||||||||||
type |
Specify a string that represents JSON type. Specify the same attribute value as the type attribute of the JSON member name. |
|
||||||||||||||
member |
- |
Element to specify instead when the JSON member name is invalid for XML element name. |
|
|||||||||||||
type |
A string that represents JSON type is output. Specify the same attribute value as the type attribute of the JSON member name. |
|
||||||||||||||
name |
Specify the JSON member name.
Example: XML data in which a member element is specified and the JSON member name is specified for the name attribute <member type="string" name="1name">Suzuki</member> The above XML data is converted to the following JSON member: {"1name":"Suzuki"} |
|
<?xml version="1.0"?> <request> <body> <form> <form parameter name> <value>form parameter value</value> </form parameter name> : <-- When parameter name of the form is invalid for XML element name --> <parameter name="form parameter name"> <value>form parameter value</value> </parameter> : </form> </body> </request>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
request |
- |
|
|
body |
- |
|
|
form |
- |
|
|
form parameter name |
- |
Element that shows the form parameter name. |
|
parameter |
- |
Element when a form parameter name is invalid for XML element name. |
|
name |
Input the form parameter name. |
|
|
value |
- |
Input the form parameter value. |
|
Example: When the input data is the following
<?xml version="1.0"?> <request> <body> <form> <firstname> <value>Ichiro</value> </firstname> <lastname> <value>Suzuki</value> </lastname> </form> </body> </request>
In the above XML data, the form data stored in the request body is as follows:
Content-Type: application/x-www-form-urlencoded; charset="UTF-8" firstname=Ichiro&lastname=Suzuki
<?xml version="1.0"?> <request> <body> <multipart> <-- When the type is "String" --> <part name> <value>form value</value> <mimeType>MIME type of the part's Content-Type header</mimeType> </part name> : <-- When the type is "File" --> <part name> <file> <path>file path</path> </file> <mimeType>MIME type of the part's Content-Type header</mimeType> </part name> : <-- When the part name is invalid for XML element name --> <part name="part name"> <value>part value</value> <mimeType>MIME type of the part's Content-Type header</mimeType> </part> : </multipart> </body> </request>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
request |
- |
|
|
body |
- |
|
|
multipart |
- |
|
|
part name |
- |
Element that shows part name. |
|
part |
- |
Element when a part name is invalid for XML element name. |
|
name |
Input the part name. |
|
|
mimeType |
- |
Input the MIME type of the part's Content-Type header. |
|
value |
- |
Input a string for the body of the part. |
|
file |
- |
|
|
path |
- |
Input the file path for the body of the part. |
Note
|
Example: When the input data is the following
<?xml version="1.0"?> <request> <body> <multipart> <firstname> <value>Ichiro</value> </firstname> <lastname> <value>Suzuki</value> </lastname> <attachment> <file> <path>/data/profile.jpg</path> </file> </attachment> </multipart> </body> </request>
In the above XML data, the multipart form data that is stored in the request body is as follows:
Content-Type: multipart/form-data; boundary=<boundary> --<boundary> Content-Disposition: form-data; name="firstname" Ichiro --<boundary> Content-Disposition: form-data; name="lastname" Suzuki --<boundary> Content-Disposition: form-data; name="attachment"; filename="profile.jpg" Content-Type: image/jpeg <data of /data/profile.jpg> --<boundary>--
The schema varies depending on Data format settings of Response settings.
In the case of XML
The schema varies depending on the XML data of the response body.
In the case of JSON
When the response body is JSON type data, the data is converted to XML and output to the result data.
The schema converted from JSON to XML is as follows:
<-- When the root attribute indicates object-type JSON --> <?xml version="1.0"?> <root type="object"> <JSON member name type="attribute value that represents JSON type">value</JSON member name> : </root> <-- When the root attribute indicates array-type JSON --> <?xml version="1.0"?> <root type="array"> <element type="attribute value that represents JSON type">value</element> : </root> <-- When the JSON member name is invalid for XML element name --> <?xml version="1.0"?> <root type="object"> <member type="attribute value that represents JSON type" name="JSON member name">value</member> : </root>
Element name |
Attribute name |
Description |
Remarks |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
root |
- |
Root element wrapping JSON object. |
|
|||||||||||||
type |
Attribute value that represents JSON type is set.
|
|
||||||||||||||
JSON member name |
- |
Element that represents JSON member. |
|
|||||||||||||
type |
Attribute value that represents JSON type is set.
|
|
||||||||||||||
element |
- |
Element name that represents array element. |
|
|||||||||||||
type |
A string that represents JSON type is output. The same attribute value as the type attribute of the JSON member name is set. |
|
||||||||||||||
member |
- |
Element name used when the JSON member name is invalid for XML element name. |
|
|||||||||||||
type |
A string that represents JSON type is output. The same attribute value as the type attribute of the JSON member name is set. |
|
||||||||||||||
name |
A JSON member name is output.
Example: A JSON member with an invalid name for XML element name. {"1name":"Suzuki"} The above JSON member is converted to the following XML data and output: <member type="string" name="1name">Suzuki</member> |
|
<?xml version="1.0"?> <response> <body> <content>response body data</content> </body> </response>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
response |
- |
|
|
body |
- |
|
|
content |
- |
Data of the response body. |
The data varies depending on the value of Content-Type header of the response.
|
Loading input schema in Mapper
The method to load input schema varies depending on Data format of Request settings.
In the case of XML
The schema needs to be loaded manually.
Specify the schema of the data to be loaded.
In the case of JSON
When using Set input schema with JSON file, the schema is loaded automatically.
In the case of Form
The schema is loaded automatically.
In the case of Multipart form
The schema is loaded automatically.
Loading output schema in Mapper
The method to load output schema varies depending on Data format of Response settings.
In the case of XML
The schema needs to be loaded manually.
Specify the schema of the data to be loaded.
In the case of JSON
When using Set output schema with JSON file, the schema is loaded automatically.
In the case of Other
The schema is loaded automatically.
Mass data processing
Mass data processing is supported.
Transaction
Transaction isn't supported.
Parallel Stream Processing
PSP isn't supported.
Component variable name |
Description |
Remarks |
---|---|---|
status_code |
HTTP status code of the response is stored. |
|
reason_phrase |
Text phrase related to the HTTP status code of the response is stored. |
|
error_response_body |
The response body with a response status code "4xx" or "5xx" is stored. |
|
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
When Redirect automatically is selected, the behavior will be as follows.
When the status code of response is any of the following, the request will be resent to the URI indicated in the "Location" header in the response. When upper case is included in the host name of the redirection destination, it's converted to lower case for redirection.
- 301
-
(Moved Permanently)
- 302
-
(Found)
- 303
-
(See Other)
- 307
-
(Temporary Redirect)
The result data when the response status code is 400 or higher
When the response status code is 400 or higher, the response body is output to the result data.
At that time, the schema of result data varies depending on the value of Content-Type header of the response.
-
When the subtype of the Content-Type header ends with "xml"
The schema varies depending on the XML data of the response body.
-
When the subtype of the Content-Type header ends with "json"
As described in "In the case of JSON".
-
When other than any of the above
As described in "In the case of Other".
= Remarks =To content element, the response body encoded according to the following rules is output.
-
When there's a Content-Type header in the response header, the response body is encoded with the charset parameter value of the Content-Type header.
-
When there's no Content-Type header in the response header, or no charset parameter in the Content-Type header, the response body is encoded with "ISO-8859-1".
-
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|