Idea votes
List votes for an account
Changed on"Idea votes" in the web interface are referenced as "idea endorsements" from API endpoints.
get/ideas/endorsements
Request
- Base URLhttps://company.aha.io/api/v1
- Auth
- OAuth 2Authorization codehttps://{account-domain}.aha.io/oauth/authorizeToken URLhttps://{account-domain}.aha.io/oauth/token
- or HTTP bearer
- or API key in cookie session
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pagestring
per_pagestring
Response
Successful operation
Example response
{
"idea_endorsements": [
{
"id": "53377392",
"idea_id": "58056975",
"created_at": "2019-01-01T00:00:00.000Z",
"updated_at": "2019-01-01T00:00:00.000Z",
"value": null,
"link": null,
"weight": 1,
"endorsed_by_portal_user": {
"id": "646391926",
"name": "John Long",
"email": "john@long.com",
"created_at": "2019-01-01T00:00:00.000Z"
},
"endorsed_by_idea_user": {
"id": "1056507375",
"name": "John Long",
"email": "john@long.com",
"created_at": "2019-01-01T00:00:00.000Z",
"title": null
},
"idea_organization": {
"id": "138732915",
"name": "Acme",
"created_at": "2019-01-01T00:00:00.000Z",
"url": "https://company.aha.io/ideas/idea_organizations/ACCOUNT-O-123",
"resource": "https://company.aha.io/api/v1/idea_organizations/ACCOUNT-O-123"
}
},
{
"id": "260764892",
"idea_id": "397084149",
"created_at": "2019-01-01T00:00:00.000Z",
"updated_at": "2019-01-01T00:00:00.000Z",
"value": null,
"link": null,
"weight": 1,
"endorsed_by_portal_user": {
"id": "143214937",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z"
},
"endorsed_by_idea_user": {
"id": "284648642",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z",
"title": null
}
},
{
"id": "377726308",
"idea_id": "245519441",
"created_at": "2019-01-01T00:00:00.000Z",
"updated_at": "2019-01-01T00:00:00.000Z",
"value": null,
"link": null,
"weight": 1,
"endorsed_by_portal_user": {
"id": "143214937",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z"
},
"endorsed_by_idea_user": {
"id": "284648642",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z",
"title": null
}
},
{
"id": "449162139",
"idea_id": "849214356",
"created_at": "2019-01-01T00:00:00.000Z",
"updated_at": "2019-01-01T00:00:00.000Z",
"value": null,
"link": null,
"weight": 1,
"endorsed_by_portal_user": {
"id": "646391926",
"name": "John Long",
"email": "john@long.com",
"created_at": "2019-01-01T00:00:00.000Z"
},
"endorsed_by_idea_user": {
"id": "1056507375",
"name": "John Long",
"email": "john@long.com",
"created_at": "2019-01-01T00:00:00.000Z",
"title": null
},
"idea_organization": {
"id": "138732915",
"name": "Acme",
"created_at": "2019-01-01T00:00:00.000Z",
"url": "https://company.aha.io/ideas/idea_organizations/ACCOUNT-O-123",
"resource": "https://company.aha.io/api/v1/idea_organizations/ACCOUNT-O-123"
}
},
{
"id": "562337269",
"idea_id": "140490859",
"created_at": "2019-01-01T00:00:00.000Z",
"updated_at": "2019-01-01T00:00:00.000Z",
"value": null,
"link": null,
"weight": 1,
"endorsed_by_portal_user": {
"id": "143214937",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z"
},
"endorsed_by_idea_user": {
"id": "284648642",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z",
"title": null
}
},
{
"id": "1062165688",
"idea_id": "444379319",
"created_at": "2019-01-01T00:00:00.000Z",
"updated_at": "2019-01-01T00:00:00.000Z",
"value": null,
"link": null,
"weight": 1,
"endorsed_by_portal_user": {
"id": "646391926",
"name": "John Long",
"email": "john@long.com",
"created_at": "2019-01-01T00:00:00.000Z"
},
"endorsed_by_idea_user": {
"id": "1056507375",
"name": "John Long",
"email": "john@long.com",
"created_at": "2019-01-01T00:00:00.000Z",
"title": null
}
},
{
"id": "1071644760",
"idea_id": "290908627",
"created_at": "2019-01-01T00:00:00.000Z",
"updated_at": "2019-01-01T00:00:00.000Z",
"value": null,
"link": null,
"weight": 1,
"endorsed_by_portal_user": {
"id": "143214937",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z"
},
"endorsed_by_idea_user": {
"id": "284648642",
"name": "Joe Shmo",
"email": "joe@shmo.com",
"created_at": "2019-01-01T00:00:00.000Z",
"title": null
}
}
],
"pagination": {
"total_records": 7,
"total_pages": 1,
"current_page": 1
}
}Changes
- info
added the new optional
queryrequest parameterpage - info
added the new optional
queryrequest parameterper_page
- info
- info
endpoint added
- info