Zum Hauptinhalt springen

Store new or update poll settings

POST/poll-settings/{userId}/
v2
POST
user-post-poll-status

Request

  • userIdstring
    required

Responses

application/json

The updated poll settings.

  • completedAtstring (date-time)
  • dontShowUntilstring (date-time)
  • ignoredAtstring (date-time)
  • shouldShowboolean
    required
  • statusstring (one of: completed, muted, ignored, new)
    required
  • userIdstring
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"status":"completed","userId":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/poll-settings/string