I tried varied API requests in confluence using the /search endpoint. I noticed that the expand query is not working just like it works for other endpoints (/space, /content).
For example in the below requests, there are _expandable properties that are not being expanded:
`https://abc.atlassian.net/wiki/rest/api/search?cql=type='attachment'&expand=extensions.fileType`
`https://abc.atlassian.net/wiki/rest/api/search?cql=type='attachment'&expand=metadata`
Am I missing something here ?
After hours of looking into discuss forum, I somehow found that you need to use word content before each expandable parameter.
So you need to change the above calls to:
`https://abc.atlassian.net/wiki/rest/api/search?cql=type='attachment'&expand=content.metadata`
It's a true marvel how Atlassian manages to keep the secrets of their documentation locked away, leaving us to stumble in the dark, blindly searching for the missing puzzle pieces.
ive been fighting this for the last two hours. i don't understand why they can't include a working example in the docs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.