I am working with the CMS API and I am trying to add photos to a collection by using the API documentation and testing with Postman.
Some content on what I am trying to do:
I have a URL link that when clicked bring you to an image and I also have a title for the image. What I would like to be able to do if POST that image URL link and the image title to an Item inside a collection and they be able to have my site display the image on a page.
When reviewing the API docs under Items-> Create Collection Item I see that a field called type needs to be passed. Reviewing the Field Model I can see that it requires a FieldType and from that I can one called ExtFileRef which states “An object containing name (string) and URL (string) properties” which seems the best best to go with.
If I am to use the FieldType ExtFileRef, what custom field must be set inside the collection settings for that to work?
What would be the best approach at achieving the above using the CMS API?
I have attached a screenshot of me trying to use the ExtFileRef type but its failing due to validation, again I could be misinterpreting the documentation:
Thank you in advanced!