Hi everyone!
I have a question regarding the Confluence API. Recently, the feature to convert pages into folders was introduced, but I'm having trouble retrieving the folder titles via the API.
We tried using the GET /folders/{id}
endpoint from the official documentation (https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-group-folder), but this doesn’t seem to give us the folder title as we expected.
Has anyone successfully retrieved folder titles using the API? If so, could you share the correct approach or endpoint?
Thanks in advance!
I just tried it and it returned the folder title for me with v2:
myJiraURL/wiki/api/v2/folders/{the folder id}
You could try using the content endpoint to confirm the type is "folder" for the ID passed:
myJiraJURL/wiki/rest/api/content/{the folder id}?expand=body.storage
Kind regards,
Bill
Hi @Bill Sheboy ,
Thanks for your response! Will test and get back to you if it works.
Best regards,
Gabriel
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.