Pagination does not work for /contacts/v1/attributeSetDefinitions
Trailblazer Community

Pagination does not work for /contacts/v1/attributeSetDefinitions

Marketing Cloud API , Marketing Cloud Audience/Contacts

Last updated 19 days ago ·Reference W-4408057 ·Reported By 2 users

In Review

Summary
Pagination does not work for /contacts/v1/attributeSetDefinitions. When returning results larger than 50 items, the same 50 items will be returned despite passing a page number in the call.

Repro
Run the below call.

GET https://www.exacttargetapis.com/contacts/v1/attributeSetDefinitions/?$page=1&access_token=66NLu7PNd3qqn5X8U64HHDFw

Note the results. Then run the call again but changing the page from 1 to 2.

GET https://www.exacttargetapis.com/contacts/v1/attributeSetDefinitions/?$page=2&access_token=66NLu7PNd3qqn5X8U64HHDFw

Note the results are the same between calls.

Workaround
Increase page size of the call (default is 50) so that more results are returned. Note this will make the calls run long and depending on your timeout threshold, it may not complete.

GET https://www.exacttargetapis.com/contacts/v1/attributeSetDefinitions/?$page=1&$pagesize=250&access_token=66NLu7PNd3qqn5X8U64HHDFw

Alternately, run the call below to get the schema ID.

https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/schemasCollection.htm

Then using the schema ID above, run the below call and specify an attribute set by Name.

https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/retrieveAttributeSetDefinitionsID.htm

Reported By (2)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.