Skip to content

Webhooks

Content

We support receiving content entities via webhooks. You can send multiple content entities per request, and for each entity you must choose whether they should be enabled or disabled.

You can find the Swagger documentation along with a 'Try it out' feature, if you have access to a Relewise dataset, on the following location.

Here is an example request:

json
{
    "entities": [
        {
            "id": "id1",
            "action": "Enable",
            "displayName": {
                "da": "Bedste batterier til elcykler",
                "en": "The best batteries for an electric bike"
            },
            "assortments": [
                1,
                2,
                3,
                4
            ],
            "categoryPaths": [
                {
                    "path": [
                        {
                            "id": "1",
                            "displayName": {
                                "da": "Alt om cykler",
                                "en": "All about bikes"
                            }
                        },
                        null,
                        {
                            "id": "2",
                            "displayName": {
                                "da": "Elcykler",
                                "en": "Electric bikes"
                            }
                        }
                    ]
                }
            ],
            "data": {
                "strings": {
                    "Type": "Page",
                    "Summary": "Learn all about the best bike batteries",
                },
                "numbers": {
                    "Version": 1,
                    "Weight": 1.5,
                },
                "booleans": {
                    "IsActive": true,
                },
                "multilingual": {
                    "Description": {
                        "da": "Bedste batterier til elcykler",
                        "en": "The best batteries for an electric bike"
                    }
                },
                "multilingualCollection": {
                    "Tags": {
                        "da": ["da-tag", "da-tag2"],
                        "en": ["en-tag", "en-tag2"]
                    }
                }
            }
        }
    ]
}

Don't know us? Don't worry - you can find more information about us, by visiting our main page www.relewise.com