Help CenterVying
Open Vying
Menu

Add a Competitor

POST/competitors

A brandId outside the key's reach answers 400, identically to one that does not exist. A brand tracks at most 500 competitors; adding one past that answers 409.

Needs write access. About keys

Request

curl -X POST "https://app.vyingfor.com/api/v1/competitors" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brandId":"BRAND_ID","name":"Rival Co"}'

Body

FieldTypeDescription
brandId requiredstring
name requiredstring
domainsstring[]
aliasesstring[]

Response

201 Competitor created

FieldTypeDescription
idstring
brandIdstring
namestring
domainsstring[]
aliasesstring[]
createdAtstring
updatedAtstring

Errors