Skip to content

Filter custom_headers from destination-type schema when feature is disabled #684

@alexluong

Description

@alexluong

The GET /api/v1/destination-types endpoint always returns the custom_headers field in config_fields for webhook providers, even when PORTAL_ENABLE_WEBHOOK_CUSTOM_HEADERS is false. Currently, filtering only happens client-side in the Portal UI. The backend schema should omit the field entirely when the feature is disabled so API consumers don't see an unsupported field advertised in the schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions