Xibo 2.0.0 regions id not matching


#1

So i have this layout

[
    {
        "layoutId": 429,
        "ownerId": 1,
        "campaignId": 56,
        "parentId": 428,
        "publishedStatusId": 2,
        "publishedStatus": "Draft",
        "backgroundImageId": null,
        "schemaVersion": 3,
        "layout": "test",
        "description": null,
        "backgroundColor": "#000000",
        "createdDt": "2019-05-20 10:30:16",
        "modifiedDt": "2019-05-20 10:43:04",
        "status": 4,
        "retired": 0,
        "backgroundzIndex": 0,
        "width": 3840,
        "height": 2160,
        "displayOrder": null,
        "duration": 10,
        "statusMessage": [
            "Empty Region"
        ],
        "regions": [
            {
                "regionId": 1769,
                "layoutId": 429,
                "ownerId": 1,
                "name": "test-1",
                "width": "1920",
                "height": "1080",
                "top": "0",
                "left": "0",
                "zIndex": 0,
                "regionOptions": [],
                "permissions": [],
                "duration": "10",
                "tempId": null,
                "regionPlaylist": {
                    "playlistId": 1770,
                    "ownerId": 1,
                    "name": "test-1",
                    "regionId": 1769,
                    "isDynamic": 0,
                    "filterMediaName": null,
                    "filterMediaTags": null,
                    "createdDt": "2019-05-20 10:30:16",
                    "modifiedDt": "2019-05-20 10:40:00",
                    "duration": "10",
                    "tags": [],
                    "widgets": [
                        {
                            "widgetId": 2412,
                            "playlistId": 1770,
                            "ownerId": 1,
                            "type": "image",
                            "duration": 10,
                            "displayOrder": "1",
                            "useDuration": 0,
                            "calculatedDuration": 10,
                            "createdDt": 1558344493,
                            "modifiedDt": 1558344616,
                            "fromDt": 0,
                            "toDt": 2147483647,
                            "widgetOptions": [
                                {
                                    "widgetId": 2412,
                                    "type": "attrib",
                                    "option": "scaleType",
                                    "value": "center"
                                }
                            ],
                            "mediaIds": [
                                "32"
                            ],
                            "audio": [],
                            "permissions": [],
                            "playlist": "test-1",
                            "tempId": null,
                            "isNew": false,
                            "name": "BK-PT-menugrelha_menucrocante-05012019.png",
                            "tags": [],
                            "isEditable": true,
                            "isDeletable": true,
                            "isPermissionsModifiable": true,
                            "isValid": 1
                        }
                    ],
                    "permissions": [],
                    "tempId": null,
                    "owner": "xibo_admin",
                    "groupsWithPermissions": null
                },
                "isEditable": true,
                "isDeletable": true,
                "isPermissionsModifiable": true
            },
            {
                "regionId": 1772,
                "layoutId": 429,
                "ownerId": 1,
                "name": "test-2",
                "width": "250",
                "height": "250",
                "top": "50",
                "left": "50",
                "zIndex": 0,
                "regionOptions": [],
                "permissions": [],
                "duration": "0",
                "tempId": null,
                "regionPlaylist": {
                    "playlistId": 1773,
                    "ownerId": 1,
                    "name": "test-2",
                    "regionId": 1772,
                    "isDynamic": 0,
                    "filterMediaName": null,
                    "filterMediaTags": null,
                    "createdDt": "2019-05-20 10:43:03",
                    "modifiedDt": "2019-05-20 10:43:03",
                    "duration": "0",
                    "tags": [],
                    "widgets": [],
                    "permissions": [],
                    "tempId": null,
                    "owner": "xibo_admin",
                    "groupsWithPermissions": null
                },
                "isEditable": true,
                "isDeletable": true,
                "isPermissionsModifiable": true
            }
        ],
        "tags": [],
        "permissions": [],
        "campaigns": [],
        "owner": "xibo_admin",
        "groupsWithPermissions": null
    }
]

And i’m trying to add a datasetview to region 1772 and its giving me this

Also when i add to 1770 region it adds to the 1769 region and when i add to the 1773 region it adds to the 1772 region

What is happening and how to fix this situation.


#2

In v2 you add to the region playlist, not to the region - in your case that is ID 1773