> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentlinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create competitor set

> Explicitly approve one customer and up to ten competitors.

`create_competitor_set`

Explicitly approve one customer and up to ten competitors. Registration does not verify links or buy discovery.

<Note>Available in the deployed MCP and HTTP bundle. Confirm access and inputs with your connected catalog. Workspace scopes and enabled providers still apply.</Note>

| Access            | Behavior              |
| ----------------- | --------------------- |
| `discovery:write` | Writes or admits work |

This operation changes saved state. Review its inputs and retry behavior before calling.

## Example request

Connect through [MCP](/guides/connect-mcp), [CLI](/guides/connect-cli), or [HTTP](/guides/connect-http). Replace example identifiers with records from your workspace.

<CodeGroup>
  ```json MCP theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "create_competitor_set",
      "arguments": {
        "projectId": "project_example",
        "approved": true,
        "members": [
          {
            "role": "customer",
            "scope": {
              "target_kind": "domain",
              "target": "example.com",
              "include_subdomains": true
            }
          },
          {
            "role": "competitor",
            "scope": {
              "target_kind": "domain",
              "target": "competitor.example.com",
              "include_subdomains": true
            }
          }
        ]
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call create_competitor_set --args '{"projectId":"project_example","approved":true,"members":[{"role":"customer","scope":{"target_kind":"domain","target":"example.com","include_subdomains":true}},{"role":"competitor","scope":{"target_kind":"domain","target":"competitor.example.com","include_subdomains":true}}]}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/create_competitor_set" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"projectId":"project_example","approved":true,"members":[{"role":"customer","scope":{"target_kind":"domain","target":"example.com","include_subdomains":true}},{"role":"competitor","scope":{"target_kind":"domain","target":"competitor.example.com","include_subdomains":true}}]}'
  ```
</CodeGroup>

## Returned result

Illustrative data validated against the documented response schema. IDs and dates are examples, not a live account capture. MCP returns this data in `structuredContent` and in a text content block; generic HTTP and CLI return the JSON result directly.

<Accordion title="Full response example">
  ```json theme={null}
  {
    "v": 1,
    "id": "cs_example",
    "revision": 1,
    "workspace_id": "ws_example",
    "project_id": "project_example",
    "approved_by": "user_example",
    "approved_at": "2026-09-13T12:00:00.000Z",
    "members": [
      {
        "role": "customer",
        "scope": {
          "target_kind": "domain",
          "target": "example.com",
          "include_subdomains": true
        },
        "id": "cm_customer"
      },
      {
        "role": "competitor",
        "scope": {
          "target_kind": "domain",
          "target": "competitor.example.com",
          "include_subdomains": true
        },
        "id": "cm_competitor"
      }
    ],
    "current_revision": 1,
    "retired_at": null
  }
  ```
</Accordion>

## Input fields

Omit optional fields when you do not want to supply them. Null is accepted only where listed. Unknown input properties are rejected.

| Field                                | Type    | Presence | Meaning and constraints                                                                                   |
| ------------------------------------ | ------- | -------- | --------------------------------------------------------------------------------------------------------- |
| `projectId`                          | string  | Required | Identifier of the project returned by its create or list operation. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$" |
| `approved`                           | boolean | Required | Explicit approval required to freeze this customer and competitor selection. must equal true              |
| `members`                            | array   | Required | Customer and competitor members approved for this set revision. minItems: 2; maxItems: 11                 |
| `members[].role`                     | string  | Required | values: "customer", "competitor"                                                                          |
| `members[].scope`                    | object  | Required | additional fields rejected                                                                                |
| `members[].scope.target_kind`        | string  | Required | values: "domain", "exact\_url"                                                                            |
| `members[].scope.target`             | string  | Required | minLength: 1; maxLength: 4096                                                                             |
| `members[].scope.include_subdomains` | boolean | Required |                                                                                                           |

### Validation and omitted values

Requires exactly one customer, distinct member identities and nonoverlapping approved target scopes. Scope target kind, target and subdomain policy are explicit; none is inferred from a default.

## Output fields

Fields inside optional or nullable parents apply only when that parent exists. [Common schema conventions](/reference/schemas) explain evidence states, empty lists and extensions.

