Question

Use of Resource Get operations

  • 15 December 2023
  • 1 reply
  • 45 views

Hi

I’m experimenting with the work required to create a Public application for our software platfrorm against our API and have some questions.  For context I’m creating the application using the Zapier CLI and so far having some successful results defining our endpoints as “resources” folowing along with this sample.

Stopping get operations after create?

I can see the “get” operation being called after the “create” operation as described in the documentation. Our create request returns all the data and so doesn’t need this extra call, can it be disabled? I realize I could do this by not defining “get” but that leads into:

Using get operations after hook triggers?

On the other hand our webhooks are “thin” in that they only have minimal ids, it doesn’t look like the “get” operation is automatically called after the “hook” trigger. Is there a way to automatically configure this to happen? If not what’s the best way to handle the “thin” webhook scenario? The “get” operation defined on the resource doesn’t automatically get used as a “search”, should I be duplicating “get” as a “search by id”?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 2
Badge +2

Hi @Nigel Sampson 

Regarding “Stopping get operations after create?”, I would suggest reaching out to our Developer Support team via https://developer.zapier.com/contact so that they can view the integration, see what the GET operation is for, and provide solution to prevent it from being sent.

For “Using get operations after hook triggers?”, in the ‘perform’ function for the hook trigger, specify the GET request to be sent. That way, after the hook is received, a GET request (the specified one) is sent and the response is returned from the trigger’s ‘perform’.

Hope that helps.