Use the renderRequest action to send custom HTTP requests
The renderRequest action works similarly to curl by allowing you to send HTTP requests to a URL. However, unlike curl, renderRequest automatically handles several tasks for you, such as:
Managing authentication
Applying
findReplaceprocessingReplacing special variables
Integrating with CLI scripts and
runactions
Some clients also support additional customization tailored to their context.
Parameters
You can customize the behavior of the renderRequest action using the following parameters:
Parameter | Default | Description |
|---|---|---|
|
| Saves the response output to a file. |
|
| Specifies the file encoding for the output file. |
|
| Adds request parameters to the URL for non-POST requests, or includes them as POST data. For example: |
|
| Sets the HTTP |
|
| Sets the content type for the request. You can use any valid type, or one of the following shortcuts: |
|
| Specifies the HTTP method to use, such as |
|
| Specifies a partial URL to append to the server URL. This parameter is required unless the client sets the URL using its own parameters. |
|
| Processes the response using CLI |
|
| Works like |
Client-specific parameters
Some clients offer additional parameters that let you simplify requests using project, issue, page, or plan references.
Jira
Parameter | Description |
|---|---|
|
|
|
|
Confluence
Parameter | Description |
|---|---|
| Ignored unless |
|
|
Example
Here’s an example of using renderRequest to fetch project details in Jira:
jira --action renderRequest --project TEST --requestParameters 'expand=description'
This command automatically resolves the correct URL for the TEST project and appends the query string expand=description.