* **`v`** (number, required): must equal 1
* **`id`** (string, required): Resource identifier returned by the operation. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"
* **`revision`** (integer, required): Optimistic concurrency revision; supply it as expectedRevision on the next write. minimum: 1; maximum: 9007199254740991
* **`workspace_id`** (string, required): Workspace that owns this record. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"
* **`project_id`** (string, required): Project that owns this record. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"
* **`approved_by`** (string, required): pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"
* **`approved_at`** (string, required): format: "date-time"; pattern: "^(?:(?:\d\d\[2468]\[048]|\d\d\[13579]\[26]|\d\d0\[48]|\[02468]\[048]00|\[13579]\[26]00)-02-29|\d\{4}-(?:(?:0\[13578]|1\[02])-(?:0\[1-9]|\[12]\d|3\[01])|(?:0\[469]|11)-(?:0\[1-9]|\[12]\d|30)|(?:02)-(?:0\[1-9]|1\d|2\[0-8])))T(?:(?:\[01]\d|2\[0-3]):\[0-5]\d:\[0-5]\d\\.\d\{3}(?:Z))\$"
* **`members`** (array, required): minItems: 2; maxItems: 11
* **`current_revision`** (number, required).
* **`retired_at`** (string / null, required).

<Accordion title="All fields and nested objects">
  | Field                                | Type          | Presence | Meaning and constraints                                                                                                                                                                                                                                                                                                                  |
  | ------------------------------------ | ------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `v`                                  | number        | Required | must equal 1                                                                                                                                                                                                                                                                                                                             |
  | `id`                                 | string        | Required | Resource identifier returned by the operation. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"                                                                                                                                                                                                                                                     |
  | `revision`                           | integer       | Required | Optimistic concurrency revision; supply it as expectedRevision on the next write. minimum: 1; maximum: 9007199254740991                                                                                                                                                                                                                  |
  | `workspace_id`                       | string        | Required | Workspace that owns this record. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"                                                                                                                                                                                                                                                                   |
  | `project_id`                         | string        | Required | Project that owns this record. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"                                                                                                                                                                                                                                                                     |
  | `approved_by`                        | string        | Required | pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"                                                                                                                                                                                                                                                                                                    |
  | `approved_at`                        | string        | Required | format: "date-time"; pattern: "^(?:(?:\d\d\[2468]\[048]\|\d\d\[13579]\[26]\|\d\d0\[48]\|\[02468]\[048]00\|\[13579]\[26]00)-02-29\|\d\{4}-(?:(?:0\[13578]\|1\[02])-(?:0\[1-9]\|\[12]\d\|3\[01])\|(?:0\[469]\|11)-(?:0\[1-9]\|\[12]\d\|30)\|(?:02)-(?:0\[1-9]\|1\d\|2\[0-8])))T(?:(?:\[01]\d\|2\[0-3]):\[0-5]\d:\[0-5]\d\\.\d\{3}(?:Z))\$" |
  | `members`                            | array         | Required | minItems: 2; maxItems: 11                                                                                                                                                                                                                                                                                                                |
  | `members[].id`                       | string        | Required | Resource identifier returned by the operation. pattern: "^\[a-zA-Z0-9\_-]\{1,128}\$"                                                                                                                                                                                                                                                     |
  | `members[].role`                     | string        | Required | values: "customer", "competitor"                                                                                                                                                                                                                                                                                                         |
  | `members[].scope`                    | object        | Required | additional fields rejected                                                                                                                                                                                                                                                                                                               |
  | `members[].scope.target_kind`        | string        | Required | values: "domain", "exact\_url"                                                                                                                                                                                                                                                                                                           |
  | `members[].scope.target`             | string        | Required | minLength: 1; maxLength: 4096                                                                                                                                                                                                                                                                                                            |
  | `members[].scope.include_subdomains` | boolean       | Required |                                                                                                                                                                                                                                                                                                                                          |
  | `current_revision`                   | number        | Required |                                                                                                                                                                                                                                                                                                                                          |
  | `retired_at`                         | string / null | Required |                                                                                                                                                                                                                                                                                                                                          |
</Accordion>

[Download input schema](/schemas/create_competitor_set.input.json) · [Download output schema](/schemas/create_competitor_set.output.json)

## Errors and retries

This command is not annotated idempotent. After a timeout, inspect existing state before repeating a write.

See [error recovery](/reference/errors) for status, scope, cooldown, cursor and retry handling. Unknown observations are result data and do not establish loss.

## HTTP resource routes

These existing resource routes share the operation’s domain behavior. Their parameter placement, status and response envelope can differ from generic invocation. See [HTTP route details](/reference/http/routes).

| Method and route           | Success | Details                                       |
| -------------------------- | ------- | --------------------------------------------- |
| `POST /v1/competitor-sets` | 201     | Remaining arguments go in a JSON object body. |

## Continue

[get\_competitor\_set](/reference/commands/get_competitor_set) · [request\_competitor\_inventory](/reference/commands/request_competitor_inventory)

Follow the [related workflow](/guides/competitor-research), inspect [capability status](/capability-status), or return to the [command index](/reference/index).
