Skip to main content
PATCH
Update Processor

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

stream_id
string<uuid>
required
subscription_id
string<uuid>
required
workspace
string
required

Slug of the workspace the request acts in

Maximum string length: 120
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

Body

application/json
code
string | null

Python defining def process(event: dict) -> list[dict] | None. Each returned dict is {stream, kind, data, key?}: stream is an output stream's id or name, kind the new event's kind, data its body. Return None or [] to write nothing. No secrets: the code gets none and every reader of the stream sees it.

Minimum string length: 1
event_filter
EventFilter · object | null

New filter; null keeps it.

output_stream_ids
string<uuid>[] | null

New output streams; null keeps them.

Minimum array length: 1

Response

Successful Response

created_at
string<date-time>
required
filter
Filter · object
required
id
string<uuid>
required
kind
string
required
output_stream_ids
string<uuid>[]
required
status
string
required
trigger_id
string<uuid> | null
required
code
string | null

A processor's Python (def process(event)); null otherwise.