Define an HTTP header for a REST message or HTTP method to send that header with REST
requests.
始める前に
Role required: web_service_admin
このタスクについて
You can specify an HTTP header for a REST message, or for an HTTP method. Headers
defined for a REST message apply to all HTTP methods for that REST message. If you
specify the same header for both a REST message and a child HTTP method, the value
defined for the HTTP method overrides the value from the parent REST message.
手順
-
Navigate to .
-
Select a REST message.
- オプション:
To specify a header for an HTTP method instead of the REST message, in the
HTTP Method related list, select an HTTP
method.
-
Select the HTTP Request tab.
-
In the HTTP Headers embedded list, click
Insert a new row.
-
Enter the name of the header, such as Content-Type or Accept.
-
Click on the Value field for the new row and enter the
value you want to assign this header.
You can use a variable in the format ${variable} instead of a static value.
You can assign a value to the variable when sending a REST request.
-
Click Update.