Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill gaps in v2 API?

davide-maestroni April 7, 2025

Hi all,

since v1 endpoints will be deprecated shortly, I have migrated everything I could to v2. The problem is that there are still some gaps between the two versions that I'm unable to fill, specifically how to list blog posts in "draft" status, and how to handle anonymous access.

Regarding blog posts, the documentation here explicitly states that the "draft" status is not supported, and the endpoint actually returns an error if "draft" is used as filter. I wonder how it is possible to collect data of blog posts that are saved as drafts. I have a few in my space and couldn't find any way to fetch them via API.

Regarding anonymous users, while the space permissions returned by the v1 endpoint contained flags like "anonymousAccess" and "unlicensedAccess", no reference to anonymous users is present in the v2 response. How can I then identify a permission given to an anonymous or unlicensed user?

Any help would be greatly appreciated

2 answers

1 accepted

1 vote
Answer accepted
davide-maestroni May 20, 2025

I'm posting here what I got from Atlassian support just to help anyone who lands on this discussion.

Regarding anonymous and unlicensed users, it looks like the response from the `/wiki/api/v2/spaces/{id}/permissions` endpoint may contain an undocumented principal type:

  • "type": "access-class", "id": "ANONYMOUS"
  • "type": "access-class", "id": "UNLICENSED"

Regarding the possibility of fetching blog posts in "draft" status, it seems they are handling the request internally.

0 votes
John Funk
Community Champion
April 24, 2025

Hi Davide - Welcome to the Atlassian Community!

Since no one has answered this, you probably should open a support ticket with Atlassian to get their feedback. 

https://support.atlassian.com/contact/#/

davide-maestroni May 5, 2025

Hi John, thank you for the advice. I'll definitely do it!

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events