---
title: "Update HTTP request definition"
method: PUT
path: "/v1/http-request-definition/{definitionId}"
tags: ["HTTP Request Definition"]
---

# Update HTTP request definition

`PUT /v1/http-request-definition/{definitionId}`

Updates an existing HTTP request definition.

## Path parameters

- `definitionId` string, required

## Request body

- UpdateHttpRequestDefinitionInput — Input for updating an HTTP request definition
  - `url` string, uri — URL for the HTTP request
  - `description` string, nullable — Description of the HTTP request definition
  - `method` 'POST' | 'PUT' | 'PATCH' | 'GET' — HTTP method: POST, PUT, PATCH, or GET
  - `body` union — Request body template. Accepts a JSON object or a string with placeholders like {{phoneNumberToDial}}. Objects are serialized to JSON for storage.
    - string
    - object
  - `headers` object — Request headers as key-value pairs

## Response `200`

The updated HTTP request definition

- object
  - `data` HttpRequestDefinitionResponse, required — HTTP request definition
    - `id` string, uuid, required — HTTP request definition ID
    - `scope` 'AGENT_OUTBOUND_DIAL', required — Scope of the HTTP request definition
    - `description` string, nullable, required — Description of the HTTP request definition
    - `url` string, required — URL for the HTTP request
    - `method` 'POST' | 'PUT' | 'PATCH' | 'GET', required — HTTP method: POST, PUT, PATCH, or GET
    - `body` string, nullable, required — Request body as a string
    - `parsedBody` union, required — Parsed body as a JSON object if valid JSON, otherwise the raw string
      - object
      - string
    - `headers` object, required — Request headers as key-value pairs
    - `createdAt` string, required — Creation timestamp
    - `updatedAt` string, required — Last update timestamp

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-08-17** `887b091b3d81` — 6 warning
  - added the new `conflict` enum value to the `type` response property for the response status `401`
  - added the new `conflict` enum value to the `type` response property for the response status `404`
  - added the new `conflict` enum value to the `type` response property for the response status `500`
  - added the new `payment_required` enum value to the `type` response property for the response status `401`
  - …2 more

[Change history](https://skmtc.dev/roarkhq/apis/roark-analytics-api/changes/v1/http-request-definition/:definitionId/put.md)

---

[API](https://skmtc.dev/roarkhq/apis/roark-analytics-api.md) · [All operations](https://skmtc.dev/roarkhq/apis/roark-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roarkhq/roark-analytics-api/revisions/1d61b68e9429/schema)
