Define a REST message HTTP method

Define an HTTP method such as GET or POST to send a request to a web service provider.

Before you begin

Role required: web_service_admin

About this task

When you create a REST message record, several default HTTP methods are automatically created using settings inherited from the REST message record, such as the Endpoint. Subsequent changes to the REST message record are not applied to the HTTP methods automatically. You can create additional HTTP methods or modify the default HTTP methods to implement new behavior.

Procedure

  1. Navigate to System Web Services > Outbound > REST Message.
  2. Select a REST message you want to define an HTTP method for.
  3. In the HTTP Methods related list, click New.
  4. Select the HTTP method you want to use, such as GET or POST.
  5. Enter the Endpoint this HTTP method should access.
    The endpoint value may include variables using the format ${variable}.
  6. Right-click the form header and select Save.

What to do next

After creating the HTTP method, you can override the security settings from the parent REST message, configure HTTP headers, add variables, or test the method. For PUT, POST, and PATCH methods you can define a message body.