strapi-plugin-navigation icon indicating copy to clipboard operation
strapi-plugin-navigation copied to clipboard

Fetch Audience data from Content API

Open dannyghub opened this issue 3 years ago • 1 comments

Hi,

How do I fetch data from the 'audience', here's an example of the response in API:

{
        "order": 1,
        "id": 7,
        "title": "Item",
        "type": "INTERNAL",
        "path": "item",
        "externalPath": null,
        "uiRouterKey": "item",
        "menuAttached": true,
        "collapsed": false,
        "createdAt": "2022-09-08T15:40:24.058Z",
        "updatedAt": "2022-09-13T12:09:19.539Z",
        "audience": [
            "item-1"
        ]
}

I cannot see any way, using the Content API to fetch the content from the 'audience'?

dannyghub avatar Sep 14 '22 14:09 dannyghub

Hi @dannyghub,

Unfortunately, there is no way of fetching an audience with Content API.

ltsNotMike avatar Sep 26 '22 07:09 ltsNotMike

Closing due to lack of response. Please reopen if needed.

ltsNotMike avatar Oct 17 '22 08:10 ltsNotMike