Competitors API

Update a competitor

PUT /api/v1/products/:product_id/competitors/:id

Parameters
NameDescription
product_id *

Numeric ID or key of the product

id *

Numeric ID or key of the competitor

name

Name of the competitor

color

Hex color of the competitor in the Aha! UI

Example request

PUT /api/v1/products/PRJ1/competitors/892399625

Example CURL command

curl "https://company.aha.io/api/v1/products/PRJ1/competitors/892399625" -d '{"competitor":{"name":"Plan-a-lot"}}' -X PUT \
	-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