---
title: "Update Input"
method: PUT
path: "/v1/buckets/{bucketID}/inputs/{inputID}"
tags: ["Inputs"]
---

# Update Input

`PUT /v1/buckets/{bucketID}/inputs/{inputID}`

Update input endpoint response code, body or headers.

## Request body

- Input
  - `id` string
  - `created_at` integer
  - `updated_at` integer
  - `name` string
  - `function_id` string — ID of the function that will be executed for this input
  - `headers` Headers — A hashmap of header keys and a list of values for each string, Go equivalent map[string][]string
  - `status_code` integer — Response status code to return when this input receives a webhook
  - `body` string — Response body to return when this input receives a webhook
  - `response_from_output` string — Output ID to specify a single output for response or set it to 'anyOutput' to return response from any output. Output should respond within 10 seconds
  - `custom_domain` string — Specify any custom domain from your Reserved Domains, such as example.hooks.webhookrelay.com or hooks.example.com (if used with your own top level domain name, create a CNAME pointing at hooks.webhookrelay.com)
  - `path_prefix` string — When used with custom domains, path_prefix can host multiple input endpoints on a single domain, such as hooks.example.com/github -> Jenkins CI, hooks.example.com/gitlab -> Spinnaker
  - `description` string

## Response `200`

Input updated

- Input
  - `id` string
  - `created_at` integer
  - `updated_at` integer
  - `name` string
  - `function_id` string — ID of the function that will be executed for this input
  - `headers` Headers — A hashmap of header keys and a list of values for each string, Go equivalent map[string][]string
  - `status_code` integer — Response status code to return when this input receives a webhook
  - `body` string — Response body to return when this input receives a webhook
  - `response_from_output` string — Output ID to specify a single output for response or set it to 'anyOutput' to return response from any output. Output should respond within 10 seconds
  - `custom_domain` string — Specify any custom domain from your Reserved Domains, such as example.hooks.webhookrelay.com or hooks.example.com (if used with your own top level domain name, create a CNAME pointing at hooks.webhookrelay.com)
  - `path_prefix` string — When used with custom domains, path_prefix can host multiple input endpoints on a single domain, such as hooks.example.com/github -> Jenkins CI, hooks.example.com/gitlab -> Spinnaker
  - `description` string

## Other responses

- `400` — Invalid input request supplied

---

[API](https://skmtc.dev/webhookrelay/apis/webhook-relay.md) · [All operations](https://skmtc.dev/webhookrelay/apis/webhook-relay/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webhookrelay/webhook-relay/revisions/ce8fd4d3cf19/schema)
