/api/v1/media
This is the api {“title”:“some title”,"https://picsum.photos/200/300":"",“fileNamefileName”:{“fileName”:"good}} please help me,i need create media with image
/api/v1/media
This is the api {“title”:“some title”,"https://picsum.photos/200/300":"",“fileNamefileName”:{“fileName”:"good}} please help me,i need create media with image
There are 2 step required to add an image to media
www.example.com/api/v1/media?_response=true
with body
{
„mediaFolderId“: „aa387d75254946bdbd27cb018e433da0“
}
you will get the response with id which will be act as mediaId.
and with body
{
„url“:„https://upload.wikimedia.org/wikipedia/commons/8/8b/BD_4C_Cartoon_(PSF).jpg“
}
and thats it.