Hi Atlassian team,
The REST API v2 was recently upgraded with the ability to fetch multiple content objects (pages, blogposts, etc) with one API call.
There are still some holes:
-
The docs say that multiple comma-delimited IDs can be provided when fetching multiple content items. Is there an explicit or implicit limit to the number of items that we can request in the comma-separated list? If so, can this please be documented?
-
While the “fetch multiple content ids” feature is now implemented for pages and blogposts, the V2 API is missing the ability to fetch multiple attachments with one call.
-
Apps equally need the ability to fetch multiple content properties (of whatever type) with one API call. We used to be able to do this quite simply using expansions, but now we are forced to make a single request for each individual content piece that might have a content property. This is slow and cumbersome.
-
On a completely separate topic, we are currently able to untrash an attachment using this API call, which is now deprecated. I do not see any replacement in V2. Do you have plans to remedy this?
Thanks,
Scott
4 Likes
Hi @scott.dudley,
Thank you for the feedback here!
- There are currently explicit but undocumented limits on our endpoints that have these ID filters - we will get the limits bumped up and standardized to be 250 + add this to our documentation.
- Good callout - we will make sure to release a
Get attachments
endpoint soon!
- Given our move to more strongly typed “content” - pages, blog posts, attachments, etc. and their corresponding granular OAuth 2.0 scopes, this means we are keeping our endpoints separate based on type/corresponding scope. However, we will work on delivering a set of endpoints for getting multiple content properties per type, example:
Get content properties for pages
. This will at least resolve the paint point of making a request per piece of content.
- Thanks for the heads up here - we will work on an
Update attachment
endpoint that will contain the ability to change the status of an attachment.
Hi @SimonKliewer,
I just wanted to see if there are any updates on when the above proposed APIs are expected to get shipped? We are getting close to six months out from the proposed Jan 1 drop-dead deadline for the REST v1 API, so it would be great if we could know when we will be able to schedule the required work.
Thanks,
Scott
3 Likes
Hi @scott.dudley - thanks for the follow up. We are targeting a release in early July that should resolve the issues you are seeing here!
For:
- Will be included in upcoming release (Early July)
- Will be included in upcoming release (Early July)
- Work for this recently started, it might not be ready by above release but will be ready soon after
- Instead of introducing a new V2 endpoint, I wanted to check if this non-deprecated V1 endpoint would work for you.
You could use the following body:
{
"id": "<id-here>",
"type": "attachment",
"status": "current",
"version": {
"number": <current-version+1-here>
}
}
Hopefully this helps - thanks so much!
1 Like