Braun Reyes
05/03/2021, 7:22 PMMariia Kerimova
05/03/2021, 8:31 PMmutation {
create_action (input: {
config: {webhook: {
url: ""
}}
}) {
id
}
}
And then create a hook with that action_id 👆Braun Reyes
05/03/2021, 9:44 PMJenny
05/03/2021, 9:59 PMZanie
Braun Reyes
05/04/2021, 3:28 AMZanie
payload
field during action configuration/creation. It defaults to dumping all the data from the event so that will give you a good idea what data is available from the event. You can then include any of those keys in your JSON payload using {key}
(like Python string formatting).Zanie
Braun Reyes
05/04/2021, 6:14 PMZanie
mutation {
create_action(input: {config: {webhook: {url: "<http://test.prefect.io/>", payload: "{\"event-id\": \"{event.id}\"}"}}}) {
id
}
}
Zanie