Creates a new list. The $name and $objectType fields are required.
Supports idempotency via the Idempotency-Key header.
Required scope: lists:create
Rate limit category: Write
Create a list
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
list_create_response = client.list.create(
fields={
"name": "$name",
"object_type": "$objectType",
},
)
print(list_create_response.id){
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}