---
title: "Set competitor flag for tracked account"
method: PUT
path: "/accounts/tracked/{id}/competitor"
tags: ["Track Accounts"]
---

# Set competitor flag for tracked account

`PUT /accounts/tracked/{id}/competitor`

## Request

- Base URL: `https://viral.app/api/v1`
- URL: `https://viral.app/api/v1/accounts/tracked/{id}/competitor`
- Auth: API key in header `x-api-key`

Marks or unmarks a tracked account as a competitor.

## Path parameters

- `id` string, required: Organization account ID with orgacc_ prefix. Not the same as platform account ID.

## Request body

- object: Set whether a tracked account is marked as a competitor.
  - `isCompetitor` boolean, required: Whether the tracked account is marked as a competitor

## Response `200`

OK

- object: Result of setting the competitor flag for a tracked account.
  - `accountId` string, required: Organization account ID with orgacc_ prefix. Not the same as platform account ID.
  - `isCompetitor` boolean, required: Whether the tracked account is marked as a competitor

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `404`: 404
- `408`: 408
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/viral/apis/viral-app-api.md) · [All operations](https://skmtc.dev/viral/apis/viral-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/viral/apis/viral-app-api/revisions/31e97fa79ef1?raw)
