This article details how to add a content status to a Confluence page. Is the added content status available via API?
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
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: current
, archived
, trashed
, deleted
, historical
, draft) 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 S
tatuses like "Verified" or "Pending Updates" (see screenshot) and I'd like to pull those via API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I edited it my previous response the endpoint should be classifiaction-levels
But this gives a feature disabled result..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.