List
Lists are curated collections of accounts, contacts, or opportunities in Lightfield. Each list contains entities of a single type.
Create a list
client.list.create(ListCreateParams { fields, relationships } body, RequestOptionsoptions?): ListCreateResponse { id, createdAt, fields, httpLink }
POST/v1/lists
Update a list
client.list.update(stringid, ListUpdateParams { fields, relationships } body, RequestOptionsoptions?): ListUpdateResponse { id, createdAt, fields, httpLink }
POST/v1/lists/{id}
Retrieve a list
client.list.retrieve(stringid, RequestOptionsoptions?): ListRetrieveResponse { id, createdAt, fields, httpLink }
GET/v1/lists/{id}
List lists
client.list.list(ListListParams { limit, offset } query?, RequestOptionsoptions?): ListListResponse { data, object, totalCount }
GET/v1/lists
List accounts in a list
client.list.listAccounts(stringlistID, ListListAccountsParams { limit, offset } query?, RequestOptionsoptions?): ListListAccountsResponse { data, object, totalCount }
GET/v1/lists/{listId}/accounts
List contacts in a list
client.list.listContacts(stringlistID, ListListContactsParams { limit, offset } query?, RequestOptionsoptions?): ListListContactsResponse { data, object, totalCount }
GET/v1/lists/{listId}/contacts
List opportunities in a list
client.list.listOpportunities(stringlistID, ListListOpportunitiesParams { limit, offset } query?, RequestOptionsoptions?): ListListOpportunitiesResponse { data, object, totalCount }
GET/v1/lists/{listId}/opportunities
ModelsExpand Collapse
ListCreateResponse { id, createdAt, fields, httpLink }
ListCreateResponse { id, createdAt, fields, httpLink }
ListListAccountsResponse { data, object, totalCount }
ListListAccountsResponse { data, object, totalCount }
data: Array<Data>Array of entity objects for the current page.
data: Array<Data>
Array of entity objects for the current page.
fields: Record<string, Fields>Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
fields: Record<string, Fields>
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
ListListContactsResponse { data, object, totalCount }
ListListContactsResponse { data, object, totalCount }
data: Array<Data>Array of entity objects for the current page.
data: Array<Data>
Array of entity objects for the current page.
fields: Record<string, Fields>Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
fields: Record<string, Fields>
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
ListListOpportunitiesResponse { data, object, totalCount }
ListListOpportunitiesResponse { data, object, totalCount }
data: Array<Data>Array of entity objects for the current page.
data: Array<Data>
Array of entity objects for the current page.
fields: Record<string, Fields>Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
fields: Record<string, Fields>
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
ListListResponse { data, object, totalCount }
ListListResponse { data, object, totalCount }
data: Array<Data>Array of list objects for the current page.
data: Array<Data>
Array of list objects for the current page.
ListRetrieveResponse { id, createdAt, fields, httpLink }
ListRetrieveResponse { id, createdAt, fields, httpLink }
ListUpdateResponse { id, createdAt, fields, httpLink }
ListUpdateResponse { id, createdAt, fields, httpLink }