How to push 3rd party data to page type
So I have page type and not a custom type I read the docs its mentioned you can push data to only custom type. Is there a way to push data to page type?
How to push 3rd party data to page type
So I have page type and not a custom type I read the docs its mentioned you can push data to only custom type. Is there a way to push data to page type?
How can we push data to a page type in Prismic and publish it through the API? For instance, if the data is generated via an API and needs to be displayed on a page, how can we avoid manually going to the dashboard to publish it?
Is there a way to achieve this?
Hi @linkedinfy,
To integrate third-party data into your Prismic repository, you can use integration fields.
You can learn more about it and how it works in our documentation here:
Let us know if that works for you!
No this is different I know about the integration field, but again in the integration field you have to manually publish that page plus its only available for custom type and not for page type
Hi @linkedinfy ,
Integration fields are available for page types.
Hi how can I find the exact json object to send to the integration api for the page and following up my second question is there api to publish a page instead of manually going to dashboard and publishing it
Hey @linkedinfy! To publish pages without using the repository's UI, you can utilize the Migration API. This API allows you to send data in a format similar to the Document API, enabling you to implement a script that integrates third-party data into your documents.
However, please keep in mind that any documents created or updated through the Migration API will be added to a migration release in your repository. This means you’ll still need to access your repository eventually to review and publish the changes made via the Migration API.
Learn more:
So to answer your question you'll still need to re-publish the documents yourself.