Download OpenAPI specification:Download
| Admin | Creator | TrustPerson | Candidate | Anonymous | |
|---|---|---|---|---|---|
| Election | CRUD | R | R | R | R |
| Candidate | CRUD | CRUD | CRUD | RU | R |
| CandidateVotes | CRUD | CRUD | CRUD | RU | R |
| Party | CRUD | CRUD | RU | R | R |
| PartyVotes | CRUD | CRUD | RU | R | R |
| Application | CRUD | CRUD | R | R | R |
| Theses | CRUD | CRUD | R | R | R |
| Votings | R | CR | CRU | CRU | CR |
| Trustperson | CRUD | CRUD | CRUD | R | - |
| Creator | CRUD | CRUD | R | R | - |
| Admins | CRUD | R | - | - | - |
| Users | CRUD | CR | CR | RUD | - |
C = Create
R = Read
U = Update
D = Delete
We currently use Firebase as Authentication Provider. In order to use parts of the API, you have to have a valid account and role. Retrieve this idToken here https://firebase.google.com/docs/reference/rest/auth#section-sign-in-email-password
| Security Scheme Type | HTTP |
|---|---|
| HTTP Authorization Scheme | bearer |
| Bearer format | "JWT" |
Fetching elections is allowed for the creator and admin role.
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=Bundestagswahl Search for election name |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "election_date": "2021-09-26",
- "location": "Deutschland",
- "name": "Bundestagswahl",
- "status": 0,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}Creating elections is allowed for the admin role.
| election_date | string <date> |
| location | string |
| name | string |
{- "election_date": "2021-09-26",
- "location": "Deutschland",
- "name": "Bundestagswahl"
}{- "election_date": "2021-09-26",
- "location": "Deutschland",
- "name": "Bundestagswahl",
- "status": 0,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching one single election by its ID is allowed for everyone.
| electionId required | integer <int64> Numeric ID of the election to get |
{- "election_date": "2021-09-26",
- "location": "Deutschland",
- "name": "Bundestagswahl",
- "status": 0,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Updating one single election by its ID is allowed for the admin role.
| electionId required | integer <int64> Numeric ID of the election to put |
| election_date | string <date> |
| location | string |
| name | string |
{- "election_date": "2021-09-26",
- "location": "Deutschland",
- "name": "Bundestagswahl"
}{- "election_date": "2021-09-26",
- "location": "Deutschland",
- "name": "Bundestagswahl",
- "status": 0,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Deleting one single election by its ID is allowed for the admin role.
| electionId required | integer <int64> Numeric ID of the election to delete |
{- "code": "400",
- "message": "Malformed request"
}Fetching applications is for one specific election is only allowed for the admin role.
| electionId required | integer Example: 1 Defines the election |
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=Bundestagswahl Search for application title |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "election_id": 123,
- "cluster_id": 456,
- "theme_id": 789,
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "launch_date": "2021-10-05T06:00:00.000Z",
- "sundown_date": "2021-10-05T06:00:00.000Z",
- "id": 123,
- "status": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}[- {
- "election_date": "2024-07-14",
- "applications": [
- {
- "id": 123,
- "title": "Example Title",
}
]
}
]Fetching applications is allowed for admin
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=VOTO Search for application title |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "election_id": 123,
- "cluster_id": 456,
- "theme_id": 789,
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "launch_date": "2021-10-05T06:00:00.000Z",
- "sundown_date": "2021-10-05T06:00:00.000Z",
- "id": 123,
- "status": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}Creating applications is allowed for admin
| election_id required | integer |
| cluster_id required | integer |
| theme_id | integer |
| title required | string |
| subtitle | string |
| description | string |
| website | string |
| url | string |
| launch_date | string <date-time> |
| sundown_date | string <date-time> |
| configuration | string This is the url, where you find your individual configuration for the VOTO VAA |
{- "election_id": 123,
- "cluster_id": 456,
- "theme_id": 789,
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "launch_date": "2021-10-05T06:00:00.000Z",
- "sundown_date": "2021-10-05T06:00:00.000Z",
}{- "election_id": 123,
- "cluster_id": 456,
- "theme_id": 789,
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "launch_date": "2021-10-05T06:00:00.000Z",
- "sundown_date": "2021-10-05T06:00:00.000Z",
- "id": 123,
- "status": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}[- {
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Creating clusters is allowed for admin
| title required | string |
| subtitle | string |
| description | string |
| url | string |
{- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
}{- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching one cluster is allowed for everyone
| clusterId required | integer <int64> Numeric ID of the Cluster |
{- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Updating one cluster is allowed for admin and creator (for its own applications)
| clusterId required | integer <int64> Numeric ID of the Cluster |
| title required | string |
| subtitle | string |
| description | string |
| url | string |
{- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
}{- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Updating one cluster is allowed for admins
| clusterId required | integer <int64> Numeric ID of the Cluster |
| title required | string |
| subtitle | string |
| description | string |
| url | string |
{- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
}{- "code": "400",
- "message": "Malformed request"
}Fetching one application is allowed for everyone
| applicationId required | integer <int64> Numeric ID of the VAA |
{- "election_id": 123,
- "cluster_id": 456,
- "theme_id": 789,
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "launch_date": "2021-10-05T06:00:00.000Z",
- "sundown_date": "2021-10-05T06:00:00.000Z",
- "id": 123,
- "status": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Updating one application is allowed for admin and creator (for its own applications)
| applicationId required | integer <int64> Numeric ID of the VAA |
| election_id required | integer |
| cluster_id required | integer |
| theme_id | integer |
| title required | string |
| subtitle | string |
| description | string |
| website | string |
| url | string |
| launch_date | string <date-time> |
| sundown_date | string <date-time> |
| configuration | string This is the url, where you find your individual configuration for the VOTO VAA |
{- "election_id": 123,
- "cluster_id": 456,
- "theme_id": 789,
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "launch_date": "2021-10-05T06:00:00.000Z",
- "sundown_date": "2021-10-05T06:00:00.000Z",
}{- "election_id": 123,
- "cluster_id": 456,
- "theme_id": 789,
- "title": "Example Title",
- "subtitle": "Example Subtitle",
- "description": "Lorem ipsum dolor sed amet.",
- "launch_date": "2021-10-05T06:00:00.000Z",
- "sundown_date": "2021-10-05T06:00:00.000Z",
- "id": 123,
- "status": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Deleting one application is allowed for admin and creator (for its own applications)
| applicationId required | integer <int64> Numeric ID of the VAA |
{- "code": "400",
- "message": "Malformed request"
}Fetching one applications config is allowed for everyone
| applicationId required | integer <int64> Numeric ID of the VAA |
{- "introduction": {
- "background": "voto://configuration/default/bg1.jpg"
}, - "sponsors": [
- {
- "name": "string",
- "image": "string",
- "href": "string"
}
], - "cluster": {
- "instances": [
- 123
], - "title": "Cluster title",
- "description": "Cluster description"
}, - "ads": {
- "html": "string",
- "link": "string",
- "theme": "string"
}
}Fetching one applications config is allowed for everyone
| applicationId required | integer <int64> Numeric ID of the VAA |
| configuration | string <binary> |
{- "introduction": {
- "background": "voto://configuration/default/bg1.jpg"
}, - "sponsors": [
- {
- "name": "string",
- "image": "string",
- "href": "string"
}
], - "cluster": {
- "instances": [
- 123
], - "title": "Cluster title",
- "description": "Cluster description"
}, - "ads": {
- "html": "string",
- "link": "string",
- "theme": "string"
}
}Deleting one applications config images is allowed for admins and creator of this application
| applicationId required | integer <int64> Numeric ID of the VAA |
| name | string |
{- "code": "400",
- "message": "Malformed request"
}Fetching one applications theses is allowed for everyone
| applicationId required | integer <int64> Numeric ID of the VAA |
[- {
- "lamguage": "de",
- "theses": [
- {
- "title": "Lorem ipsum dolor sed amet",
- "text": "Lorem ipsum dolor sed amet",
- "statement_id": 123,
- "translation_id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]
}
]Fetching one applications theses is allowed for everyone
| applicationId required | integer <int64> Numeric ID of the VAA |
| language required | string Default: "" Example: de Language identification string, e.g. 'de' |
[- {
- "title": "Lorem ipsum dolor sed amet",
- "text": "Lorem ipsum dolor sed amet",
- "statement_id": 123,
- "translation_id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Adding application theses is allowed for admin and creator (for its own applications)
| applicationId required | integer <int64> Numeric ID of the VAA |
| language required | string Default: "" Example: de Language identification string, e.g. 'de' |
| title | string |
| text | string <text> |
{- "title": "Lorem ipsum...",
- "text": "Lorem ipsum dolor sed amet"
}{- "title": "Lorem ipsum dolor sed amet",
- "text": "Lorem ipsum dolor sed amet",
- "statement_id": 123,
- "translation_id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching one applications these is allowed for everyone
| applicationId required | integer <int64> Numeric ID of the VAA |
| language required | string Default: "" Example: de Language identification string, e.g. 'de' |
| theseId required | integer <int64> Example: 123 Numeric ID of the these |
{- "title": "Lorem ipsum dolor sed amet",
- "text": "Lorem ipsum dolor sed amet",
- "statement_id": 123,
- "translation_id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Updating application theses is allowed for admin and creator (for its own applications)
| applicationId required | integer <int64> Numeric ID of the VAA |
| language required | string Default: "" Example: de Language identification string, e.g. 'de' |
| theseId required | integer <int64> Numeric ID of the these |
| title | string |
| text | string <text> |
{- "title": "Lorem ipsum...",
- "text": "Lorem ipsum dolor sed amet"
}{- "title": "Lorem ipsum dolor sed amet",
- "text": "Lorem ipsum dolor sed amet",
- "statement_id": 123,
- "translation_id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Adding translation for specific these is allowed for admin and creator (for its own applications)
| applicationId required | integer <int64> Numeric ID of the VAA |
| language required | string Default: "" Example: de Language identification string, e.g. 'de' |
| theseId required | integer <int64> Numeric ID of the these - not the translation, but the statementID ! |
| statement_id | integer <int64> identifies the statement id |
| title | string |
| text | string <text> |
{- "statement_id": 123,
- "title": "Lorem ipsum...",
- "text": "Lorem ipsum dolor sed amet"
}{- "title": "Lorem ipsum dolor sed amet",
- "text": "Lorem ipsum dolor sed amet",
- "statement_id": 123,
- "translation_id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Deleting a specific these for one application is allowed for admin, creator (within his application)
| applicationId required | integer <int64> Numeric ID of the application |
| language required | integer <int64> Language identification string, e.g. 'de' |
| theseId required | integer <int64> Numeric ID of the these |
{- "code": "400",
- "message": "Malformed request"
}Create new custom event for application
[- 0
]{- "code": "400",
- "message": "Malformed request"
}Creation of votings is allowed for everyone. Please note, that we still prevent CORS requests.
Array of objects |
{- "votes": [
- {
- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum"
}
]
}{- "votes": [
- {
- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum"
}
], - "id": 123,
- "application_id": 456,
- "matches": [
- {
- "match": {
- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}, - "match_type": "candidate",
- "score": 99.7
}
], - "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Management endpoints for roles within the VOTO platform. Please note, that candidates are handled in /elections endpoints as they are the only entity which is directly related to a match, whereas a party can have multiple TrustPersons
Fetching admins is allowed for admins
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=admins mail Search for admins email |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "user_id": 123,
- "id": 123,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}Creation of admins is allowed for admins
| user_id | integer <int64> user_id which should be promoted to an admin |
{- "user_id": 123
}{- "user_id": 123,
- "id": 123,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching admins is allowed for admins
| adminId required | integer <int64> Numeric ID of the admin |
{- "user_id": 123,
- "id": 123,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Creation of users is allowed for admins, creators, and trustpersons
| title | string |
| first_name required | string |
| last_name required | string |
| gender_id required | integer <int64> |
| email required | string <email> |
| birthday | string <date> |
| phone | integer |
| address1 | string |
| address2 | string |
| job | string |
| zipcode | integer |
| city | string |
| status | integer <int64> Status of user |
{- "title": "Dr.",
- "first_name": "John",
- "last_name": "Doe",
- "gender_id": 123,
- "email": "john@doe.com",
- "birthday": "1993-12-27",
- "phone": 1234567890,
- "address1": "Johnstreet 42",
- "address2": "2nd floor",
- "job": "CEO",
- "zipcode": 12345,
- "city": "Stuttgart",
- "status": 1
}{- "title": "Dr.",
- "first_name": "John",
- "last_name": "Doe",
- "gender_id": 123,
- "email": "john@doe.com",
- "birthday": "1993-12-27",
- "phone": 1234567890,
- "address1": "Johnstreet 42",
- "address2": "2nd floor",
- "job": "CEO",
- "zipcode": 12345,
- "city": "Stuttgart",
- "status": 1,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching users is allowed for admins
| userId required | integer <int64> Numeric ID of the user |
{- "title": "Dr.",
- "first_name": "John",
- "last_name": "Doe",
- "gender_id": 123,
- "email": "john@doe.com",
- "birthday": "1993-12-27",
- "phone": 1234567890,
- "address1": "Johnstreet 42",
- "address2": "2nd floor",
- "job": "CEO",
- "zipcode": 12345,
- "city": "Stuttgart",
- "status": 1,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Updating user is allowed for admins and the user itself.
| userId required | integer <int64> Numeric ID of the VAA |
| title | string |
| first_name required | string |
| last_name required | string |
| gender_id required | integer <int64> |
| email required | string <email> |
| birthday | string <date> |
| phone | integer |
| address1 | string |
| address2 | string |
| job | string |
| zipcode | integer |
| city | string |
| status | integer <int64> Status of user |
{- "title": "Dr.",
- "first_name": "John",
- "last_name": "Doe",
- "gender_id": 123,
- "email": "john@doe.com",
- "birthday": "1993-12-27",
- "phone": 1234567890,
- "address1": "Johnstreet 42",
- "address2": "2nd floor",
- "job": "CEO",
- "zipcode": 12345,
- "city": "Stuttgart",
- "status": 1
}{- "title": "Dr.",
- "first_name": "John",
- "last_name": "Doe",
- "gender_id": 123,
- "email": "john@doe.com",
- "birthday": "1993-12-27",
- "phone": 1234567890,
- "address1": "Johnstreet 42",
- "address2": "2nd floor",
- "job": "CEO",
- "zipcode": 12345,
- "city": "Stuttgart",
- "status": 1,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Change user password or mail
| userId required | integer <int64> Numeric ID of the user |
| action required | string Enum: "email" "password" |
| value required | string The value for either the new password or the new mail |
{- "action": "email",
- "value": "newmail@voto.vote"
}{- "code": "400",
- "message": "Malformed request"
}Inviting users is allowed for admins, creator and trustpersons
| mail required | string |
{- "mail": "foo@bar.com"
}{- "UserId": 1,
- "New": true
}{- "User": {
- "title": "Dr.",
- "first_name": "John",
- "last_name": "Doe",
- "gender_id": 123,
- "email": "john@doe.com",
- "birthday": "1993-12-27",
- "phone": 1234567890,
- "address1": "Johnstreet 42",
- "address2": "2nd floor",
- "job": "CEO",
- "zipcode": 12345,
- "city": "Stuttgart",
- "status": 1,
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}, - "Creator": {
- "Id": 1,
- "Title": "string",
- "LaunchDate": "1993-12-27"
}, - "TrustPerson": {
- "Id": 1,
- "Title": "string",
- "LaunchDate": "1993-12-27"
}, - "Candidate": {
- "Id": 1,
- "Title": "string",
- "LaunchDate": "1993-12-27"
}, - "Candidates": [
- {
- "Id": 1,
- "ApplicationId": 1
}
], - "TrustPersons": [
- {
- "Id": 1,
- "ShortName": "string",
- "DetailedName": "string",
- "TrustPersonId": 1,
- "ApplicationId": 1
}
]
}Fetching creator is allowed for admins and creator.
| applicationId required | integer <int64> Numeric ID of the VAA |
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=creators mail Search for creators email |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "user_id": 123,
- "id": 123,
- "application_id": 456,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}Creation of creator is allowed for admins and creator.
| applicationId required | integer <int64> Numeric ID of the VAA |
| user_id | integer <int64> |
{- "user_id": 123
}{- "user_id": 123,
- "id": 123,
- "application_id": 456,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching creator is allowed for admins and creator.
| applicationId required | integer <int64> Numeric ID of the VAA |
| creatorId required | integer <int64> Numeric ID of the creator |
{- "user_id": 123,
- "id": 123,
- "application_id": 456,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Toggle creator is allowed for admins
| applicationId required | integer <int64> Numeric ID of the VAA |
| creatorId required | integer <int64> Numeric ID of the creator |
| status | integer <int64> |
{- "status": 123
}{- "code": "400",
- "message": "Malformed request"
}Remove creator is allowed for admins and creator (for its own application).
| applicationId required | integer <int64> Numeric ID of the VAA |
| creatorId required | integer <int64> Numeric ID of the creator |
{- "code": "400",
- "message": "Malformed request"
}Fetching trustpersons is allowed for admins and creator as well as for trustpersons for their own party.
| applicationId required | integer <int64> Numeric ID of the VAA |
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=trustpersons mail Search for trustpersons email |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "user_id": 123,
- "party_id": 456,
- "id": 123,
- "application_id": 456,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "party_name": "VOP",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}Creation of trustperson is allowed for admins and creator as well as for trustpersons for their own party.
| applicationId required | integer <int64> Numeric ID of the VAA |
| user_id | integer <int64> |
| party_id | integer <int64> |
{- "user_id": 123,
- "party_id": 456
}{- "user_id": 123,
- "party_id": 456,
- "id": 123,
- "application_id": 456,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "party_name": "VOP",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching trustperson by id is allowed for admins and creator.
| applicationId required | integer <int64> Numeric ID of the VAA |
| trustPersonId required | integer <int64> Numeric ID of the trustperson |
{- "user_id": 123,
- "party_id": 456,
- "id": 123,
- "application_id": 456,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "party_name": "VOP",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Toggle trustpersons is allowed for admins and creators ( their own application )
| applicationId required | integer <int64> Numeric ID of the VAA |
| trustPersonId required | integer <int64> Numeric ID of the trustperson |
| status | integer <int64> |
{- "status": 123
}{- "code": "400",
- "message": "Malformed request"
}Remove TrustPerson is allowed for admins and creator (for its own application).
| applicationId required | integer <int64> Numeric ID of the VAA |
| trustPersonId required | integer <int64> Numeric ID of the trustperson |
{- "code": "400",
- "message": "Malformed request"
}Fetching trustperson by id and party is allowed for admins and creator as well as the trustpersons for this party
| applicationId required | integer <int64> Numeric ID of the VAA |
| trustPersonId required | integer <int64> Numeric ID of the trustperson |
| partyId required | integer <int64> Numeric ID of the party |
{- "user_id": 123,
- "party_id": 456,
- "id": 123,
- "application_id": 456,
- "firstName": "John",
- "lastName": "Doe",
- "contact": "john@doe.com",
- "party_name": "VOP",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Toggle trustpersons is allowed for admins and creators ( their own application ) and trustpersons ( their own party )
| applicationId required | integer <int64> Numeric ID of the VAA |
| trustPersonId required | integer <int64> Numeric ID of the trustperson |
| partyId required | integer <int64> Numeric ID of the party |
| status | integer <int64> |
{- "status": 123
}{- "code": "400",
- "message": "Malformed request"
}Remove TrustPerson is allowed for admins and creator (for its own application) and for trustpersons ( for its own party ).
| applicationId required | integer <int64> Numeric ID of the VAA |
| trustPersonId required | integer <int64> Numeric ID of the trustperson |
| partyId required | integer <int64> Numeric ID of the party |
{- "code": "400",
- "message": "Malformed request"
}Fetching candidates for one single application by its ID is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the application to get |
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=Mustermann Search for candidate last name |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}Creation of candidates is allowed for admin, creator (only in his application) and trustperson (only for his party)
| applicationId required | integer <int64> Numeric ID of the application to get |
| party_id required | integer |
| user_id required | integer |
| description | string |
| district | string |
| list_place | integer |
| website | string |
{- "party_id": 123,
- "user_id": 456,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
}[- {
- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}
]Fetching a candidate for one application is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the application to get |
| candidateId required | integer <int64> Numeric ID of the candidate to get |
{- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}Changing a candidate for one application is allowed for admin, creator (within his application), trustperson (within his party) and one candidate for itself.
| applicationId required | integer <int64> Numeric ID of the application to put |
| candidateId required | integer <int64> Numeric ID of the candidate to put |
| party_id required | integer |
| user_id required | integer |
| description | string |
| district | string |
| list_place | integer |
| website | string |
{- "party_id": 123,
- "user_id": 456,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
}[- {
- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}
]Toggle candidates is allowed for admins, creators ( their own application ) and trustpersons ( their own party )
| applicationId required | integer <int64> Numeric ID of the VAA |
| candidateId required | integer <int64> Numeric ID of the candidate |
| status | integer <int64> |
{- "status": 123
}{- "code": "400",
- "message": "Malformed request"
}Deleting a candidate for one application is allowed for admin, creator (within his application), trustperson (within his party) and one candidate for itself.
| applicationId required | integer <int64> Numeric ID of the application |
| candidateId required | integer <int64> Numeric ID of the candidate to delete |
{- "code": "400",
- "message": "Malformed request"
}Changing a candidates light profile picture for one application is allowed for admin, creator (within his application), trustperson (within his party)
| applicationId required | integer <int64> Numeric ID of the application to put |
| candidateId required | integer <int64> Numeric ID of the candidate to put |
| partyId required | integer <int64> Numeric ID of the party to put |
| candidateId | integer |
| image | string <binary> |
{- "gender_id": 123,
- "party_id": 123,
- "firstName": "Max",
- "lastName": "Mustermann",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Changing a candidates profile picture for one application is allowed for admin, creator (within his application), trustperson (within his party) and one candidate for itself.
| applicationId required | integer <int64> Numeric ID of the application to put |
| candidateId required | integer <int64> Numeric ID of the candidate to put |
| partyId required | integer <int64> Numeric ID of the party to put |
| candidateId | integer |
| image | string <binary> |
{- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}Changing a candidates profile picture for one application is allowed for admin, creator (within his application), trustperson (within his party) and one candidate for itself.
| applicationId required | integer <int64> Numeric ID of the application to put |
| candidateId required | integer <int64> Numeric ID of the candidate to put |
| candidateId | integer |
| image | string <binary> |
{- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}Fetching a candidates votes for one application is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the application to get |
| candidateId required | integer <int64> Numeric ID of the candidate to get |
[- {
- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum",
- "id": 123,
- "candidate_id": 456,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Changing a candidates votes for one application is allowed for admin and one candidate for itself.
| applicationId required | integer <int64> Numeric ID of the application to put |
| candidateId required | integer <int64> Numeric ID of the candidate to put |
| statement_id | integer <int64> |
| application_id | integer <int64> |
| value | integer |
| weight | integer |
| explanation | string |
{- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum"
}{- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum",
- "id": 123,
- "candidate_id": 456,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching parties for one application is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the application |
| limit | integer Default: 20 Example: limit=20 Limits the amount of items in the responsing array. Max results is 100. |
| page | integer Default: 1 Example: page=5 Sets the page offset |
| search | string Default: "" Example: search=party detailed name Search for party detailed name |
| sort | string Default: "name|asc" Example: sort=location|desc Sort either ascending or descending all retrieving objects. Always like {attribute}|{sortingOrder} where sortingOrder can be either |
{- "data": [
- {
- "application_id": 123,
- "parent_party_id": 456,
- "shortcut": "ABC",
- "name": "Party name",
- "description": "Example party description",
- "id": 123,
- "status": 1,
- "public": false,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
], - "pagination": {
- "total": 100,
- "per_page": 20,
- "current_page": 1,
- "last_page": 4,
- "from": 1,
- "to": 19,
- "_links": {
}
}
}Creating parties for one application is allowed for admin and creator (for its own application)
| applicationId required | integer <int64> Numeric ID of the application |
| application_id required | integer |
| parent_party_id | integer |
| shortcut required | string |
| name required | string |
| description | string |
| website | string |
{- "application_id": 123,
- "parent_party_id": 456,
- "shortcut": "ABC",
- "name": "Party name",
- "description": "Example party description",
}[- {
- "application_id": 123,
- "parent_party_id": 456,
- "shortcut": "ABC",
- "name": "Party name",
- "description": "Example party description",
- "id": 123,
- "status": 1,
- "public": false,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Fetching one party for one application by its ID is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the application |
| partyId required | integer <int64> Numeric ID of the party |
{- "application_id": 123,
- "parent_party_id": 456,
- "shortcut": "ABC",
- "name": "Party name",
- "description": "Example party description",
- "id": 123,
- "status": 1,
- "public": false,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Changing a party for one application is allowed for admin, creator and the trustperson for its own party.
| applicationId required | integer <int64> Numeric ID of the application |
| partyId required | integer <int64> Numeric ID of the party |
| application_id required | integer |
| parent_party_id | integer |
| shortcut required | string |
| name required | string |
| description | string |
| website | string |
{- "application_id": 123,
- "parent_party_id": 456,
- "shortcut": "ABC",
- "name": "Party name",
- "description": "Example party description",
}[- {
- "application_id": 123,
- "parent_party_id": 456,
- "shortcut": "ABC",
- "name": "Party name",
- "description": "Example party description",
- "id": 123,
- "status": 1,
- "public": false,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Toggle party is allowed for admins and creators ( their own application )
| applicationId required | integer <int64> Numeric ID of the VAA |
| partyId required | integer <int64> Numeric ID of the party |
| status | integer <int64> |
{- "status": 123
}{- "code": "400",
- "message": "Malformed request"
}Deleting a party for one application is allowed for admin, creator and trustperson for its own party.
| applicationId required | integer <int64> Numeric ID of the application |
| partyId required | integer <int64> Numeric ID of the party |
{- "code": "400",
- "message": "Malformed request"
}Changing a party logo for one application is allowed for admin, creator (within his application), trustperson (within his party)
| applicationId required | integer <int64> Numeric ID of the application to put |
| partyId required | integer <int64> Numeric ID of the party to put |
| partyId | integer |
| image | string <binary> |
{- "application_id": 123,
- "parent_party_id": 456,
- "shortcut": "ABC",
- "name": "Party name",
- "description": "Example party description",
- "id": 123,
- "status": 1,
- "public": false,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Fetching candidates for one party within one application by its ID is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the application |
| partyId required | integer <int64> Numeric ID of the party |
[- {
- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}
]Creation of candidates is allowed for admin, creator (only in his application) and trustperson (only for his party)
| applicationId required | integer <int64> Numeric ID of the application to get |
| partyId required | integer <int64> Numeric ID of the party |
| party_id required | integer |
| user_id required | integer |
| description | string |
| district | string |
| list_place | integer |
| website | string |
{- "party_id": 123,
- "user_id": 456,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
}[- {
- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}
]Changing a candidate for one application is allowed for admin, creator (within his application), trustperson (within his party) and one candidate for itself.
| applicationId required | integer <int64> Numeric ID of the application to put |
| candidateId required | integer <int64> Numeric ID of the candidate to put |
| partyId required | integer <int64> Numeric ID of the party to put |
| party_id required | integer |
| user_id required | integer |
| description | string |
| district | string |
| list_place | integer |
| website | string |
{- "party_id": 123,
- "user_id": 456,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
}[- {
- "party_id": 123,
- "description": "Example Title",
- "district": "Example District",
- "list_place": 1,
- "id": 123,
- "application_id": 789,
- "title": "Dr.",
- "firstName": "John",
- "lastName": "Doe",
- "age": 456,
- "party_name": "VOP",
- "profile_picture": "https://",
- "status": 1,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z",
- "public": false
}
]Toggle candidates is allowed for admins, creators ( their own application ) and trustpersons ( their own party )
| applicationId required | integer <int64> Numeric ID of the VAA |
| candidateId required | integer <int64> Numeric ID of the candidate |
| partyId required | integer <int64> Numeric ID of the party to put |
| status | integer <int64> |
{- "status": 123
}{- "code": "400",
- "message": "Malformed request"
}Deleting a candidate for one application is allowed for admin, creator (within his application), trustperson (within his party) and one candidate for itself.
| applicationId required | integer <int64> Numeric ID of the application |
| candidateId required | integer <int64> Numeric ID of the candidate to delete |
| partyId required | integer <int64> Numeric ID of the party to put |
{- "code": "400",
- "message": "Malformed request"
}Fetching candidates light for one party within one application by its ID is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the application |
| partyId required | integer <int64> Numeric ID of the party |
[- { }
]Creation of candidates is allowed for admin, creator (only in his application) and trustperson (only for his party)
| applicationId required | integer <int64> Numeric ID of the application to get |
| partyId required | integer <int64> Numeric ID of the party |
| gender_id required | integer |
| party_id required | integer |
| firstName required | string Firstname of candidate light. Can also contain title as prefix |
| lastName required | string Lastname of candidate light |
{- "gender_id": 123,
- "party_id": 123,
- "firstName": "Max",
- "lastName": "Mustermann"
}[- {
- "gender_id": 123,
- "party_id": 123,
- "firstName": "Max",
- "lastName": "Mustermann",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Get a candidate light for one application is allowed for admin, creator (within his application), trustperson (within his party)
| applicationId required | integer <int64> Numeric ID of the application to get |
| candidateId required | integer <int64> Numeric ID of the candidate to get |
| partyId required | integer <int64> Numeric ID of the party to get |
[- {
- "gender_id": 123,
- "party_id": 123,
- "firstName": "Max",
- "lastName": "Mustermann",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Changing a candidate for one application is allowed for admin, creator (within his application), trustperson (within his party)
| applicationId required | integer <int64> Numeric ID of the application to put |
| candidateId required | integer <int64> Numeric ID of the candidate to put |
| partyId required | integer <int64> Numeric ID of the party to put |
| gender_id required | integer |
| party_id required | integer |
| firstName required | string Firstname of candidate light. Can also contain title as prefix |
| lastName required | string Lastname of candidate light |
{- "gender_id": 123,
- "party_id": 123,
- "firstName": "Max",
- "lastName": "Mustermann"
}[- {
- "gender_id": 123,
- "party_id": 123,
- "firstName": "Max",
- "lastName": "Mustermann",
- "id": 123,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Deleting a candidate light for one application is allowed for admin, creator (within his application), trustperson (within his party)
| applicationId required | integer <int64> Numeric ID of the application |
| candidateId required | integer <int64> Numeric ID of the candidate to delete |
| partyId required | integer <int64> Numeric ID of the party to delete |
{- "code": "400",
- "message": "Malformed request"
}Fetching votes for one specific party is allowed for everyone.
| applicationId required | integer <int64> Numeric ID of the election to get |
| partyId required | integer <int64> Numeric ID of the party to get |
[- {
- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum",
- "id": 123,
- "party_id": 456,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}
]Changing votes for one specific party is only allowed for trustperson (for its own party)
| applicationId required | integer <int64> Numeric ID of the application to put |
| partyId required | integer <int64> Numeric ID of the partyId to put |
| statement_id | integer <int64> |
| application_id | integer <int64> |
| value | integer |
| weight | integer |
| explanation | string |
{- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum"
}{- "statement_id": 123,
- "application_id": 456,
- "value": 75,
- "weight": 1,
- "explanation": "Lorem ipsum",
- "id": 123,
- "party_id": 456,
- "created_at": "2021-10-05T06:00:00.000Z",
- "updated_at": "2021-10-05T06:00:00.000Z"
}Send action request to trigger custom action
| action | string Enum: "ActionTypeChangeMail" "ActionTypeChangePassword" "ActionFinalizeAppTheses" "ActionFinalizePartyTheses" "ActionFinalizeCandidateTheses" "ActionCandidateFirstLogin" |
| id | integer Must be the applicationId/partyId |
{- "action": "ActionTypeChangeMail",
- "id": 123
}{- "code": "400",
- "message": "Malformed request"
}Send action request to trigger custom mail sending
| AddressType | string Enum: "AddressTypePersonalized" "AddressTypeCommon" |
| Subject | string The subject of the mail |
| Title | string Title within the mail |
| Call2Action | string Some call to action ( text of the button ) |
| HTML | string html string of the mail content |
| DryRun | boolean Test only mode - not sending except to you |
| Apps | Array of integers <int64> |
object |
{- "AddressType": "AddressTypePersonalized",
- "Subject": "string",
- "Title": "string",
- "Call2Action": "string",
- "HTML": "string",
- "DryRun": true,
- "Apps": [
- 0
], - "TargetStatus": {
- "TargetTrustPersonStatus": 0,
- "TargetCandidateStatus": 0
}
}{- "code": "400",
- "message": "Malformed request"
}Send action request to invite admins
| id | integer Must be the candidate/trustperson/creator/admin ID |
object |
{- "id": 123,
- "Mailoptions": {
- "formats": "string"
}
}{- "code": "400",
- "message": "Malformed request"
}Send action request to invite creator
| applicationId required | integer <int64> Numeric ID of the VAA |
| id | integer Must be the candidate/trustperson/creator/admin ID |
object |
{- "id": 123,
- "Mailoptions": {
- "formats": "string"
}
}{- "code": "400",
- "message": "Malformed request"
}Send action request to invite TrustPersons
| applicationId required | integer <int64> Numeric ID of the VAA |
| id | integer Must be the candidate/trustperson/creator/admin ID |
object |
{- "id": 123,
- "Mailoptions": {
- "formats": "string"
}
}{- "code": "400",
- "message": "Malformed request"
}Send action request to invite candidates
| applicationId required | integer <int64> Numeric ID of the VAA |
| partyId required | integer <int64> Numeric ID of the party |
| id | integer Must be the candidate/trustperson/creator/admin ID |
object |
{- "id": 123,
- "Mailoptions": {
- "formats": "string"
}
}{- "code": "400",
- "message": "Malformed request"
}Send action request to calculate standard deviation of answered theses of matches
| applicationId required | integer <int64> Numeric ID of the VAA |
{- "Candidates": [
- {
- "Value": 12.2,
- "StatementId": 123,
- "Votes": 123
}
], - "Parties": [
- {
- "Value": 12.2,
- "StatementId": 123,
- "Votes": 123
}
]
}Get global voto votes count
| applicationId required | integer <int64> Numeric ID of the VAA |
{- "votes": {
- "votes": 204604
}, - "voto_started": 100000,
- "voto_finished": 99999,
- "history": [
- {
- "Votes": 204604,
- "Timestamp": 1662595217
}
]
}