The tool PATCH enables you to execute a HTTP PATCH request on a Web application which updates parts of an existing resource.
Attribute | Type | Description |
---|---|---|
Media Type [M] | Selection | Specifies the media type that is acceptable for the response. Valid values are:
Note: If the accepted media type is specified via a Request Header with the key "Accept", the header value has preference.
Chick here for more information on header field definitions.
|
Response Body Resource Processing [O] | Selection | Specifies what type of resource operation should be executed based on the returned response body.
The resource operation uses all properties mapped in the referenced response body output parameter file descriptor. Optional, not all resource operation types require property values to be successfully executed, for example, DELETE will remove the selected element even if no element ID properties are specified. Attribute values:
See Tool Descriptor for more information on resource processing. Note: The Resource Processing attribute of the tool descriptor must be set to
TOOL_DEFINED in order for the resource operation to be processed.
|
For example, a PATCH request for updating attributes of a project element with Response Body Resource Processing set to UPDATE will refresh the property values of the selected project element.
Parameter Name | I/O | Type | Description |
---|---|---|---|
URL [M] | I | String | URL to the PATCH service of the Web application. |
Realm [O] | I | String | Realm enables mapping between client application and Web application. It is only relevant if an AWM application addresses different Web applications. |
Request Body [O] | I | File | File containing the patch payload as expected by the Web application. |
Response Body * [O] | O | File | File containing the patch response sent from the server application. |
Response Code [O] | O | String | Response Code returned by the server application. |
Response Header * [O] | O | String | Reference to a response header field of the HTTP PATCH request. |
Parameter Name | Attribute | Description |
---|---|---|
URL | Query Encoding | Charset used to encode the URL. |
Query Separator Symbol | Symbol used to separate query parameters within the URL string. | |
Response Body | Status Code | Status code to be intercepted by custom error handling.
Note: Specified as a regular expression.
|
Response Header | Name | Name of the response header field. |
The relationship REST Tool Has Request Header enables you to specify a name/value pair to be sent in the HTTP request header.
If specified in an authentication request the name/value pair is sent with every HTTP request for the signed in session.
Attribute | Type | Description |
---|---|---|
Name | String | Name of the HTTP header field. |
Value | String | Value of the HTTP header field. |
The relationship URL has a Query Parameter that enables you to specify parameters in form of name/value pairs that are added to the HTTP request.
Attribute | Type | Description |
---|---|---|
Name | String | Name of the query parameter. |
Value | String | Value of the query parameter. |
The relationship REST Tool Has Status Handler enables you to specify the handling of certain status codes returned by the tool. It overwrites a general handling of the status codes defined under the REST connection.
Attribute | Type | Description |
---|---|---|
Allow Loop [M] | Boolean | Specifies if loops are allowed in the status handler, that is, the status handler action can reference itself.
The default value is true. |
Response Code Pattern [M] | String | Specified the response code(s) to be handled by this status handler.
This must be specified as a regular expression. |
Perform Action [M] | Action Descriptor | Specifies which action should be performed when the status handler is triggered. |
Structure Descriptor [O] | File Descriptor | File containing the structure for the response that is specific for the matched status code. |
Workflow Execution [M] | Selection | Specifies the impact on the original action of the handled REST tool.
It describes how the action containing the REST tool is continued after the status handler action specified under the attribute Perform Action was executed. Attribute values are:
|