Skip to main content

Patch a webhook

PATCH 

/v1/webhooks/:identifier

This route allows you to modify a webhook in your Port organization. You can also modify it via the data sources page of your Port account.

To learn more about webhooks, check out the documentation.

Request

Path Parameters

    identifier stringrequired

    The identifier of the webhook you want to modify.

Body

    identifier string

    Possible values: <= 30 characters

    The new identifier of the webhook.

    title string

    Possible values: <= 30 characters

    The new title of the webhook, which will be displayed in the data sources page of your Port account.

    description string

    Possible values: <= 200 characters

    A new description for the webhook.

    icon string

    The new icon of the webhook.

    mappings

    object[]

    The mapping definitions used to map the data from the webhook into Port entities. For more information and examples, check out the documentation.

  • Array [

  • blueprint stringrequired

    The identifier of the blueprint to map the data into.

    filter string

    A jq query used to filter exactly which payloads sent to the webhook are processed. If set to "true", all payloads will be processed.

    itemsToParse string

    A jq query that evaluates to an array of items, used to create multiple entities from a single webhook event.

    entity

    object

    required

    An object defining how to map the data from the webhook payload into Port entities.

    identifier stringrequired

    A jq expression used to get data from the webhook payload, to be used as an identifier for the entity.

    title string

    A jq expression used to get data from the webhook payload, to be used as the title of the entity.

    icon string

    The icon of the entity.

    team string

    The team the entity belongs to.

    properties object

    An object containing the properties of the entity and their values. For more information and examples, check out the documentation.

    relations object

    An object containing the relations of the entity and their values. For more information and examples, check out the documentation.

  • ]

  • enabled boolean

    Default value: true

    Determines whether the webhook is active or not. If false, any incoming events will be dropped.

    security

    object

    The security configuration of the webhook, used to tell Port how to verify the hashed signature sent with incoming requests.
    For more information and examples, check out the documentation.

    secret string
    signatureHeaderName string
    signatureAlgorithm string

    Possible values: [sha1, sha256, plain]

    signaturePrefix string
    requestIdentifierPath string
    integrationType string

    Possible values: [custom]

Responses

Default Response

Loading...