Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Content Delivery Api - How to post content?

Vote:
 

Hello,

I do not see a way to post data to the headless CMS. Is this even possible? 

What i want to achieve is allowing users to send data to EPiServer database, in order for them to retrieve it later. 

#204611
Jun 11, 2019 10:24
Vote:
 

Hi Martin,

You can use DDS to store any data that is not Episerver related. There are some articles that you can refer-

https://world.episerver.com/documentation/Items/Developers-Guide/Episerver-Framework/7/Dynamic-Data-Store/Dynamic-Data-Store/

https://blog.setapp.pl/dds-implementation-episerver/

http://www.jondjones.com/learn-episerver-cms/episerver-developers-guide/episerver-core-concepts/an-introduction-to-the-episerver-dynamic-data-store

https://blog.setapp.pl/custom-data-episerver-dynamic-data-store/

Thanks

Ravindra

#204612
Jun 11, 2019 10:33
MartinNenseth - Jun 11, 2019 10:45
While the links you posted are very interesting for storing data, I don't see how it relates to posting and retrieving data through the content delivery API.

Ravindra S. Rathore - Jun 11, 2019 17:36
Yes, these posts give you storage but to put or pull data you need to expose your own APIs
Vote:
 

Hey Martin,

The Content Delivery API does not currently support POST or PUT of content.

What kind of content are you wanting users to save? You may need to roll your own API and storage repository.

/C#

#204624
Jun 11, 2019 17:26
Vote:
 

Hi Martin, short answer: No. It is not possible to post data to Content Delivery API.

The API is about delivering content (and the API documentation just in case you have missed that link in the documentation).

So your option would be to create your own API to add "content" by the users (and I assume in this case with users you mean the users browsing the headless site and not the users who can login to Episerver edit mode and that way could add content to the system) and then you would be able to deliver that content from the Content Delivery API.

(blah, Chris managed to post meanwhile I was still typing :D)

#204625
Edited, Jun 11, 2019 17:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.