Reputation: 11
I need to push an object to prismic.io. For example, I want to send a simple object like a string to the CMS.
I don't see any hints in the documentation that can help me achieve this. I'm using angular 7.
I already made my custom type, I can get the data I created with the CMS with prismatic predicates but can't send any data.
Upvotes: 1
Views: 1526
Reputation: 75
no you can not do a write api. Its a read system, the only way to input is via their writing room or import (which is in writing room as well)
Upvotes: 1
Reputation: 67
(full disclosure I'm working at Prismic ;) ) So the answer is: you can import data into Prismic. But it's not through a write API.
We want to introduce this at some point, but we also believe we can bring better solutions then just a write API for specific cases (like importing legacy content, connecting Prismic with an external data base, or with a translation service, etc.) So our plan is to solve the most common use-cases of a "write API" in a more adapted/cleaner way, and then provide a write API afterwards.
Two solutions were already implemented: 1/ If you're looking to migrate existing content from another system into Prismic, you should check out our Import/Export feature: https://intercom.help/prismicio/import-export
2/ If you have content that lives in another system or in a custom API, it is possible to integrate this with Prismic using our Integration Fields feature: https://intercom.help/prismicio/integration-fields
3/ If what you want to do is not covered by these two solutions please let me know, that would be super helpful!
Upvotes: 1