Idea votes

Get all related idea organizations for votes associated with an idea

Changed on

Use the field "associated_idea_organizations" to get a list of all related idea organizations associated with each vote. This field can also be used when retrieving a single idea endorement.

get/ideas/{idea_id}/endorsements

Request

Path parameters

idea_idstring required

IdeaId identifier

Query parameters

pagestring
per_pagestring
fieldsstring
proxystring

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