Skip to main content

API v2 - Querying Updates

  • August 12, 2019
  • 9 replies
  • 4046 views

Hi All,

I am having some trouble getting the ‘Updates’ data I am after.

API v1 I am able to use this endpoint - “https://api.monday.com:443/v1/updates.json?api_key=<API_TOKEN>” to return Update data that includes, amongst other fields, ‘update_id’, ‘pulse_id’, ‘pulse_name’, ‘created_at’, ‘body_text’, ‘posted_by’, and ‘replies’.

API v2 I believe I need to use the following query - query { updates ( limit: 100 ) { body id } } - but I can not figure out how to set up this query to return all of the data that API v1 returns.

Any help on this would be appreciated I am fairly new to the API v2 so I may be missing something obvious!

It would also be good to understand how long Monday.com are planning on maintaining the API v1!

Thanks,

James

This topic has been closed for replies.

9 replies

Ayelet
Forum|alt.badge.img
  • monday.com Team Member
  • August 13, 2019

Hey @JamesCole95,
Currently these fields are not available for the updates query, but we are planning on expanding the fields of updates to include all of api v1 fields.
I will let you know here!


  • Author
  • New Participant
  • August 13, 2019

Hi @Ayelet

Thanks for the reply - that makes sense I am glad it is not me just missing something haha. I assume the v1 APIs will be functional until v2 is fully fleshed out?


dipro
Forum|alt.badge.img
  • Leader
  • August 13, 2019

Hey @JamesCole95 – yes indeed! We will give you plenty of notice when we start to deprecate the API v1 🙂


Ayelet
Forum|alt.badge.img
  • monday.com Team Member
  • August 25, 2019

hey @JamesCole95,
just wanted to let you know we added more fields for updates!
you can see all the Update fields here: https://monday.com/developers/v2#queries-section-updates
let us know if you need any help constructing your new updates query.


  • New Participant
  • October 7, 2019

I am trying to retrieve updates for a certain item. Is there no way to do it besides querying all updates and looking for the item id? That can’t possibly be right, can it? I only see limit and page as update query parameters. Please tell me I am missing something!


dipro
Forum|alt.badge.img
  • Leader
  • October 7, 2019

Hey @dataskills!

If you’re looking for the updates on a particular item (by item ID), you can use a query like this:

query {
  items(ids:131336342) {
    updates {
      text_body
    }
  }
} 

Let me know if that helps!

Cheers,
Dipro


  • New Participant
  • October 7, 2019

That helps a lot, thank you.

You might consider changing the documentation to make this sort of thing clear, especially for people that are new to graphQL/Monday. One would have to know or recall specific facts about the structure to realize this technique while looking at the Querying Updates documentation.

It seems inconsistent at first take. Most things I have been working with in this API can be queried directly with an id parameter.


dipro
Forum|alt.badge.img
  • Leader
  • October 17, 2019

Sure thing! Thanks for the feedback – we’ll keep it in mind when creating developer resources for the API.

Cheers,
Dipro


BostonJames
  • Participating Frequently
  • October 19, 2020

This gives all updates for a single pulse but is it possible to query a single update to get the assets for that update? I’d rather not loop through every update in a pulse.