Skip to main content
Updates an existing HTTP request definition.
Calls PUT /v1/http-request-definition/{definitionId}

Arguments

string
required
The ID of the HTTP request definition to update.

Options

string
URL for the HTTP request.
string
Description of the HTTP request definition.
string
HTTP method: POST, PUT, PATCH, or GET. One of POST, PUT, PATCH, GET
string
Request body template. Accepts a JSON object or a string with placeholders like {{phoneNumberToDial}}. Objects are serialized to JSON for storage.
object
Request headers as key-value pairs.
integer
How long to wait for each attempt, in milliseconds, from 1000 to 300000. Raise it while you debug your endpoint. Null or omitted is the default, 30000.
integer
How many times to send the request, from 1 to 5. Set 1 so a slow answer is never sent again, which would start a second call. Null or omitted is the default, 3.

Example

Every command also takes the global options and sets one of the exit codes.