How Can We Help?
Webservice: How Can I Get Related ContentWebservice: How Can I Get Related Content
What
You can use the webservice to fetch data from Pure. There is a endpoint for each content type, but there is not an endpoint for related data specifically.
We do not have an option for this in the API, but with the existing webservice and correct parameters it is possible to retrieve the data in one call.
How
Here is an example on Projects and related Research output.
- Call the project endpoint, to get the related Research output.
- Use the fields options in the webservice, and specify what fields you want, here you can use .ref to get fields from the related object.
- E.g. set the fields to relatedResearchOutputs.relatedResearchOutput.ref.*
- Use the fields options in the webservice, and specify what fields you want, here you can use .ref to get fields from the related object.
https://[server.name]/ws/api/517/projects/[insert Pure projectid]?idClassification=pure&fields=relatedResearchOutputs.relatedResearchOutput.ref.*&apiKey=[insertkey]
- This should give you all the fields from the linked Research outputs (if there are any).
- If you know what fields you need, you can replace .* with specific fields (e.g. you might only need the title and the category)
relatedResearchOutputs.relatedResearchOutput.ref.title,relatedResearchOutputs.relatedResearchOutput.ref.category
- If you know what fields you need, you can replace .* with specific fields (e.g. you might only need the title and the category)
Note: The fields option only works with REST calls, so you can not do this in a SOAP call.
More information
Note: Some of this information is for internal use only and might not be accessible.
Updated at July 27, 2024