Skip to main content
Question

How to add JSON code into a Webhooks POST request to Clockify API?

  • February 4, 2022
  • 4 replies
  • 3158 views

Hello, there

I'm creating a Webhook to PULL reports data from Clockify API.

The code is below:

{

// REQUIRED

  "dateRangeStart": "2020-05-10T00:00:00.000",
  "dateRangeEnd": "2020-05-16T23:59:59.000",
  "summaryFilter": {
    "groups": [
      "USER",
      "PROJECT",
      "TIMEENTRY"
    ],
} 

 

That's how I set up the zap:

 

That's the error I get:
 

 

What should I do next?

I tried this and it didn't work. 

 

There are only 2 fields, if there were 3 I would add "summaryFilter", "groups" and "USER, PROJET, TIMEENTRY"

I don't know what I should add to each field and syntax I should use. 

Documentation at: https://clockify.me/developers-api#operation--v1-workspaces--workspaceId--reports-summary-post

Thanks!

 
 
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @Paulo Marques 

Please provide the link to the Clockify API endpoint documentation you are referencing, thanks.


Hi Troy, I just added in the end of the post, thanks for reminding me.
Here is the specific topic on the documentation:
https://clockify.me/developers-api#operation--v1-workspaces--workspaceId--reports-summary-post

 

Troy Tessalone wrote:

Hi @Paulo Marques 

Please provide the link to the Clockify API endpoint documentation you are referencing, thanks.


Hi Troy, I just added to the end of the post, thanks for reminding me.
Here is the specific topic on the documentation:
https://clockify.me/developers-api#operation--v1-workspaces--workspaceId--reports-summary-post

 

Troy Tessalone
Forum|alt.badge.img+14

@Paulo Marques 

 

Try using a Custom Request (POST)

 

Try copying/pasting/editing the Request Example JSON