Streaming live at 10am (PST)

Create New Collection Item : err":"ValidationError: 'fields' is required"


#1

When i try to submit request to create a CMS item it’s display Error
{“msg”:"‘fields’ is required",“code”:400,“name”:“ValidationError”,“path”:"/collections/5b8fc640345da665caccdcd6/items",“err”:“ValidationError: ‘fields’ is required”}400

i try to submit data array with curl post method :

Here is my requested array format:

{ “fields”: { “name”: “99 Norfolk Street”, “slug”: “99-norfolk-street”, “_archived”: false, “_draft”: false, “property-id”: 10398, “address-1”: “SA1 6JE”, “town”: “Swansea”, “postcode”: “SA1 6JE”, “property-location”: “Mount Pleasant”, “display-address”: “Norfolk Street, SA1”, “location-town”: “Swansea” “location-county”: “Swansea” “price-text”: “£250 Monthly”, “price-monthly”: “250”, “pre-reduction-price”: “”, “beds”: 6, “baths”: 1, “receptions”: 1, “status”: “AV_LET”, “long-description”: " Available for the 2018/2019 academic year Charles Perrett Property are delighted to present this spacious six bedroom student property for rent. The property has an open plan kitchen with large lounge and benefits from five double bedrooms and one good sized single (Don’t worry the rent is cheaper on this room!). There is also a bathroom, WC and separate shower room. Viewing comes highly recommended! ", “short-description”: "A spacious six bedroom student property for rent. The property has an open plan kitchen with large lounge and benefits from five double bedrooms and one good sized single (Don’t worry the rent is cheaper on this room!). ", “garden”: “”, “remaining-lease”: “”, “price-reduced-date”: “”, “available-from”: “01/07/2018”, “furnished”: “F”, “photo-1”: { “fileId”: “580e63fe8c9a982ac9b8b749”, “url”: “https://d1otoma47x30pg.cloudfront.net/580e63fc8c9a982ac9b8b744/580e63fe8c9a982ac9b8b749_1477338110257-image20.jpg” }, “updated-on”: “2018-09-12T08:11:14.269Z”, “updated-by”: “Person_5a95c05c41e04900018a4914”, “created-on”: “2018-09-10T11:17:50.440Z”, “created-by”: “Person_5a95c05c41e04900018a4914”, “published-on”: “”, “published-by”: “” }

help me to understand.


#2

Can you post the full curl command you ran which resulted in that error (with the API token censored!) please?