Is content status available via API?

Doug Roberts July 31, 2024

 

 

This article details how to add a content status to a Confluence page. Is the added content status available via API?

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2024

Hi @Doug Roberts 

Welcome.

This can be done via the API, you wil need to use the update page endpoint.

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-put 

Doug Roberts August 1, 2024

I might be mistaken, but I want to get the status, so I think I'd use a GET method

However, looking at the link above, it looks like that endpoint can return the statuses (Valid values: currentarchivedtrasheddeletedhistoricaldraft) but not the custom Content Status mentioned in the article above. It's not helpful that the names are so similar.

I've been able to pull the status (usually "current" or "archived") but my team has applied Content Statuses like "Verified" or "Pending Updates" (see screenshot) and I'd like to pull those via API.

 

Screenshot 2024-08-01 090942.png

 

Like Marc - Devoteam likes this
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2024

Hi @Doug Roberts 

Good to hear it worked.

The is the API endpoint for GET a page, /#api-pages-get 

But looking at this, this is only the Conlfuence status and not the page custom status you can define.

Doug Roberts August 1, 2024

You misunderstand: it did not work. That endpoint does not provide the information I'm asking for.

I want to get the "Pending Updates" (as an example) custom Content Status my team has added to pages.

Thank you for your replies, but they are not addressing my question.

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2024

Hi @Doug Roberts 

I edited it my previous response the endpoint should be classifiaction-levels

But this gives a feature disabled result..

Doug Roberts August 2, 2024

Still no, but thanks.

I get the feeling that since Content Status still isn't searchable or a filter option (this question from 2022 hasn't been updated to say it's fixed, at least), the API doesn't support it either.

Again, this is very specifically looking for the custom Content Status as noted in this article. Not the document status (current or archived) and not the classification level or anything except that very particular feature.

ETA: Also noting that this specific request (at least for filtering on that attribute) is here: https://jira.atlassian.com/browse/CONFCLOUD-74398 and not implemented in the 2+ years since it was requested.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events