Webhooks with GET requests: Difference between revisions

From Planfix
Jump to: navigation, search
No edit summary
No edit summary
Line 25: Line 25:


*We specify the name of the person to whom the action will be attributed in Planfix after the webhook has been triggered:
*We specify the name of the person to whom the action will be attributed in Planfix after the webhook has been triggered:
https://s.pfx.so/pf/3W/dzYoqg.png
https://s.pfx.so/pf/0y/UxBrDw.png




We select the type of operation and configure it. When this is all complete and the webhook is triggered, Planfix will create a task using the template selected, name the project based on the project parameter in the link, and name the task based on the name parameter in the link. Then the following assignee will be added to the task:
We select the type of operation and configure it. When this is all complete and the webhook is triggered, Planfix will create a task using the template selected, name the project based on the project parameter in the link, and name the task based on the name parameter in the link. Then the following assignee will be added to the task:

Revision as of 14:06, 13 September 2022

In order to understand how webhooks with GET requests work, let's put together a link that will create new tasks in Planfix.


Sample webhook:

https:///your_account.planfix.ru/webhook/get/create_task?project=project&name=taskname


  • The first step is to select the type of request that will be used in the link. Let's specify a GET request:

2edrHf.png


  • Webhook links contain a unique code, but we can replace it as needed with something more informative:

GXCOlX.png


  • In the next step, we add parameters to the webhook. These parameters will store the values that are sent to Planfix. In the example, we're sending the project and task names:

uSATK9.png


  • We specify the name of the person to whom the action will be attributed in Planfix after the webhook has been triggered:

UxBrDw.png


We select the type of operation and configure it. When this is all complete and the webhook is triggered, Planfix will create a task using the template selected, name the project based on the project parameter in the link, and name the task based on the name parameter in the link. Then the following assignee will be added to the task: