cases

GET

cases

Get information about cases (Wahl- / Abstimmungstage)

https://api.srgssr.ch/polis-api/v2 /cases

Name Values Description
lang

The language of the multilanguage content. Must be one of "de" (German), "fr" (French), "it" (Italian), "rr" (Romansch), "en" (English)

date

If you provide a date in the format YYYY-MM-DD the list of cases will be filtered. You receive only cases on that date or the No Data XML if there are no cases at that date.

listAllCases

If you set this Parameter to "true", all cases get Listet. This parameter slows down the request and should not be done more than once a day.

Name Values Description
accept

Authorization

Pass the access-key as a Bearer token in Authorization header. In the developer portal, Authorization header is attached on OAuth authentication. you can use a pre-existing bearer token here or generate one using the button below before sending the request.

HTTP Basic

OAuth 2.0

API Key

Reset

Working...

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

HTTP Code Error Code Description
400

Object of type BadRequest.

401

Object of type TokenError

403

Object of type QuotaViolation.

404

Object of type UnknownResource.

405

Object of type MethodNotAllowed.

Resource Summary

Security

Category

Cases