Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In POSTMAN under the BODY section, edit the percentage under the crop section shown below using PUT command. Please note that all percentage values must be in integers, decimal values are not supported currently.

    PUT https://192.168.10.53/api/5.0/tiles/config/d39750f6-ab81-4870-8eb5-5134574f9c9f

...

BODY

Code Block
languagejson
{
    "data": {
        "label": "tile_aftercrop",
        "content_type": "Channel",
        "min_width": 32,
        "min_height": 32,
        "default_width": 300,
        "default_height": 200,
        "description": "description of the tile",
        "objects": [
            {
                "type": "Video",
                "left": {
                    "pixels": 0,
                    "percentage": 0
                },
                "right": {
                    "pixels": 0,
                    "percentage": 29
                },
                "top": {
                    "pixels": 0,
                    "percentage": 0
                },
                "bottom": {
                    "pixels": 0,
                    "percentage": 21
                },
                "max_width": {
                    "pixels": null,
                    "percentage": 100
                },
                "max_height": {
                    "pixels": null,
                    "percentage": 100
                },
                "alignment": "Top Left",
                "index": 1,
                "crop": {
                    "left": {
                        "percentage": 30
                    },
                    "right": {
                        "percentage": 25
                    },
                    "top": {
                        "percentage": 35
                    },
                    "bottom": {
                        "percentage": 20
                    }
                }
            }
        ]
    },
    "metadata": {}
}

...