Build Riddles in your projects

By default the project of the accessing API key will be used - this means that if you use an API key created in your personal project the Riddle will always be added to your personal space.

To change this you can specify the projectId in the root to create the Riddle in a specific project.

Example

The following example adds the built Riddle to the project with the ID 123:

{
    "type": "Poll",
    "projectId": 123,
    "build": {
        "title": "Favorite color poll",
        "blocks": [{
            "title": "What's your favorite color?",
            "type": "SingleChoice",
            "items": [
                "green",
                "red"
            ]
        }],
        "result": {
            "title": "Thank you",
            "description": "Thanks for your vote."
        }
    }
}