Hello @mikhail.smal,
Welcome to the Prismic Forum and thanks for posting to us.
Regarding your questions, please find respectively:
-
You will need to use POST request to add or modify items to your IF endpoint.
-
Here is an example of the JSON schema. The "blob" attribute is where you add the data for your items that will be returned in the Prismic API.
You can read more about the required fields in our Custom API documentation.
{
"id": "0",
"title": "My Item number 0",
"description": "Lorem ipsum",
"image_url": "https://if-test-custom-api.herokuapp.com/asset/0",
"last_update": 1591670070,
"blob": {
"lorem": "ipsum",
"dolor": "sit"
}
},
- You'll need to include a Bearer token authorization header when sending the POST request. Your Bearer token can be found by viewing the Integration Field settings.
Let me know if I understood your question correctly or you are looking for something else.
Thanks,
Priyanka