> ## Documentation Index
> Fetch the complete documentation index at: https://docs.roark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# roark http-request-definition update

> Update HTTP request definition

Updates an existing HTTP request definition.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark http-request-definition update <definition-id> [options]
```

> [!NOTE]
>
> Calls `PUT /v1/http-request-definition/{definitionId}`

## Arguments

**definition-id** `string` *required*

The ID of the HTTP request definition to update.

## Options

**--url** `string`

URL for the HTTP request.

**--description** `string`

Description of the HTTP request definition.

**--method** `string`

HTTP method: POST, PUT, PATCH, or GET. One of `POST`, `PUT`, `PATCH`, `GET`

**--body** `string`

Request body template. Accepts a JSON object or a string with placeholders like \{\{phoneNumberToDial}}. Objects are serialized to JSON for storage.

**--headers** `object`

Request headers as key-value pairs.

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark http-request-definition update <definition-id>
```

Every command also takes the [global options](/cli-reference/overview.md#global-options) and sets one
of the [exit codes](/cli-reference/overview.md#exit-codes).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.