Skip to main content
Feedback

REST Client operation

The REST Client operation determines how to interact with the HTTP site defined in the REST Client connection.

Create a separate operation component for each action/object combination that your integration requires.

The REST Client operations support data in XML and JSON format, and the following actions:

  • DELETE — Delete an existing resource from the server.
  • GET — Retrieve information about an existing resource from the server.
  • HEAD — Retrieve header information about an existing resource from the server, and not the actual resource itself.
  • OPTIONS — Retrieve information about the communication options available for an existing resource from the server.
  • PATCH — Update and make partial changes to an existing resource without replacing the original version of the resource.
  • POST — Request that a web server accept the data enclosed in the body of the request message.
  • PUT — Replace the resource at the current URL on the server with the resource contained within the request.
  • TRACE — Perform a message loop-back test along the path to the target resource.

Options tab

Select a connector action. When you configure an action, the following fields appear on the Options tab.

Object - Not supported for this connector.

Request Profile - Structure of the request sent by the connector. For this connector, it is unstructured.

Response Profile - Structure of the response received by the connector. For this connector, it is unstructured.

Tracking Direction - Select the document tracking direction for the operation, either Input Documents or Output Documents. This setting enables you to choose which document appears in Process Reporting. Start steps always track output documents regardless of your selection.

note

If the tracking direction is read-only, the feature to change the direction is either unavailable or the developer set the configuration to read-only. The default value you see shows you which document appears in Process Reporting.

Return Application Error Responses - This setting controls whether an application error prevents an operation from completing:

  • If you clear the setting, the process stops and reports the error on the Process Reporting page.
  • If you select the setting, processing continues and passes the error response to the next component processed as the connection output.

Follow Redirects - Specify if the REST Client operation should follow HTTP redirects. Choose one of the following:

  • None — Disable and do not allow redirects.

  • Strict — Automatically redirect HEAD and GET operation methods when the server responds with one of the following HTTP status codes:

    • 301 Moved Permanently — The resource requested has been permanently moved to the URL provided by the Location header. The browser redirects to this page. For more information, see the topic 301 Moved Permanently in the Mozilla documentation.
    • 302 Found — The resource requested has been temporarily moved to the URL provided by the Location header. The browser redirects to this page. For more information, see the topic 302 Found in the Mozilla documentation.
    • 307 Temporary Redirect — The resource requested has been temporarily moved to the URL provided by the Location headers. For more information, see the topic 307 Temporary Redirect in the Mozilla documentation.
  • Lax — Automatically redirect all HEAD, GET, POST, and DELETE operation requests.

Path - The resource path that the connector interacts with for the operations. This value gets appended to the base URL to form the full URL. For example the base URL may be http://www.google.com/ and the path may be /api/v1/getContacts. In this example the full URL is http://www.google.com/api/v1/getContacts. You can override the property per document using the Path dynamic operation property.

Query Parameters - Query parameters that are used to limit the size of the execution response. This value is appended to the full URL, which is the <baseUrl>/path and you can override the property's value.

Request Headers - You can set request headers for your Request Execution. The value of the key value pairs can be overwritten dynamically on Dynamic Operation Properties tab on the connector step, after the operation has been saved.

DELETE

DELETE sends an HTTP request to delete an existing resource from the server identified by a URI. You can use this operation, for example, when you have a resource that was previously created using PUT to undo the creation.

GET

GET sends an HTTP request to retrieve information about an existing resource from the server. You can use this operation, for example, when you have an API with a /Application endpoint. Making a GET request to that endpoint returns a list of all available applications.

note

The GET action will send documents passed into the connector as the request bodies. If the API is not expecting a body in the request, documents should be cleared before the REST Client GET action is executed. One way of clearing documents is by adding a blank message shape prior to the REST Client connector.

HEAD sends an HTTP request to retrieve header information about an existing resource from the server, and not the actual resource itself. HEAD is identical to GET except that the server does not send a message body in the response. You can use this operation, for example, when caching data to see if a specific document has changed since it was last accessed.

OPTIONS

OPTIONS sends an HTTP request to retrieve information about the communication options available for an existing resource from the server. You can use this operation, for example, to find out which request methods a server supports or to test a proxy for HTTP compliance.

PATCH

PATCH sends an HTTP request to update and make partial changes to an existing resource without replacing the original version of the resource. You can use this operation, for example, to update one field for a resource, rather than the entire resource.

POST

POST sends an HTTP request to request that a web server accept the data enclosed in the body of the request message. You can use this operation, for example, to store data and is typically used when uploading a file or when submitting a completed web form.

PUT

PUT sends an HTTP request to replace the resource at the current URL on the server with the resource contained within the request. PUT is used to both create and update the state of a resource on the server. You can use this operation, for example, to replace or update an article or blog at a specific URL.

TRACE

TRACE sends an HTTP request to perform a message loop-back test along the path to the target resource. TRACE provides a useful debugging mechanism.

Archiving tab

See the topic Connector operation’s Archiving tab for more information.

Tracking tab

See the topic Connector operation’s Tracking tab for more information.

Caching tab

See the topic Connector operation’s Caching tab for more information.

On this Page