How to fetch a page’s allowed operations with V2 Confluence REST API

We are using the deprecated V1 API

/rest/api/content/${contentId}?expand=operations

to fetch allowed operation for the current user on a page or blog.

What is the way to do it by using V2 REST API, I can’t find a way from the documentation.

Thank you for any advice !

Hi @AndreaSerra ,

I think the GET Get permitted operations for page V2 endpoint, /pages/{id}/operations and the blog equivalent GET Get permitted operations for blog post provides the equivalent information.

Regards,
Dugald

Thank you @dmorrow !

To get the content type (page or blog) I suppose I have to call the Convert content ids to content types right ?

Hi @AndreaSerra ,

Yes, so it will become a two step process.

Regards,
Dugald

1 Like