I have a CSV and here is the contents.
id,name,group
112 - Sao Paulo,112 - Sao Paulo,City
I have created a schema called location and its set up like so
{
"id": "string",
"data": {
"id": {
"iv": "string"
},
"name": {
"en": "string"
},
"group": {
"iv": [
"string"
]
}
},
"dataDraft": {
"id": {
"iv": "string"
},
"name": {
"en": "string"
},
"group": {
"iv": [
"string"
]
}
},
"version": 0,
"created": "2019-10-01T14:03:51Z",
"createdBy": "string",
"lastModified": "2019-10-01T14:03:51Z",
"lastModifiedBy": "string",
"status": "string"
}
When using this command with the CLI
sq content import location result.csv --fields=id,name.en=name,group.iv=group --delimiter=,
I get the following error
Squidex Request failed: {"message":"Failed to create content.","details":["group: Not a valid value."],"statusCode":400}
However the format looks correct to me, could someone provide an example of referencing a referenceField when importing from CSV?
Thanks