Change a webhook
PUT/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
The identifier of the webhook you want to modify.
- application/json
Body
required
Array [
]
The new identifier of the webhook.
Possible values: <= 30 characters
The new title of the webhook, which will be displayed in the data sources page of your Port account.
Possible values: <= 30 characters
A new description for the webhook.
Possible values: <= 200 characters
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.
The identifier of the blueprint to map the data into.
A jq
query used to filter exactly which payloads sent to the webhook are processed. If set to "true"
, all payloads will be processed.
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.
A jq
expression used to get data from the webhook payload, to be used as an identifier for the entity.
A jq
expression used to get data from the webhook payload, to be used as the title of the entity.
The icon of the entity.
The team the entity belongs to.
An object containing the properties of the entity and their values. For more information and examples, check out the documentation.
An object containing the relations of the entity and their values. For more information and examples, check out the documentation.
Determines whether the webhook is active or not. If false
, any incoming events will be dropped.
true
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.
Possible values: [sha1
, sha256
, plain
]
Possible values: [custom
]
Responsesโ
- 200
Default Response