I am trying to use the Python SDK to programmatically create entries. I am running into errors when trying to update List type fields. Is my syntax off? I have created entries using this code already so I know it’s connecting and uploading fine. Im positive it is a syntax error. Code will be below.
from handler.toolkit import *
import numpy as np
import codecs, json
entries = entryClient.entries()
entry_attributes = {
‘content_type_id’: ‘seanTest2’,
‘fields’: {
‘listField’: {
‘en-US’: []
}
}
}
new_entry = client.entries(‘oqdu9tolm6fg’, ‘master’).create(
‘new_entry_id’,
entry_attributes
)
new_entry.save()