---
title: "PATCH /event-streams/{id}/"
method: PATCH
path: "/event-streams/{id}/"
tags: ["event-streams"]
---

# PATCH /event-streams/{id}/

`PATCH /event-streams/{id}/`

## Path parameters

- `id` integer, required

## Request body

- PatchedEventStreamIn
  - `name` string — The name of the webhook
  - `test_mode` boolean — Enable test mode
  - `additional_data_headers` string — The additional http headers which will be added to the event data. The headers are comma delimited
  - `eda_credential_id` integer
  - `organization_id` integer, nullable
  - `event_stream_type` string — The type of the event stream based on credential type

## Response `200`

Update successful, return the new event stream.

- EventStreamOut
  - `name` string, required — The name of the webhook
  - `test_mode` boolean — Enable test mode
  - `additional_data_headers` string — The additional http headers which will be added to the event data. The headers are comma delimited
  - `organization` string, required
  - `eda_credential` EdaCredentialRef, required — Serializer for EdaCredential reference.
    - `id` integer, required
    - `name` string, required
    - `description` string
    - `inputs` object, required
    - `managed` boolean
    - `credential_type_id` integer, nullable, required
    - `organization_id` integer, nullable, required
  - `event_stream_type` string — The type of the event stream based on credential type
  - `id` integer, required
  - `owner` string, required
  - `url` string, required — The URL which will be used to post to the event stream
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required
  - `test_content_type` string, required — The content type of test data, when in test mode
  - `test_content` string, required — The content recieved, when in test mode, stored as a yaml string
  - `test_error_message` string, required — The error message, when in test mode
  - `test_headers` string, required — The headers recieved, when in test mode, stored as a yaml string
  - `events_received` integer, required — The total number of events received by event stream
  - `last_event_received_at` string, date-time, nullable, required — The date/time when the last event was received

## Other responses

- `400` — Unable to update event stream.

---

[API](https://skmtc.net/ansible/apis/event-driven-ansible-api.md) · [All operations](https://skmtc.net/ansible/apis/event-driven-ansible-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ansible/event-driven-ansible-api/revisions/c04fc5f09692/schema)
