Empty "campigns" field in /api/layout response

I’m assigning layouts to campaing via CMS UI (linux, Version 1.8.12) and expect “campaigns” field in “/api/layout” response will contain list of campigns which layout is assigned to. But it is empty - []

Assined layout to “o2o” campign:

response /api/layout:
‘layoutId’: 5, ‘ownerId’: 1, ‘campaignId’: 6, ‘backgroundImageId’: None, ‘schemaVersion’: 3, ‘layout’: ‘android’, ‘description’: None, ‘backgroundColor’: ‘#000000’, ‘createdDt’: ‘2019-04-07 22:24:45’, ‘modifiedDt’: ‘2019-07-15 23:01:00’, ‘status’: 1, ‘retired’: 0, ‘backgroundzIndex’: 0, ‘width’: 1920, ‘height’: 1080, ‘displayOrder’: None, ‘duration’: 10, ‘statusMessage’: None, ‘regions’: [], ‘tags’: ‘video,o2o,android’, ‘permissions’: [], ‘campaigns’: [], ‘owner’: ‘xibo_admin’, ‘groupsWithPermissions’: ‘Everyone’}

1 Like

The correct API call according to your message needs to have the following parameters (example with his layoutId) : /api/layout?embed=regions,campaigns&layoutId=5
We hope this helps :slight_smile:

1 Like

Yes, if request specific Layout I get full data. Thanks!

1 Like