get
parties
https://api.srgssr.ch/polis-api/v2 /parties
Name | Values | Description |
---|---|---|
lang |
The language of the multilanguage content. Must be one of "de" (German), "fr" (French), "it" (Italian), "rr" (Romansch), "en" (English) |
|
partyid |
The id of a specific party. If you provide this value, all of the following parameters will be ignored! |
|
locationid |
Provide the locationid if you wish to get only the parties of that location. You can get a List of all locations by fetching locations api service. |
|
electionid |
The id of a specific election. This will give you a list of all parties that are eligible for that election. You can get a list of elections and their id's through the cases api service. |
Name | Values | Description |
---|---|---|
accept |
|
|
Authorization
(required) |
Pass the access-key as a Bearer token in Authorization header. In the developer portal, Authorization header is attached on OAuth authentication. |
HTTP Code | Error Code | Description |
---|---|---|
400 | 400 |
Object of type BadRequest. |
401 | 401 |
Object of type TokenError |
403 | 403 |
Object of type QuotaViolation. |
404 | 404 |
Object of type UnknownResource. |
405 | 405 |
Object of type MethodNotAllowed. |
Resource Summary
Security |
Category |
---|---|
Parties |