Skip to content

Conversation

milkovsky
Copy link

@milkovsky milkovsky commented Nov 22, 2024

Currently it is not possible to set the projectId using the SDK during Riddle creation.

From the documentation::

{
    "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."
        }
    }
}

@philipp-riddle
Copy link
Member

Hi milkovsky!
Thanks for your pull request and sorry for the delay! You are totally right. I will merge and release a new version.

Cheers,
Philipp

@philipp-riddle philipp-riddle merged commit 87b4530 into riddle-com:main Dec 5, 2024
@milkovsky milkovsky deleted the projectId branch January 7, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants