Closed cristiboariu closed 6 years ago
I've tried to exclude contact field from GET request but its still listed:
contact
const listsResponse = await this.mailchimp.request({ method: 'get', path: '/lists', query: { exclude_fields: 'contact', count: 1 } });
count is working (it returns only 1 result) but not exclude_fields.
count
exclude_fields
Tried to exclude other fields, eg: id,name but still whole list objects are returned.
id,name
Can anybody let me know please what I'm doing wrong?
Found the issue. We have to name the fields by prepending them with lists property which is unbelievable: fields: 'lists.name.id,lists.id,lists.web_id', or: exclude_fields:'lists.contact
fields: 'lists.name.id,lists.id,lists.web_id',
exclude_fields:'lists.contact
I've tried to exclude
contact
field from GET request but its still listed:count
is working (it returns only 1 result) but notexclude_fields
.Tried to exclude other fields, eg:
id,name
but still whole list objects are returned.Can anybody let me know please what I'm doing wrong?