Idea votes API

"Idea votes" in the web interface are referenced as "idea endorsements" from API endpoints.

Create a proxy vote with idea users (contacts)

POST /api/v1/ideas/:idea_id/endorsements

Parameters
NameDescription
idea_id *

Numeric ID or key of the idea

created_by_user

Email address of Aha! user who created the vote. For create only.

email

Email address of portal user who created the vote. For create only.

idea_organization_id

Numeric ID of the organization. For proxy votes only.

value

Dollar value of the idea vote, numeric. For proxy votes only.

link

URL associated with the proxy vote. For proxy votes only.

description

Description of the proxy vote. HTML formatting is supported. For proxy votes only.

idea_users

Email addresses of idea users (contacts) to associate with the proxy vote. For proxy votes only.

Example request

POST /api/v1/ideas/PRJ1-I-1/endorsements

Example CURL command

curl "https://company.aha.io/api/v1/ideas/PRJ1-I-1/endorsements" -d '{"idea_endorsement":{"idea_id":"PRJ1-I-1","idea_users":["user1@example.com","user2@example.com"],"email":"no-reply@aha.io","idea_organization_id":138732915,"value":2,"link":"https://example.com","description":"This is a description"}}' -X POST \
	-H "Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab" \
	-H "Content-Type: application/json" \
	-H "Accept: application/json"

Request

authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab
contentType: application/json
accept: application/json

Request body

Response

Status: 200 OK
contentType: application/json; charset=utf-8

Response body